| | |
| | | <el-table-column type="selection" width="55" align="center" />
|
| | | <el-table-column label="任务编号" align="center" prop="jobId" />
|
| | | <el-table-column label="任务名称" align="center" prop="jobName" :show-overflow-tooltip="true" />
|
| | | <el-table-column label="任务组名" align="center" prop="jobGroup" :formatter="jobGroupFormat" />
|
| | | <el-table-column label="任务组名" align="center" prop="jobGroup">
|
| | | <template slot-scope="scope">
|
| | | <dict-tag :options="jobGroupOptions" :value="scope.row.jobGroup"/>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column label="调用目标字符串" align="center" prop="invokeTarget" :show-overflow-tooltip="true" />
|
| | | <el-table-column label="cron执行表达式" align="center" prop="cronExpression" :show-overflow-tooltip="true" />
|
| | | <el-table-column label="状态" align="center">
|
| | |
| | | @click="handleDelete(scope.row)"
|
| | | v-hasPermi="['monitor:job:remove']"
|
| | | >删除</el-button>
|
| | | <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)">
|
| | | <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['monitor:job:changeStatus', 'monitor:job:query']">
|
| | | <span class="el-dropdown-link">
|
| | | <i class="el-icon-d-arrow-right el-icon--right"></i>更多
|
| | | </span>
|
| | |
| | | jobGroupFormat(row, column) {
|
| | | return this.selectDictLabel(this.jobGroupOptions, row.jobGroup);
|
| | | },
|
| | | // 状态字典翻译
|
| | | statusFormat(row, column) {
|
| | | return this.selectDictLabel(this.statusOptions, row.status);
|
| | | },
|
| | | // 取消按钮
|
| | | cancel() {
|
| | | this.open = false;
|
| | |
| | | /** 任务日志列表查询 */
|
| | | handleJobLog(row) {
|
| | | const jobId = row.jobId || 0;
|
| | | this.$router.push({ path: '/job/log', query: { jobId: jobId } })
|
| | | this.$router.push({ path: '/monitor/job-log/index', query: { jobId: jobId } })
|
| | | },
|
| | | /** 新增按钮操作 */
|
| | | handleAdd() {
|
| | |
| | | }).then(() => {
|
| | | this.getList();
|
| | | this.msgSuccess("删除成功");
|
| | | })
|
| | | }).catch(() => {});
|
| | | },
|
| | | /** 导出按钮操作 */
|
| | | handleExport() {
|