From 7bcfc0507043dc878c801a259aa7d058f4982551 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期四, 09 一月 2025 00:42:21 +0800 Subject: [PATCH] 工单管理优化 --- src/views/tigerprojects/system/lowcode/normal/index.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/normal/index.vue b/src/views/tigerprojects/system/lowcode/normal/index.vue index 7222220..8dfa369 100644 --- a/src/views/tigerprojects/system/lowcode/normal/index.vue +++ b/src/views/tigerprojects/system/lowcode/normal/index.vue @@ -38,8 +38,8 @@ const go = useGo(); const objParams = ref(JSON.parse(decodeURI(route.params?.id as string))); // 浠巗essionStorage涓鍙栧弬鏁板苟杞崲鍥炲璞� - const _savedParams =sessionStorage.getItem(`${objParams.value.sName}_params`) - const savedParams = _savedParams ? ref(JSON.parse(decodeURI(_savedParams))) : ref({}); + const _savedParams = sessionStorage.getItem(`${objParams.value.sName}_params`); + const savedParams = _savedParams ? ref(JSON.parse(decodeURI(_savedParams))) : ref({}); const entityName = ref(objParams.value.ID); const _columns = ref<any[]>([]); const _searchFormSchema = ref<any[]>([]); @@ -119,6 +119,7 @@ searchForms[i].componentProps.params.name = `${objParams.value.ID}+${searchForms[i].field}s`; searchForms[i].componentProps.labelField = unref(getLocale) == 'zh_CN' ? 'Desc' : 'Name'; + searchForms[i].defaultValue = null; } if ( !isNullOrEmpty(searchForms[i].componentProps) && @@ -127,6 +128,7 @@ ) { searchForms[i].componentProps.api = getEntity; searchForms[i].componentProps.resultField = 'Data.Items'; + searchForms[i].defaultValue = null; } onChangeConfig(searchForms[i]); } @@ -148,6 +150,7 @@ _cruds[i].componentProps.api = GetEnum; _cruds[i].componentProps.params.name = `${objParams.value.ID}+${_cruds[i].field}s`; _cruds[i].componentProps.labelField = unref(getLocale) == 'zh_CN' ? 'Desc' : 'Name'; + _cruds[i].defaultValue = null; } if ( !isNullOrEmpty(_cruds[i].componentProps) && @@ -156,6 +159,7 @@ ) { _cruds[i].componentProps.api = getEntity; _cruds[i].componentProps.resultField = 'Data.Items'; + _cruds[i].defaultValue = null; } if (_cruds[i].component == 'Upload') { _cruds[i].componentProps = {}; -- Gitblit v1.9.3