From 030cd1b4d73e15ea054eabc2c8d387cf3cb1f469 Mon Sep 17 00:00:00 2001 From: zjl Date: Fri, 13 Dec 2024 10:17:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=86=E7=B1=BB=E3=80=81?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E3=80=81=E6=A0=87=E7=AD=BE=E3=80=81=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E3=80=81=E5=A4=9A=E6=95=B0=E6=8D=AE=E6=BA=90=E3=80=81?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/content/category/columns.ts | 3 +- src/views/content/layout/edit.vue | 8 ++- src/views/content/layout/index.vue | 1 - src/views/content/layoutItem/edit.vue | 6 +- .../layoutItem/layout/notice/columns.ts | 6 +- src/views/content/tag/columns.ts | 2 +- src/views/data/dict/columnsItem.ts | 6 +- src/views/data/notice/columns.ts | 22 +++++-- src/views/monitor/dataSource/columns.ts | 2 +- src/views/monitor/job/log/columns.ts | 31 +++++++++- src/views/monitor/job/log/edit.vue | 32 ++++++++-- src/views/monitor/job/log/index.vue | 60 ++++++++++++++----- 12 files changed, 137 insertions(+), 42 deletions(-) diff --git a/src/views/content/category/columns.ts b/src/views/content/category/columns.ts index 4765685..8ab2584 100644 --- a/src/views/content/category/columns.ts +++ b/src/views/content/category/columns.ts @@ -5,6 +5,7 @@ export const columns = [ { title: '分类名称', key: 'name', + align: 'left', width: 200, }, { @@ -15,7 +16,7 @@ export const columns = [ { title: '分类备注', key: 'note', - width: 100, + width: 200, }, { title: '创建人', diff --git a/src/views/content/layout/edit.vue b/src/views/content/layout/edit.vue index 697379f..c85bb03 100644 --- a/src/views/content/layout/edit.vue +++ b/src/views/content/layout/edit.vue @@ -14,8 +14,12 @@ label-placement="left" label-width="85px" > - - + + diff --git a/src/views/content/layoutItem/layout/notice/columns.ts b/src/views/content/layoutItem/layout/notice/columns.ts index cb80410..b80b5dc 100644 --- a/src/views/content/layoutItem/layout/notice/columns.ts +++ b/src/views/content/layoutItem/layout/notice/columns.ts @@ -15,12 +15,12 @@ export const columns2 = [ fixed: 'left', }, { - title: '标题', + title: '通知标题', key: 'title', width: 200, }, { - title: '类型', + title: '通知类型', key: 'type', width: 100, render(record) { @@ -36,7 +36,7 @@ export const columns2 = [ }, }, { - title: '状态', + title: '通知状态', key: 'status', render(record) { return h( diff --git a/src/views/content/tag/columns.ts b/src/views/content/tag/columns.ts index efde4ca..c2205aa 100644 --- a/src/views/content/tag/columns.ts +++ b/src/views/content/tag/columns.ts @@ -16,7 +16,7 @@ export const columns = [ { title: '标签名称', key: 'name', - width: 100, + width: 200, }, { title: '排序', diff --git a/src/views/data/dict/columnsItem.ts b/src/views/data/dict/columnsItem.ts index 6f403ec..6513e48 100644 --- a/src/views/data/dict/columnsItem.ts +++ b/src/views/data/dict/columnsItem.ts @@ -9,17 +9,17 @@ export const columns = [ { title: '字典名称', key: 'name', - width: 100, + width: 150, }, { title: '字典编码', key: 'dictCode', - width: 100, + width: 150, }, { title: '字典项值', key: 'value', - width: 100, + width: 150, }, { title: '排序', diff --git a/src/views/data/notice/columns.ts b/src/views/data/notice/columns.ts index a68d25c..b7d14c8 100644 --- a/src/views/data/notice/columns.ts +++ b/src/views/data/notice/columns.ts @@ -1,5 +1,6 @@ import { h } from 'vue'; -import { NTag } from 'naive-ui'; +import { NImage, NTag } from 'naive-ui'; + export const columns = [ { type: 'selection', @@ -13,12 +14,25 @@ export const columns = [ width: 50, }, { - title: '标题', + title: '通知标题', key: 'title', width: 250, }, { - title: '类型', + title: '通知封面', + key: 'cover', + width: 100, + render(record) { + return h(NImage, { + width: 48, + src: record.cover, + shape: 'square', + fit: 'fill', + }); + }, + }, + { + title: '通知类型', key: 'type', width: 100, render(record) { @@ -34,7 +48,7 @@ export const columns = [ }, }, { - title: '状态', + title: '通知状态', key: 'status', width: 100, render(record) { diff --git a/src/views/monitor/dataSource/columns.ts b/src/views/monitor/dataSource/columns.ts index 51df570..fa6c188 100644 --- a/src/views/monitor/dataSource/columns.ts +++ b/src/views/monitor/dataSource/columns.ts @@ -74,7 +74,7 @@ export const columns = [ { title: '备注', key: 'note', - width: 100, + width: 200, }, { title: '创建人', diff --git a/src/views/monitor/job/log/columns.ts b/src/views/monitor/job/log/columns.ts index d655fec..5595da7 100644 --- a/src/views/monitor/job/log/columns.ts +++ b/src/views/monitor/job/log/columns.ts @@ -9,27 +9,38 @@ export const columns = [ { title: 'ID', key: 'id', + fixed: 'left', width: 100, }, { title: '任务名称', key: 'jobName', + width: 200, }, { title: '任务组名', key: 'jobGroup', + width: 100, }, { title: '任务触发器', key: 'jobTrigger', + width: 200, }, { - title: '任务信息', + title: '任务日志信息', key: 'jobMessage', + width: 300, + }, + { + title: '执行表达式', + key: 'cronExpression', + width: 150, }, { title: '执行状态', key: 'status', + width: 100, render(record) { let typeText = ''; switch (record.status) { @@ -52,7 +63,23 @@ export const columns = [ }, }, { - title: '执行时间', + title: '任务开始时间', key: 'startTime', + width: 180, + }, + { + title: '任务结束时间', + key: 'endTime', + width: 180, + }, + { + title: '任务执行时间', + key: 'createTime', + width: 180, + }, + { + title: '任务执行耗时', + key: 'consumeTime', + width: 120, }, ]; diff --git a/src/views/monitor/job/log/edit.vue b/src/views/monitor/job/log/edit.vue index 413f4e5..b1eb6cd 100644 --- a/src/views/monitor/job/log/edit.vue +++ b/src/views/monitor/job/log/edit.vue @@ -1,16 +1,28 @@