From 9cf28df36374565ecb8c4e12658a646fba64bb0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9A=93=E6=9C=88=E5=BD=92=E5=B0=98?= Date: Tue, 18 Feb 2025 02:03:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=97=A5=E5=BF=97=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en.yaml | 2 + locales/zh-CN.yaml | 2 + src/api/code.ts | 14 +++ src/views/codes/index/index.vue | 24 ++-- src/views/codes/index/utils/hook.tsx | 102 +++++++++++++++- src/views/codes/log/components/details.vue | 132 +++++++++++++++++++-- src/views/codes/log/index.vue | 27 +++-- src/views/codes/log/utils/hook.tsx | 128 +++++++++++++++++++- 8 files changed, 399 insertions(+), 32 deletions(-) diff --git a/locales/en.yaml b/locales/en.yaml index f0dd947..c4ba215 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -39,6 +39,8 @@ buttons:Linked: Linked buttons:More: More buttons:Deselect: Deselect buttons:DeleteInBatches: Delete In Batches +buttons:ExportInBatches: Export In Batches +buttons:ExportAll: Export All buttons:UploadAvatar: Upload Avatar buttons:ResetPassword: Reset Password buttons:RoleAllocation: Role Allocation diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index ad5fb20..a6d3748 100644 --- a/locales/zh-CN.yaml +++ b/locales/zh-CN.yaml @@ -39,6 +39,8 @@ buttons:Linked: 联动 buttons:More: 更多 buttons:Deselect: 取消选择 buttons:DeleteInBatches: 批量删除 +buttons:ExportInBatches: 批量导出 +buttons:ExportAll: 全部导出 buttons:UploadAvatar: 上传头像 buttons:ResetPassword: 重置密码 buttons:RoleAllocation: 角色分配 diff --git a/src/api/code.ts b/src/api/code.ts index 6540882..e984e32 100644 --- a/src/api/code.ts +++ b/src/api/code.ts @@ -128,3 +128,17 @@ export const getCodeLogListAPI = (params: { export const getCodeLogInfoAPI = (id: string) => { return http.request("get", `/api/code/logInfo/${id}`); }; + +/**获取所有查询编码列表 */ +export const getCodeLogListAllAPI = (params: { + startTime?: string; + endTime?: string; +}) => { + return http.request>( + "get", + `/api/code/logList/all`, + { + params: filterEmptyObject(params) + } + ); +}; diff --git a/src/views/codes/index/index.vue b/src/views/codes/index/index.vue index 2748a4b..ad1bede 100644 --- a/src/views/codes/index/index.vue +++ b/src/views/codes/index/index.vue @@ -32,7 +32,7 @@ {{ showUploadArea ? t("buttons:Hide") : t("buttons:Import") }} @@ -45,6 +45,7 @@ ref="uploadRef" v-model:file-list="fileList" drag + :limit="1" action="#" class="w-full" :auto-upload="false" @@ -98,8 +99,12 @@