diff --git a/locales/en.yaml b/locales/en.yaml index 0521093..267b81f 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -44,6 +44,7 @@ buttons:Deselect: Deselect buttons:DeleteInBatches: Delete In Batches buttons:ExportInBatches: Export In Batches buttons:AgressInBatches: Agress In Batches +buttons:AgressAll: Agress All buttons:DisagressInBatches: Disagress In Batches buttons:ExitInBatches: Exit In Batches buttons:ExportAll: Export All @@ -55,7 +56,7 @@ buttons:ForceToExit: Force Exit buttons:DataAdmin: Data Admin buttons:Audit: Audit buttons:Feedback: Feedback -buttons:ErrorRecovery: Error Recovery +buttons:ErrorRecovery: Report Code Error search:Total: Total search:History: History search:Collect: Collect @@ -125,8 +126,8 @@ menus:CodeQueryCount: Query Statistics menus:QueryCodedetails: Log Detail menus:DataQuality: Data Quality menus:DataImport: Data Import -menus:DataFeedback: Data Feedback -menus:DataMaintain: Data Export +menus:DataFeedback: Data Review +menus:DataMaintain: Data Maintenance status:Load: Loading... status:Message: Message status:Notify: Notify diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index 34dd79c..6cf188e 100644 --- a/locales/zh-CN.yaml +++ b/locales/zh-CN.yaml @@ -44,6 +44,7 @@ buttons:Deselect: 取消选择 buttons:DeleteInBatches: 批量删除 buttons:ExportInBatches: 批量导出 buttons:AgressInBatches: 批量通过 +buttons:AgressAll: 全部通过 buttons:DisagressInBatches: 批量驳回 buttons:ExportAll: 全部导出 buttons:UploadAvatar: 上传头像 diff --git a/src/api/code.ts b/src/api/code.ts index 7349454..1e34041 100644 --- a/src/api/code.ts +++ b/src/api/code.ts @@ -11,8 +11,8 @@ import { filterEmptyObject } from "./utils"; /** * 获取编码模版 */ -export const getCodeTemplateAPI = () => { - return http.request("get", "/api/code/template", { +export const getCodeTemplateAPI = (type: string) => { + return http.request("get", `/api/code/template/${type}`, { responseType: "blob" // 设置响应类型为 blob }); }; @@ -20,8 +20,8 @@ export const getCodeTemplateAPI = () => { /** * 获取查询模版 */ -export const getQueryTemplateAPI = () => { - return http.request("get", "/api/code/queryTemplate", { +export const getQueryTemplateAPI = (type: string) => { + return http.request("get", `/api/code/queryTemplate/${type}`, { responseType: "blob" // 设置响应类型为 blob }); }; @@ -326,3 +326,8 @@ export const putCodeFeedbackAuditAPI = (data: { }) => { return http.request("put", `/api/code/feedbackAudit`, { data }); }; + +/**全部审核通过 */ +export const putCodeFeedbackAuditAllAPI = () => { + return http.request("put", `/api/codeImportAudit/all`); +}; diff --git a/src/views/codes/index/index.vue b/src/views/codes/index/index.vue index 790bcb5..d2664d7 100644 --- a/src/views/codes/index/index.vue +++ b/src/views/codes/index/index.vue @@ -9,7 +9,7 @@ 可点击或拖拽上传 @@ -67,9 +66,24 @@
{{ t("buttons:DownLodedTemplate") }}{{ t("buttons:DownLodedTemplate") }}(.xlsx) + {{ t("buttons:DownLodedTemplate") }}(.csv) + {{ t("buttons:DownLodedTemplate") }}(.xls)