From c0c912f08bb893be3f7a8eb741490b331196592e Mon Sep 17 00:00:00 2001 From: lai <10633968+laiyujun1@user.noreply.gitee.com> Date: Thu, 16 Jan 2025 14:22:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=AD=97=E5=85=B8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DictTag/index.vue | 1 - src/locales/langs/en-us.ts | 8 ++++++-- src/locales/langs/zh-cn.ts | 8 ++++++-- src/service/api/dict.ts | 12 +++++++++++- src/views/manage/dict/dictData/index.vue | 2 +- 5 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue index 9455039..d4d76d7 100644 --- a/src/components/DictTag/index.vue +++ b/src/components/DictTag/index.vue @@ -23,7 +23,6 @@ const props = defineProps({ /**遍历找到对应值数据项 */ const item = computed(() => { - console.log(props.options); if (Array.isArray(props.options) && props.options.length > 0) { let option = props.options.find( item => `${item[props.valueField]}` === `${props.value}` diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index 0c8850f..06194ef 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -592,8 +592,8 @@ const local: any = { }, log:{ logId:'Log ID', - module:'System Module', - operType:'Operation Type', + module:'Module Title', + operType:'Business Type', operName:'Operator', operIp:'Operation Address', operArea:'Operation Location', @@ -603,6 +603,10 @@ const local: any = { backUser:'Back User', phoneUser:'Phone User', other:'Other', + operUrl:'Operation URL', + operParam:'Operation Parameters', + jsonResult:"Result", + title:"Log Management", }, task:{ taskId:'ID', diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index 973227e..d36506f 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -592,8 +592,8 @@ const local:any = { }, log:{ logId:'日志编号', - module:'系统模块', - operType:'操作类型', + module:'模块标题', + operType:'业务类型', operName:'操作人员', operIp:'操作地址', operArea:'操作地点', @@ -603,6 +603,10 @@ const local:any = { backUser:'后台用户', phoneUser:'手机用户', other:'其他', + operUrl:'请求URL', + operParam:'请求参数', + jsonResult:"结果", + title:"日志管理", }, task:{ taskId:'编号', diff --git a/src/service/api/dict.ts b/src/service/api/dict.ts index f6ab14f..be896da 100644 --- a/src/service/api/dict.ts +++ b/src/service/api/dict.ts @@ -36,7 +36,17 @@ export const doDeleteDict = (dictId: string | number) => { }; - +/** + * 查询字典类型详细 + * @param dictId 字典编号 + * @returns object + */ +export function doGetType(dictId: string | number) { + return request({ + url: `/system/dict/type/${dictId}`, + method: 'get', + }); +} /** diff --git a/src/views/manage/dict/dictData/index.vue b/src/views/manage/dict/dictData/index.vue index 3219378..39ea680 100644 --- a/src/views/manage/dict/dictData/index.vue +++ b/src/views/manage/dict/dictData/index.vue @@ -402,7 +402,7 @@ onMounted(() => { // 指定任务id数据列表 if (dictId && dictId !== '0') { - doGetDataInfo(dictId).then(res => { + doGetType(dictId).then(res => { if (!res.error) { searchParams.dictType = res.data.dictType; getData();