From 7d26ed0e19bf952e7c037b21bfd687759b46e851 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期二, 25 六月 2024 19:21:33 +0800 Subject: [PATCH] 菜单更新 --- src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts | 60 +++++++++++++++++++++++++++++++++++++++++------------------- 1 files changed, 41 insertions(+), 19 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..6918bf2 100644 --- a/src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts +++ b/src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts @@ -4,26 +4,12 @@ * @version: * @Date: 2024-06-19 20:34:27 * @LastEditors: Ben Lin - * @LastEditTime: 2024-06-22 00:32:39 + * @LastEditTime: 2024-06-25 18:37:56 */ -import { ActionItem } from '/@/components/Table'; +import { ActionItem, BasicColumn } from '/@/components/Table'; function _default() { - /** - * @description: 浜у搧缁戝畾宸ヨ壓璺嚎鎿嶄綔瀛楁鑷畾涔夋寜閽� - * @return {*} - */ - function ActionItem(params: Recordable<any>, data, ...args): ActionItem[] { - return [ - { - icon: 'binding|svg', - tooltip: '缁戝畾宸ヨ壓', - onClick: handleBinding.bind(null, args[5], params), - }, - ]; - } - /** * @description: 璺宠浆浜у搧宸ヨ壓缁戝畾椤甸潰 * @param {*} params @@ -35,8 +21,8 @@ Name: 'ProdRouteBinding', CODE: params['record'].ITEM_CODE, Title: `浜у搧[${params['record'].ITEM_CODE}]宸ヨ壓缁戝畾`, - colSlots: [], - crudColSlots: [], + colSlots: [], /* 琛ㄦ牸鍐呯殑鏌ヨ琛ㄥ崟瀛楁鐨勬彃妲藉垪琛紝涓�鑸敤浜庡脊鍑洪�夋嫨妗嗘寜閽� */ + crudColSlots: [], /* 澧炲垹鏀硅〃鍗曞瓧娈电殑鎻掓Ы鍒楄〃锛屼竴鑸敤浜庡脊鍑洪�夋嫨妗嗘寜閽� */ dense: true, pageTitle: `浜у搧宸ヨ壓缁戝畾`, pageContent: `杩欓噷鏄鐞嗕骇鍝佺殑宸ヨ壓缁戝畾锛屼竴涓骇鍝佸彲浠ョ粦瀹氬涓伐鑹鸿矾绾縛, @@ -49,7 +35,43 @@ // }) } - return [ActionItem]; + const ActionColumn: BasicColumn = { + width: 80, + title: '鎿嶄綔', + dataIndex: 'action', + slots: { customRender: 'action' }, + fixed: undefined, + }; + + 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), + }, + ]; + }, + OthersValues: (val: string, id: string) => { + return { RSNG_CODE: val }; + }, + }; + + return [methods, ActionColumn]; } export default _default; -- Gitblit v1.9.3