From 8736042f4116942b2253d6eb4e782645125c40e2 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期一, 24 二月 2025 20:13:11 +0800 Subject: [PATCH] 低代码更新 --- src/views/tigerprojects/system/lowcode/high/baseForm.vue | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/high/baseForm.vue b/src/views/tigerprojects/system/lowcode/high/baseForm.vue index 41edb84..ccc3d24 100644 --- a/src/views/tigerprojects/system/lowcode/high/baseForm.vue +++ b/src/views/tigerprojects/system/lowcode/high/baseForm.vue @@ -35,8 +35,8 @@ import { getEntity } from '/@/api/tigerapi/system'; import { isNullOrEmpty } from '/@/utils/is'; import { useI18n } from '/@/hooks/web/useI18n'; -import { isFunction } from 'xe-utils'; - + import { isFunction } from 'xe-utils'; + const { t } = useI18n(); const props = defineProps({ entityName: { type: String }, @@ -51,7 +51,8 @@ BaseForm: GetBaseForm(props.entityName), }); const colSlots = ref<any[]>(objParams.value['colSlotsInHigh']); - const useModals = GetUseModals && isFunction(GetUseModals)? ref<any>(GetUseModals()): ref<any>({}); + const useModals = + GetUseModals && isFunction(GetUseModals) ? ref<any>(GetUseModals()) : ref<any>({}); //寮瑰嚭妗嗘垨楂樼骇椤甸潰澶氳〃鍗曠粨鏋� useFormData.value = { @@ -84,7 +85,6 @@ }); }); - /** * @description: 寮瑰嚭閫夋嫨妗嗛�夋嫨鎴愬姛鍚庝簨浠� * @param {*} d @@ -92,7 +92,7 @@ * @param {*} item 椤甸潰涓婂惊鐜娊灞夊垪琛ㄤ紶鍏ョ殑瀹炰綋鍚嶅瓧锛屼綔涓哄悇琛ㄦ牸鐩稿叧鏂规硶鐨刱ey锛屼粠鑰岃皟鐢ㄥ悇琛ㄦ牸鐩稿叧鐨勬柟娉曪紝濡傦細useFormData.value[_baseCards.value[0]['name']][1].getForm() * @return {*} */ - function handleItemSuccess(d, u, item) { + function handleItemSuccess(d, u, item) { /* 鍔ㄦ�乮mport瀹炰綋鍚�.ts鐨勮嚜瀹氫箟鏂规硶 */ try { import( @@ -117,12 +117,13 @@ */ function handleSelectItem(item) { /* 鍔ㄦ�乮mport瀹炰綋鍚�.ts鐨勮嚜瀹氫箟鏂规硶 */ - const name = useFormData.value[_baseCards.value[0]['name']][1].getFieldsValue()[`${item.replace(/form-/, '').replace(/add/, '')}PSelect_0`]; + const name = + useFormData.value[_baseCards.value[0]['name']][1].getFieldsValue()[ + `${item.replace(/form-/, '').replace(/add/, '')}PSelect_0` + ]; const openModal = useModals.value[item][1].openModal; try { - import( - `../entityts/${name}.ts` - ) + import(`../entityts/${name}.ts`) .then((m) => { const [{ OpenSelectItem }] = m.default(); OpenSelectItem(openModal); -- Gitblit v1.9.3