From f76d5c856604d7dd495ea8a09a08336d75e7df3a Mon Sep 17 00:00:00 2001 From: qianlishi <1432731663@qq.com> Date: Fri, 10 Jan 2025 17:21:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=AD=97=E5=AD=97=E5=85=B8=E9=A1=B9?= =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/dictItem/utils/schemas.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Report-V3-TS/src/views/system/dictItem/utils/schemas.ts b/Report-V3-TS/src/views/system/dictItem/utils/schemas.ts index 656aa6d0..5ad93bd5 100644 --- a/Report-V3-TS/src/views/system/dictItem/utils/schemas.ts +++ b/Report-V3-TS/src/views/system/dictItem/utils/schemas.ts @@ -3,7 +3,7 @@ * @Author: qianlishi * @Date: 2025-01-03 01:01:14 * @LastEditors: qianlishi - * @LastEditTime: 2025-01-10 16:26:48 + * @LastEditTime: 2025-01-10 17:20:47 */ import { computed, h } from 'vue'; import { cloneDeep } from 'lodash-es'; @@ -11,6 +11,7 @@ import { isObject } from '@/utils/is'; import { NButton, NTag } from 'naive-ui' import { enable } from '@/enums/common' import { FormSchema } from '@/components/Base/Jsq-crud/src/components/Jsq-searchForm'; +import { getDictLabelByCode } from '@/utils' // 表单配置 export const getFormSchemas = ({ params }: Record) => { @@ -223,8 +224,8 @@ export const getTableColumns = ({ updateClick, removeSingle }) => { align: 'center', }, { - title: '字典名称', - key: 'dictName', // 表格展示字段 + title: '字典项名称', + key: 'itemName', // 表格展示字段 align: 'center', }, { @@ -236,6 +237,9 @@ export const getTableColumns = ({ updateClick, removeSingle }) => { title: '语言标识', key: 'locale', align: 'center', + render(row) { + return getDictLabelByCode("LOCALE", row["locale"]); + } }, { title: '状态',