From aa0bc81d06736cc1a1bd210dde61f57736585d43 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期五, 07 六月 2024 10:37:05 +0800 Subject: [PATCH] 很多更新 --- src/views/tigerprojects/system/lowcode/normal/basDefectGrp.ts | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 52 insertions(+), 2 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/normal/basDefectGrp.ts b/src/views/tigerprojects/system/lowcode/normal/basDefectGrp.ts index b612a93..bc42916 100644 --- a/src/views/tigerprojects/system/lowcode/normal/basDefectGrp.ts +++ b/src/views/tigerprojects/system/lowcode/normal/basDefectGrp.ts @@ -1,16 +1,18 @@ import { ActionItem, BasicColumn } from '/@/components/Table'; import { useMessage } from '/@/hooks/web/useMessage'; +import { useI18n } from '/@/hooks/web/useI18n'; +const { t } = useI18n(); const { notification } = useMessage(); /* 鑷畾涔夋寜閽柟娉� */ -export function DftGrpRelease(fn: Fn, params: {}) { +export function DftGrpRelease(reload: Fn, params: {}) { console.log('鐐瑰嚮浜嗕笅鍙戞寜閽�'); notification.success({ message: '鐐瑰嚮浜嗕笅鍙戞寜閽�', description: `${params.entityName}`, duration: 3, }); - fn(); + reload(); } export const dftGrpactionColumn: BasicColumn = { @@ -20,3 +22,51 @@ slots: { customRender: 'action' }, fixed: undefined, }; + +export const dftGrpActionItem: ActionItem[] = [ + { + icon: 'release|svg', + tooltip: '涓嬪彂', + onClick: () => {}, + }, +]; + +export function dftGrpGetSelectSuccess(d, u) { + return { + ITEM_CODE: d.values['val'], + }; +} + +export function dftGrpOpenSelectItem(openItemModal: Fn) { + openItemModal(true, { + title: '鐗╂枡鍒楄〃', + schemas: [ + { + field: 'ITEM_CODE', + component: 'Input', + label: '鐗╂枡缂栫爜', + colProps: { + span: 12, + }, + }, + ], + ItemColumns: [ + { + title: t('鐗╂枡缂栫爜'), + dataIndex: 'ITEM_CODE', + resizable: true, + sorter: true, + width: 200, + }, + { + title: t('鐗╂枡鍚嶇О'), + dataIndex: 'ITEM_NAME', + resizable: true, + sorter: true, + width: 180, + }, + ], + tableName: 'BAS_ITEM', + rowKey: 'ITEM_CODE', + }); +} -- Gitblit v1.9.3