From 91b3a0975990fbb4510e121a7e452b86369a1f3f Mon Sep 17 00:00:00 2001 From: zjl Date: Fri, 30 Aug 2024 15:45:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/job/columns.ts | 32 ++++++++++++++++++++++++++++++-- src/views/monitor/job/index.vue | 2 +- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/src/views/monitor/job/columns.ts b/src/views/monitor/job/columns.ts index e9e4f22..ecac66b 100644 --- a/src/views/monitor/job/columns.ts +++ b/src/views/monitor/job/columns.ts @@ -7,7 +7,8 @@ export const columns = [ }, { label: 'ID', - prop: 'id' + prop: 'id', + width: 100, }, { label: '任务名称', @@ -22,14 +23,41 @@ export const columns = [ prop: 'jobTrigger', }, { - label: 'cron执行表达式', + label: '执行表达式', prop: 'cronExpression', }, + { + label: '执行策略', + prop: 'executePolicyText', + }, + { + label: '同步任务', + prop: 'isSync', + render(record) { + return h( + ElTag, + { + type: record.row.isSync == 1 ? 'primary' : 'warning', + }, + { + default: () => (record.row.isSync == 1 ? '同步' : '异步'), + }, + ); + }, + }, + { + label: 'URL', + prop: 'url', + }, { label: '状态', isSlot:true, value:'status' }, + { + label: '备注', + prop: 'note', + }, // { // label: '状态', // prop: 'status', diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue index 12a31c7..fa1086a 100644 --- a/src/views/monitor/job/index.vue +++ b/src/views/monitor/job/index.vue @@ -79,7 +79,7 @@ const selectionData = ref([]) status:'' }); const actionColumn = reactive({ - width: 300, + width: 350, label: '操作', prop: 'action', fixed: 'right',