|
|
@ -114,17 +114,30 @@
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="el-icon-caret-right"
|
|
|
|
icon="el-icon-edit"
|
|
|
|
@click="handleRun(scope.row)"
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
v-hasPermi="['monitor:job:changeStatus']"
|
|
|
|
v-hasPermi="['monitor:job:edit']"
|
|
|
|
>执行一次</el-button>
|
|
|
|
>修改</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="el-icon-view"
|
|
|
|
icon="el-icon-delete"
|
|
|
|
@click="handleView(scope.row)"
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
v-hasPermi="['monitor:job:query']"
|
|
|
|
v-hasPermi="['monitor:job:remove']"
|
|
|
|
>详细</el-button>
|
|
|
|
>删除</el-button>
|
|
|
|
|
|
|
|
<el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)">
|
|
|
|
|
|
|
|
<span class="el-dropdown-link">
|
|
|
|
|
|
|
|
<i class="el-icon-d-arrow-right el-icon--right"></i>更多
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
|
|
|
|
<el-dropdown-item command="handleRun" icon="el-icon-caret-right"
|
|
|
|
|
|
|
|
v-hasPermi="['monitor:job:changeStatus']">执行一次</el-dropdown-item>
|
|
|
|
|
|
|
|
<el-dropdown-item command="handleView" icon="el-icon-view"
|
|
|
|
|
|
|
|
v-hasPermi="['monitor:job:query']">任务详细</el-dropdown-item>
|
|
|
|
|
|
|
|
<el-dropdown-item command="handleJobLog" icon="el-icon-s-operation"
|
|
|
|
|
|
|
|
v-hasPermi="['monitor:job:query']">调度日志</el-dropdown-item>
|
|
|
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
|
|
|
</el-dropdown>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
@ -382,6 +395,22 @@ export default {
|
|
|
|
this.single = selection.length != 1;
|
|
|
|
this.single = selection.length != 1;
|
|
|
|
this.multiple = !selection.length;
|
|
|
|
this.multiple = !selection.length;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 更多操作触发
|
|
|
|
|
|
|
|
handleCommand(command, row) {
|
|
|
|
|
|
|
|
switch (command) {
|
|
|
|
|
|
|
|
case "handleRun":
|
|
|
|
|
|
|
|
this.handleRun(row);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "handleView":
|
|
|
|
|
|
|
|
this.handleView(row);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "handleJobLog":
|
|
|
|
|
|
|
|
this.handleJobLog(row);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
// 任务状态修改
|
|
|
|
// 任务状态修改
|
|
|
|
handleStatusChange(row) {
|
|
|
|
handleStatusChange(row) {
|
|
|
|
let text = row.status === "0" ? "启用" : "停用";
|
|
|
|
let text = row.status === "0" ? "启用" : "停用";
|
|
|
@ -417,8 +446,9 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 任务日志列表查询 */
|
|
|
|
/** 任务日志列表查询 */
|
|
|
|
handleJobLog() {
|
|
|
|
handleJobLog(row) {
|
|
|
|
this.$router.push("/job/log");
|
|
|
|
const jobId = row.jobId || 0;
|
|
|
|
|
|
|
|
this.$router.push({ path: '/job/log', query: { jobId: jobId } })
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
handleAdd() {
|
|
|
|
handleAdd() {
|
|
|
|