From 68d75a540ec8b3168c3af956ea00b898036d92cd Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期四, 04 七月 2024 00:17:17 +0800 Subject: [PATCH] 包装规则更新 --- src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts | 60 ++++++++++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 44 insertions(+), 16 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts b/src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts index 97e749e..ec88e63 100644 --- a/src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts +++ b/src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts @@ -4,25 +4,53 @@ * @version: * @Date: 2024-06-19 20:34:27 * @LastEditors: Ben Lin - * @LastEditTime: 2024-06-22 00:32:39 + * @LastEditTime: 2024-06-28 10:58:43 */ -import { ActionItem } from '/@/components/Table'; +import { ActionItem, BasicColumn } from '/@/components/Table'; function _default() { + const ActionColumn: BasicColumn = { + width: 80, + title: '鎿嶄綔', + dataIndex: 'action', + slots: { customRender: 'action' }, + fixed: undefined, + }; + /** - * @description: 浜у搧缁戝畾宸ヨ壓璺嚎鎿嶄綔瀛楁鑷畾涔夋寜閽� + * @description: 涓�浜涜嚜瀹氫箟鏂规硶 * @return {*} - */ - function ActionItem(params: Recordable<any>, data, ...args): ActionItem[] { - return [ - { - icon: 'binding|svg', - tooltip: '缁戝畾宸ヨ壓', - onClick: handleBinding.bind(null, args[5], params), - }, - ]; - } + */ + const methods = { + /** + * @description: 鑾峰彇鏂板鎸夐挳鐨勮涓� + * @return {*} + */ + CreateAction: (fnName: string) => { + return { + action: 'drawer', //drawer(鎵撳紑宸︿晶鎶藉眽妗�) | go(璺宠浆鍒版柊鐨勯〉闈�) + }; + }, + /** + * @description: 浜у搧缁戝畾宸ヨ壓璺嚎鎿嶄綔瀛楁鑷畾涔夋寜閽� + * @return {*} + */ + ActionItem: (params: Recordable<any>, data, ...args): ActionItem[] => { + return [ + { + icon: 'binding|svg', + tooltip: '缁戝畾宸ヨ壓', + onClick: handleBinding.bind(null, args[5], params), + }, + ]; + }, + KeyFieldValues: (val: string, id: string) => { + return { RSNG_CODE: val }; + }, + }; + + /* 浠ヤ笅鏄唴閮ㄦ柟娉曪紝涓峞xport锛屼緵涓婇潰鐨勬柟娉曡皟鐢� */ /** * @description: 璺宠浆浜у搧宸ヨ壓缁戝畾椤甸潰 @@ -35,8 +63,8 @@ Name: 'ProdRouteBinding', CODE: params['record'].ITEM_CODE, Title: `浜у搧[${params['record'].ITEM_CODE}]宸ヨ壓缁戝畾`, - colSlots: [], - crudColSlots: [], + colSlots: [] /* 琛ㄦ牸鍐呯殑鏌ヨ琛ㄥ崟瀛楁鐨勬彃妲藉垪琛紝涓�鑸敤浜庡脊鍑洪�夋嫨妗嗘寜閽� */, + crudColSlots: [] /* 澧炲垹鏀硅〃鍗曞瓧娈电殑鎻掓Ы鍒楄〃锛屼竴鑸敤浜庡脊鍑洪�夋嫨妗嗘寜閽� */, dense: true, pageTitle: `浜у搧宸ヨ壓缁戝畾`, pageContent: `杩欓噷鏄鐞嗕骇鍝佺殑宸ヨ壓缁戝畾锛屼竴涓骇鍝佸彲浠ョ粦瀹氬涓伐鑹鸿矾绾縛, @@ -49,7 +77,7 @@ // }) } - return [ActionItem]; + return [methods, ActionColumn]; } export default _default; -- Gitblit v1.9.3