From 46c3d28c5633baaddad0da441185310b9360a45b Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期三, 03 七月 2024 14:56:21 +0800
Subject: [PATCH] 高级表单优化

---
 src/views/tigerprojects/system/lowcode/normal/mainTable.vue |   18 +++++-------------
 1 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/src/views/tigerprojects/system/lowcode/normal/mainTable.vue b/src/views/tigerprojects/system/lowcode/normal/mainTable.vue
index 22e76eb..7a81b7c 100644
--- a/src/views/tigerprojects/system/lowcode/normal/mainTable.vue
+++ b/src/views/tigerprojects/system/lowcode/normal/mainTable.vue
@@ -70,7 +70,7 @@
   const _crudFormSchema = inject('_crudFormSchema') as Ref<any[]>;
   const buttons = ref<[]>(await getRoleButtons(currentRoute.value.meta.menuCode as string));
   const isExistSql = inject('isExistSql') as Ref<string>;
-  const others = inject('others') as Ref<Recordable[]>;
+  const keyFieldValues = inject('keyFieldValues') as Ref<Recordable[]>;
   const entityName = ref(objParams['ID']);
   const go = useGo();
   const [registerDrawer, { openDrawer }] = useDrawer();
@@ -84,11 +84,7 @@
   const EntityCustFunction = ref([
     {
       ActionItem(params, data, ...args) {},
-      EditOperation(data, d, u) {},
-      GetBaseColumns(type: string | undefined) {},
-      GetSearchForm(type: string | undefined) {},
-      GetCrudForm(type: string | undefined, ...args) {},
-      OthersValues(val, id) {},
+      KeyFieldValues(val, id) {},
     } as EntityCustFunctionType,
   ]);
   /* 鍔ㄦ�乮mport瀹炰綋鍚�.ts鐨勮嚜瀹氫箟鏂规硶 */
@@ -98,18 +94,14 @@
   const [
     {
       ActionItem: nActionItem,
-      EditOperation,
-      GetBaseColumns,
-      GetSearchForm,
-      GetCrudForm,
-      OthersValues,
+      KeyFieldValues,
     },
   ] = isNullOrUnDef(custImport.value['default'])
     ? EntityCustFunction.value
     : custImport.value['default']();
-  others.value = isNullOrUnDef(OthersValues)
+    keyFieldValues.value = isNullOrUnDef(KeyFieldValues)
     ? {}
-    : OthersValues(objParams['CODE'], objParams['ID']);
+    : KeyFieldValues(objParams['CODE'], objParams['ID']);
   const [registerTable, { getForm, reload, setProps }] = useTable({
     title: '鍒楄〃淇℃伅',
     api: getListByPage,

--
Gitblit v1.9.3