From ebbd788fbb2c0b45d4473798efc57eec8ba74a25 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期二, 18 六月 2024 14:51:16 +0800 Subject: [PATCH] 版本更新至2.11.5 --- src/views/tigerprojects/system/lowcode/normal/index.vue | 41 +++++++++++++++++++++++++++++++++++------ 1 files changed, 35 insertions(+), 6 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/normal/index.vue b/src/views/tigerprojects/system/lowcode/normal/index.vue index 60439c3..557e50b 100644 --- a/src/views/tigerprojects/system/lowcode/normal/index.vue +++ b/src/views/tigerprojects/system/lowcode/normal/index.vue @@ -4,7 +4,7 @@ * @version: * @Date: 2024-05-30 13:28:20 * @LastEditors: your name - * @LastEditTime: 2024-06-14 11:21:25 + * @LastEditTime: 2024-06-16 00:41:25 --> <template> <div> @@ -83,6 +83,7 @@ const cType = ref(''); const dtlSlots = ref([] as any[]); const selectVals = ref({}); +const isExistSql = ref(''); const [registerCust, { openModal: openCustomModal, closeModal }] = useModal(); const [registerItemAdd, { openModal: openItemModal }] = useModal(); @@ -143,6 +144,7 @@ entityName: objParams.value.ID, formJson: _crudFormSchema.value, crudColSlots, + isExistSql: isExistSql.value, }); break; } @@ -229,6 +231,9 @@ _cruds[i].componentProps.maxNumber = 1; _cruds[i].rules = [{ required: true, message: '璇烽�夋嫨涓婁紶鏂囦欢' }]; } + if (_cruds[i].isexist == 'Y') { + isExistSql.value = _cruds[i].field; + } onChangeConfig(_cruds[i]); } _crudFormSchema.value = _cruds; @@ -248,17 +253,31 @@ _columns.value = objs; }); -/* 寮瑰嚭閫夋嫨妗嗛�夋嫨鎴愬姛鍚庝簨浠� */ +/** + * @description: 寮瑰嚭閫夋嫨妗嗛�夋嫨鎴愬姛鍚庝簨浠� + * @param {*} d + * @param {*} u + * @param {*} item + * @return {*} + */ function handleItemSuccess(d, u, item) { getForm().setFieldsValue(GetSelectSuccess(d, u, getForm().getFieldsValue()[`${item.replace(/form-/, '').replace(/add/, '')}PSelect_0`])); } -/* 寮瑰嚭閫夋嫨妗� */ +/** + * @description: 寮瑰嚭閫夋嫨妗� + * @param {*} item + * @return {*} + */ function handleSelectItem(item) { OpenSelectItem(openItemModal, getForm().getFieldsValue()[`${item.replace(/form-/, '').replace(/add/, '')}PSelect_0`]); } -/* Select 鑷畾涔塷nChange鏂规硶 */ +/** + * @description: Select 鑷畾涔塷nChange鏂规硶 + * @param {*} obj + * @return {*} + */ function onChangeConfig(obj: any) { if (obj.component == 'Select') { var options = obj.componentProps.options; @@ -277,7 +296,13 @@ reload(); } -/* 鍚勮〃鍗曞唴寮瑰嚭閫夋嫨妗嗛�夋嫨鎴愬姛鍚庢柟娉� */ +/** + * @description: 鍚勮〃鍗曞唴寮瑰嚭閫夋嫨妗嗛�夋嫨鎴愬姛鍚庢柟娉� + * @param {*} d + * @param {*} u + * @param {*} item + * @return {*} + */ function handleEntSuccess(d, u, item) { var values = GetSelectSuccess(d, u, cType.value); selectVals.value = values; //淇濆瓨寮瑰嚭妗嗛�夋嫨鐨勭粨鏋� @@ -286,7 +311,11 @@ useFormData.value[item][1].setFieldsValue(_val); } -/* 鎵撳紑鑷畾涔夋ā鎬佹 */ +/** + * @description: 鎵撳紑鑷畾涔夋ā鎬佹 + * @param {*} item + * @return {*} + */ function handleCustClick(item) { OpenCustModal( useModalData.value[item][1].openModal, //甯﹀叆openModal鏂规硶 -- Gitblit v1.9.3