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/api/tigerapi/model/basModel.ts |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/src/api/tigerapi/model/basModel.ts b/src/api/tigerapi/model/basModel.ts
index 1239bb3..49a8891 100644
--- a/src/api/tigerapi/model/basModel.ts
+++ b/src/api/tigerapi/model/basModel.ts
@@ -122,17 +122,17 @@
 export interface EntityCustFunctionType {
   CreateAction: (fnName: string) => {};
   ActionItem: (params: Recordable<any>, data, ...args) => ActionItem[];
-  EditOperation: (data: Ref<any[]>, d, u) => void;
+  EditOperation: (data: Ref<any[]>, d, u, item: string | undefined) => void;
   OpenSelectItem: (openItemModal: Fn, ...args) => void;
   GetSelectSuccess: (d, u, ...args) => {};
   GetHomeUrl: () => string;
-  GetBaseColumns: () => [];
-  GetSearchForm: () => [];
-  GetCrudForm: (type: string) => [];
-  GetBaseForm: () => [];
+  GetBaseColumns: (type: string | undefined) => [] | {};
+  GetSearchForm: (type: string | undefined) => [] | {};
+  GetCrudForm: (type: string | undefined,) => [] | {};
+  GetBaseForm: () => [] | {};
   GetBaseCards: (type: string | undefined) => [];
-  OthersValues: (val: string, id: string) => {};
-  GetTitle: (type: string) => {};
+  KeyFieldValues: (val: string, id: string) => {};
+  GetTitle: (type: string | undefined) => {};
   GetCrudColSlots: () => [];
   nodeChange: ({}) => void;
   CreateIcon: (params: Recordable<any>) => string;
@@ -140,8 +140,12 @@
   GetNavItems: (type: string) => NavItem[];
   navChangeItem: (action: any, ...args) => void;
   GetUseModals: () => {};
+  GetUseDrawers: () => [];
+  GetUseTables: (data: Ref<Recordable[]>, ...args) => [];
   SubmitFunc: (values: Recordable<any>, type: string, emit) => void;
+  FormSearch: (d) => string | {};
   GetSlots: (type: string | undefined) => {};
   GenerateHtml: (type: string | null) => HTMLElement | null;
   CustFunc: (type: string | undefined, ...args) => void | any;
+  SubmitAll: (data: Ref<any[]>) => void | any;
 }

--
Gitblit v1.9.3