From a728870f227f25f7bf10f3e4719c77c719d9188c Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Mon, 29 Apr 2024 23:12:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(sj=5F1.0.0):=20=E5=AE=8C=E6=88=90=E9=87=8D?= =?UTF-8?q?=E8=AF=95=E4=BB=BB=E5=8A=A1=E7=9A=84=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/langs/en-us.ts | 1 + src/locales/langs/zh-cn.ts | 3 +- src/typings/app.d.ts | 1 + src/views/retry/log/index.vue | 10 +-- .../log/modules/retry-log-detail-drawer.vue | 4 +- src/views/retry/task/index.vue | 72 +++++++++------- .../task/modules/retry-task-detail-drawer.vue | 84 +++++++++++++++++++ .../retry/task/modules/retry-task-search.vue | 6 +- 8 files changed, 138 insertions(+), 43 deletions(-) create mode 100644 src/views/retry/task/modules/retry-task-detail-drawer.vue diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index a32f85e..c715d4e 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -751,6 +751,7 @@ const local: App.I18n.Schema = { }, retryTask: { title: 'RetryTask List', + detail: 'RetryTask Detail', uniqueId: 'UniqueId', groupName: 'Group name', sceneName: 'Scene name', diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index a09fe28..4043823 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -747,6 +747,7 @@ const local: App.I18n.Schema = { }, retryTask: { title: '重试任务列表', + detail: '重试任务详情', uniqueId: 'UniqueId', groupName: '组名称', sceneName: '场景名称', @@ -823,7 +824,7 @@ const local: App.I18n.Schema = { } }, retryLog: { - title: 'RetryLog 列表', + title: '重试日志列表', detail: '重试日志详情', UniqueId: 'UniqueId', groupName: '组名称', diff --git a/src/typings/app.d.ts b/src/typings/app.d.ts index ba3d9ca..3cd8470 100644 --- a/src/typings/app.d.ts +++ b/src/typings/app.d.ts @@ -899,6 +899,7 @@ declare namespace App { }; retryTask: { title: string; + detail: string; uniqueId: string; groupName: string; sceneName: string; diff --git a/src/views/retry/log/index.vue b/src/views/retry/log/index.vue index a2e64ba..f107148 100644 --- a/src/views/retry/log/index.vue +++ b/src/views/retry/log/index.vue @@ -125,9 +125,6 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP width: 130, render: row => (
- edit(row.id)}> - {$t('common.detail')} - {row.retryStatus === 1 ? ( handleDelete(row.id)}> {{ @@ -148,7 +145,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP ] }); -const { handleAdd, handleEdit, checkedRowKeys } = useTableOperate(data, getData); +const { checkedRowKeys } = useTableOperate(data, getData); async function handleBatchDelete() { const { error } = await fetchBatchDeleteRetryLog(checkedRowKeys.value as any[]); @@ -168,10 +165,6 @@ async function loadRetryInfo(row: Api.RetryLog.RetryLog) { const res = await fetchRetryLogById(row.id!); detailData.value = (res.data as Api.RetryLog.RetryLog) || null; } - -function edit(id: any) { - handleEdit(id); -}