From 943954bdcb3b672b89cfa097e53d2ac17a36a101 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期日, 30 六月 2024 13:13:25 +0800 Subject: [PATCH] 产品工艺路线路由节点选择功能更新 --- src/views/tigerprojects/system/lowcode/entityts/BAS_REASON.ts | 71 +++++++++++++++++------------------ 1 files changed, 34 insertions(+), 37 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/entityts/BAS_REASON.ts b/src/views/tigerprojects/system/lowcode/entityts/BAS_REASON.ts index c4a9145..756df30 100644 --- a/src/views/tigerprojects/system/lowcode/entityts/BAS_REASON.ts +++ b/src/views/tigerprojects/system/lowcode/entityts/BAS_REASON.ts @@ -1,20 +1,11 @@ /* - * @Description: file content + * @Description: 涓嶈壇鍘熷洜鐩稿叧 * @Author: Ben Lin * @version: * @Date: 2024-06-22 00:58:43 * @LastEditors: Ben Lin * @LastEditTime: 2024-06-26 03:13:26 */ -/* - * @Description: 涓嶈壇鍘熷洜鐩稿叧 - * @Author: Ben Lin - * @version: - * @Date: 2024-06-19 20:34:27 - * @LastEditors: Ben Lin - * @LastEditTime: 2024-06-23 18:12:40 - */ - import { Ref, h } from 'vue'; import { DeleteEntity, getEntity } from '/@/api/tigerapi/system'; import { ActionItem, BasicColumn } from '/@/components/Table'; @@ -25,32 +16,6 @@ import { Tag } from 'ant-design-vue'; function _default() { - /** - * @description: 鑷畾涔夊垹闄ゆ柟娉� - * @param {Fn} args - * @param {*} params - * @return {*} - */ - function rsnGrpDel(args: Fn[], params: {}) { - if (!isNullOrEmpty(params['data'])) { - var _data = params['data'].value.filter((item) => item['ID'] != params['record']['ID']); - params['data'].value = _data; - args[6]({ - dataSource: [], - }); - args[6]({ - dataSource: params['data'], - }); - args[1](); - } else { - DeleteEntity(params['record'], params['entityName']).then((action) => { - if (action.IsSuccessed) { - args[1](); - } - }); - } - } - const ActionColumn: BasicColumn = { width: 80, title: '鎿嶄綔', @@ -59,6 +24,10 @@ fixed: undefined, }; + /** + * @description: 涓�浜涜嚜瀹氫箟鏂规硶 + * @return {*} + */ const methods = { /** * @description: 鑾峰彇鏂板鎸夐挳鐨勮涓� @@ -120,7 +89,7 @@ /** * @description: 楂樼骇琛ㄥ崟鍜岃鎯呴〉闈㈣繑鍥炰富椤甸潰鐨剈rl * @return {*} - */ + */ GetHomeUrl: () => { return `/BAS_REASON_GRP/LC/${encodeURI(JSON.stringify({ ID: 'BAS_REASON_GRP', colSlots: [], crudColSlots: [] }))}`; }, @@ -340,6 +309,34 @@ }, }; + /* 浠ヤ笅鏄唴閮ㄦ柟娉曪紝涓峞xport锛屼緵涓婇潰鐨勬柟娉曡皟鐢� */ + + /** + * @description: 鑷畾涔夊垹闄ゆ柟娉� + * @param {Fn} args + * @param {*} params + * @return {*} + */ + function rsnGrpDel(args: Fn[], params: {}) { + if (!isNullOrEmpty(params['data'])) { + var _data = params['data'].value.filter((item) => item['ID'] != params['record']['ID']); + params['data'].value = _data; + args[6]({ + dataSource: [], + }); + args[6]({ + dataSource: params['data'], + }); + args[1](); + } else { + DeleteEntity(params['record'], params['entityName']).then((action) => { + if (action.IsSuccessed) { + args[1](); + } + }); + } + } + return [methods, ActionColumn]; } -- Gitblit v1.9.3