diff --git a/apps/web-antd/src/router/routes/modules/infra.ts b/apps/web-antd/src/router/routes/modules/infra.ts new file mode 100644 index 000000000..510bf8878 --- /dev/null +++ b/apps/web-antd/src/router/routes/modules/infra.ts @@ -0,0 +1,18 @@ +import type { RouteRecordRaw } from 'vue-router'; + +const routes: RouteRecordRaw[] = [ + { + path: '/infra/job/job-log', + component: () => import('#/views/infra/job/logger/index.vue'), + name: 'InfraJobLog', + meta: { + title: '调度日志', + icon: 'ant-design:history-outlined', + activePath: '/infra/job', + keepAlive: false, + hideInMenu: true, + } + } +]; + +export default routes; diff --git a/apps/web-antd/src/views/infra/apiAccessLog/data.ts b/apps/web-antd/src/views/infra/apiAccessLog/data.ts index a4879e1e5..21c6bd43d 100644 --- a/apps/web-antd/src/views/infra/apiAccessLog/data.ts +++ b/apps/web-antd/src/views/infra/apiAccessLog/data.ts @@ -164,7 +164,7 @@ export function useGridColumns( name: 'CellOperation', options: [ { - code: 'view', + code: 'detail', text: '详情', show: hasAccessByCodes(['infra:api-access-log:query']), }, diff --git a/apps/web-antd/src/views/infra/apiAccessLog/index.vue b/apps/web-antd/src/views/infra/apiAccessLog/index.vue index 6c3c11c18..ea6846962 100644 --- a/apps/web-antd/src/views/infra/apiAccessLog/index.vue +++ b/apps/web-antd/src/views/infra/apiAccessLog/index.vue @@ -32,7 +32,7 @@ async function onExport() { } /** 查看 API 访问日志详情 */ -function onView(row: InfraApiAccessLogApi.SystemApiAccessLog) { +function onDetail(row: InfraApiAccessLogApi.SystemApiAccessLog) { detailModalApi.setData(row).open(); } @@ -42,8 +42,8 @@ function onActionClick({ row, }: OnActionClickParams) { switch (code) { - case 'view': { - onView(row); + case 'detail': { + onDetail(row); break; } } diff --git a/apps/web-antd/src/views/infra/apiErrorLog/data.ts b/apps/web-antd/src/views/infra/apiErrorLog/data.ts index 62460520c..af766c81a 100644 --- a/apps/web-antd/src/views/infra/apiErrorLog/data.ts +++ b/apps/web-antd/src/views/infra/apiErrorLog/data.ts @@ -137,7 +137,7 @@ export function useGridColumns( name: 'CellOperation', options: [ { - code: 'view', + code: 'detail', text: '详情', show: hasAccessByCodes(['infra:api-error-log:query']), }, diff --git a/apps/web-antd/src/views/infra/apiErrorLog/index.vue b/apps/web-antd/src/views/infra/apiErrorLog/index.vue index ea390b4c1..9d960275f 100644 --- a/apps/web-antd/src/views/infra/apiErrorLog/index.vue +++ b/apps/web-antd/src/views/infra/apiErrorLog/index.vue @@ -33,7 +33,7 @@ async function onExport() { } /** 查看 API 错误日志详情 */ -function onView(row: InfraApiErrorLogApi.SystemApiErrorLog) { +function onDetail(row: InfraApiErrorLogApi.SystemApiErrorLog) { detailModalApi.setData(row).open(); } @@ -49,7 +49,7 @@ async function onProcess(id: number, processStatus: number) { content: $t('ui.actionMessage.operationSuccess'), key: 'action_process_msg', }); - await onRefresh(); + onRefresh(); } }); } @@ -60,8 +60,8 @@ function onActionClick({ row, }: OnActionClickParams) { switch (code) { - case 'view': { - onView(row); + case 'detail': { + onDetail(row); break; } case 'done': { diff --git a/apps/web-antd/src/views/infra/job/data.ts b/apps/web-antd/src/views/infra/job/data.ts index af1bde63a..8047b3b60 100644 --- a/apps/web-antd/src/views/infra/job/data.ts +++ b/apps/web-antd/src/views/infra/job/data.ts @@ -202,7 +202,7 @@ export function useGridColumns( }, // TODO @芋艿:增加一个“更多”选项 { - code: 'view', + code: 'detail', text: '详细', show: hasAccessByCodes(['infra:job:query']), }, diff --git a/apps/web-antd/src/views/infra/job/index.vue b/apps/web-antd/src/views/infra/job/index.vue index 4299daec8..3f812e5a9 100644 --- a/apps/web-antd/src/views/infra/job/index.vue +++ b/apps/web-antd/src/views/infra/job/index.vue @@ -53,7 +53,7 @@ function onEdit(row: InfraJobApi.InfraJob) { } /** 查看任务详情 */ -function onView(row: InfraJobApi.InfraJob) { +function onDetail(row: InfraJobApi.InfraJob) { detailModalApi.setData({ id: row.id }).open(); } @@ -139,8 +139,8 @@ function onActionClick({ onTrigger(row); break; } - case 'view': { - onView(row); + case 'detail': { + onDetail(row); break; } case 'log': { diff --git a/apps/web-antd/src/views/system/loginlog/data.ts b/apps/web-antd/src/views/system/loginlog/data.ts index 24599b8fe..1019e4597 100644 --- a/apps/web-antd/src/views/system/loginlog/data.ts +++ b/apps/web-antd/src/views/system/loginlog/data.ts @@ -105,7 +105,7 @@ export function useGridColumns( name: 'CellOperation', options: [ { - code: 'view', + code: 'detail', text: '详情', show: hasAccessByCodes(['system:login-log:query']), }, diff --git a/apps/web-antd/src/views/system/loginlog/index.vue b/apps/web-antd/src/views/system/loginlog/index.vue index 4cd37bc44..abb2be6f2 100644 --- a/apps/web-antd/src/views/system/loginlog/index.vue +++ b/apps/web-antd/src/views/system/loginlog/index.vue @@ -32,7 +32,7 @@ async function onExport() { } /** 查看登录日志详情 */ -function onView(row: SystemLoginLogApi.SystemLoginLog) { +function onDetail(row: SystemLoginLogApi.SystemLoginLog) { detailModalApi.setData(row).open(); } @@ -42,8 +42,8 @@ function onActionClick({ row, }: OnActionClickParams) { switch (code) { - case 'view': { - onView(row); + case 'detail': { + onDetail(row); break; } } diff --git a/apps/web-antd/src/views/system/mail/log/data.ts b/apps/web-antd/src/views/system/mail/log/data.ts index 9e0520647..63a124352 100644 --- a/apps/web-antd/src/views/system/mail/log/data.ts +++ b/apps/web-antd/src/views/system/mail/log/data.ts @@ -139,7 +139,7 @@ export function useGridColumns( name: 'CellOperation', options: [ { - code: 'view', + code: 'detail', text: '查看', show: hasAccessByCodes(['system:mail-log:query']), } diff --git a/apps/web-antd/src/views/system/mail/log/index.vue b/apps/web-antd/src/views/system/mail/log/index.vue index 28e9aebd9..51f683f7d 100644 --- a/apps/web-antd/src/views/system/mail/log/index.vue +++ b/apps/web-antd/src/views/system/mail/log/index.vue @@ -22,7 +22,7 @@ function onRefresh() { } /** 查看邮件日志 */ -function onView(row: SystemMailLogApi.SystemMailLog) { +function onDetail(row: SystemMailLogApi.SystemMailLog) { detailModalApi.setData(row).open(); } @@ -32,8 +32,8 @@ function onActionClick({ row, }: OnActionClickParams) { switch (code) { - case 'view': { - onView(row); + case 'detail': { + onDetail(row); break; } } diff --git a/apps/web-antd/src/views/system/notify/message/data.ts b/apps/web-antd/src/views/system/notify/message/data.ts index 187bfc869..640f4761d 100644 --- a/apps/web-antd/src/views/system/notify/message/data.ts +++ b/apps/web-antd/src/views/system/notify/message/data.ts @@ -154,8 +154,8 @@ export function useGridColumns( name: 'CellOperation', options: [ { - code: 'view', - text: '查看', + code: 'detail', + text: '详情', show: hasAccessByCodes(['system:notify-message:query']), }, ], diff --git a/apps/web-antd/src/views/system/notify/message/index.vue b/apps/web-antd/src/views/system/notify/message/index.vue index ea60a1919..568f2e8e9 100644 --- a/apps/web-antd/src/views/system/notify/message/index.vue +++ b/apps/web-antd/src/views/system/notify/message/index.vue @@ -22,7 +22,7 @@ function onRefresh() { } /** 查看站内信详情 */ -function onView(row: SystemNotifyMessageApi.SystemNotifyMessage) { +function onDetail(row: SystemNotifyMessageApi.SystemNotifyMessage) { detailModalApi.setData(row).open(); } @@ -32,8 +32,8 @@ function onActionClick({ row, }: OnActionClickParams) { switch (code) { - case 'view': { - onView(row); + case 'detail': { + onDetail(row); break; } } diff --git a/apps/web-antd/src/views/system/notify/my/data.ts b/apps/web-antd/src/views/system/notify/my/data.ts index aeb10d0f1..9172b35fd 100644 --- a/apps/web-antd/src/views/system/notify/my/data.ts +++ b/apps/web-antd/src/views/system/notify/my/data.ts @@ -93,8 +93,8 @@ export function useGridColumns( name: 'CellOperation', options: [ { - code: 'view', - text: '查看', + code: 'detail', + text: '详情', show: hasAccessByCodes(['system:notify-message:query']), }, ], diff --git a/apps/web-antd/src/views/system/notify/my/index.vue b/apps/web-antd/src/views/system/notify/my/index.vue index 8b1f1c9ee..2ffb9955c 100644 --- a/apps/web-antd/src/views/system/notify/my/index.vue +++ b/apps/web-antd/src/views/system/notify/my/index.vue @@ -32,7 +32,7 @@ function onRefresh() { } /** 查看站内信详情 */ -function onView(row: SystemNotifyMessageApi.SystemNotifyMessage) { +function onDetail(row: SystemNotifyMessageApi.SystemNotifyMessage) { // 标记已读 if (!row.readStatus) { handleReadOne(row.id); @@ -102,8 +102,8 @@ function onActionClick({ row, }: OnActionClickParams) { switch (code) { - case 'view': { - onView(row); + case 'detail': { + onDetail(row); break; } } diff --git a/apps/web-antd/src/views/system/operatelog/data.ts b/apps/web-antd/src/views/system/operatelog/data.ts index c5712e753..f314f9d54 100644 --- a/apps/web-antd/src/views/system/operatelog/data.ts +++ b/apps/web-antd/src/views/system/operatelog/data.ts @@ -134,7 +134,7 @@ export function useGridColumns( name: 'CellOperation', options: [ { - code: 'view', + code: 'detail', text: '详情', show: hasAccessByCodes(['system:operate-log:query']), }, diff --git a/apps/web-antd/src/views/system/operatelog/index.vue b/apps/web-antd/src/views/system/operatelog/index.vue index 80dc5cfe7..6d28793e3 100644 --- a/apps/web-antd/src/views/system/operatelog/index.vue +++ b/apps/web-antd/src/views/system/operatelog/index.vue @@ -32,7 +32,7 @@ async function onExport() { } /** 查看操作日志详情 */ -function onView(row: SystemOperateLogApi.SystemOperateLog) { +function onDetail(row: SystemOperateLogApi.SystemOperateLog) { detailModalApi.setData(row).open(); } @@ -42,8 +42,8 @@ function onActionClick({ row, }: OnActionClickParams) { switch (code) { - case 'view': { - onView(row); + case 'detail': { + onDetail(row); break; } } diff --git a/apps/web-antd/src/views/system/sms/log/data.ts b/apps/web-antd/src/views/system/sms/log/data.ts index 6bbab713c..0ab18ce34 100644 --- a/apps/web-antd/src/views/system/sms/log/data.ts +++ b/apps/web-antd/src/views/system/sms/log/data.ts @@ -177,8 +177,8 @@ export function useGridColumns( name: 'CellOperation', options: [ { - code: 'view', - text: '查看', + code: 'detail', + text: '详情', show: hasAccessByCodes(['system:sms-log:query']), }, ], diff --git a/apps/web-antd/src/views/system/sms/log/index.vue b/apps/web-antd/src/views/system/sms/log/index.vue index 3380fe567..f41fff610 100644 --- a/apps/web-antd/src/views/system/sms/log/index.vue +++ b/apps/web-antd/src/views/system/sms/log/index.vue @@ -32,7 +32,7 @@ async function onExport() { } /** 查看短信日志详情 */ -function onView(row: SystemSmsLogApi.SystemSmsLog) { +function onDetail(row: SystemSmsLogApi.SystemSmsLog) { detailModalApi.setData(row).open(); } @@ -42,8 +42,8 @@ function onActionClick({ row, }: OnActionClickParams) { switch (code) { - case 'view': { - onView(row); + case 'detail': { + onDetail(row); break; } } diff --git a/apps/web-antd/src/views/system/social/user/data.ts b/apps/web-antd/src/views/system/social/user/data.ts index 9e7b4e3c9..ddaeef05d 100644 --- a/apps/web-antd/src/views/system/social/user/data.ts +++ b/apps/web-antd/src/views/system/social/user/data.ts @@ -110,7 +110,7 @@ export function useGridColumns( name: 'CellOperation', options: [ { - code: 'view', + code: 'detail', text: '详情', show: hasAccessByCodes(['system:social-user:query']), }, diff --git a/apps/web-antd/src/views/system/social/user/index.vue b/apps/web-antd/src/views/system/social/user/index.vue index 8d8a5ba87..247bf0276 100644 --- a/apps/web-antd/src/views/system/social/user/index.vue +++ b/apps/web-antd/src/views/system/social/user/index.vue @@ -21,7 +21,7 @@ function onRefresh() { } /** 查看详情 */ -function onView(row: SystemSocialUserApi.SystemSocialUser) { +function onDetail(row: SystemSocialUserApi.SystemSocialUser) { detailModalApi.setData(row).open(); } @@ -31,8 +31,8 @@ function onActionClick({ row, }: OnActionClickParams) { switch (code) { - case 'view': { - onView(row); + case 'detail': { + onDetail(row); break; } }