From a2139606c2d77ab19162935cc37a46dc7b9d4c74 Mon Sep 17 00:00:00 2001 From: qianlishi <1432731663@qq.com> Date: Sun, 12 Jan 2025 22:10:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=85=B8=E9=A1=B9=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/dictItem/utils/schemas.ts | 12 +++++++++--- 1 file changed, 9 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 03aba6a3..318b2db0 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 17:20:47 + * @LastEditTime: 2025-01-12 22:09:17 */ import { computed, h } from 'vue'; import { cloneDeep } from 'lodash-es'; @@ -113,6 +113,8 @@ export const getTableButtons = ({ addClick, removeAll }) => { // 新增表单数据 export const getDialogRecordingSchemas = () => { + const route = useRoute(); + const { query } = route const schemas = [ { label: '字典编码', @@ -120,6 +122,8 @@ export const getDialogRecordingSchemas = () => { component: "NInput", // 表单类型 componentProps: { // 组件配置 placeholder: '', + defaultValue: query.dictCode, + disabled: true }, rules: [ { required: true, message: "字典编码不能为空", trigger: "blur" }, @@ -159,7 +163,8 @@ export const getDialogRecordingSchemas = () => { field: 'locale', component: 'JsqSelect', componentProps: { // 组件配置 - dictCode: "LOCALE" + dictCode: "LOCALE", + defaultValue: 'zh' }, rules: [ { required: true, message: "语言标识不能为空", trigger: "blur" } @@ -170,7 +175,8 @@ export const getDialogRecordingSchemas = () => { field: 'enabled', component: 'JsqSelect', componentProps: { // 组件配置 - dictCode: "ENABLE_FLAG" + dictCode: "ENABLE_FLAG", + defaultValue: 1 }, rules: [ { required: true, message: "状态不能为空", trigger: "blur" }