From 697c405ac874da346e74df40266763370355154d Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期六, 08 三月 2025 15:40:25 +0800 Subject: [PATCH] ASN单 --- src/views/tigerprojects/system/lowcode/detail/detail.vue | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/detail/detail.vue b/src/views/tigerprojects/system/lowcode/detail/detail.vue index 07ef8e0..4518d72 100644 --- a/src/views/tigerprojects/system/lowcode/detail/detail.vue +++ b/src/views/tigerprojects/system/lowcode/detail/detail.vue @@ -128,7 +128,7 @@ GetUseForm, GetUseModals, }, - ActionColumn + ActionColumn, ] = isNullOrUnDef(custImport.value['default']) ? EntityCustFunction.value : custImport.value['default'](); @@ -142,22 +142,27 @@ /* 琛ㄥ崟涓彃妲芥覆鏌撴寜閽墦寮�妯℃�佹useModal鏂规硶 */ const modals = GetUseModals && isFunction(GetUseModals) ? GetUseModals() : { useModalData: {} }; const useModalData = ref(modals['useModalData']); - const CurrTabInfo = objParams['Tabs'].filter(q=>q.entityName == props.entityName)[0]; + /* 椤电淇℃伅锛岃〃鏍奸渶瑕佹牴鎹〉绛句俊鎭腑瀵瑰簲鐨勫疄浣撳悕鏉ユ煡璇㈠搴旇〃鐨勬暟鎹� */ + const CurrTabInfo = objParams['Tabs'].filter((q) => q.entityName == props.entityName)[0]; const [registerTable, { getForm, reload, setProps }] = useTable({ title: `${CurrTabInfo.tableTitle}鍒楄〃`, - api: getListByPage, - searchInfo: { TABLE_NAME: CurrTabInfo.entityName, ...objParams['keyFieldValues'] }, - columns: GetBaseColumns(CurrTabInfo.entityName), + api: getListByPage, //閫氱敤鏌ヨ鏂规硶 + searchInfo: { + TABLE_NAME: CurrTabInfo.entityName, + NeedInclude: CurrTabInfo.NeedInclude, + ...objParams['keyFieldValues'], + }, //鏌ヨ鏉′欢涓殑TABLE_NAME浼犲叆椤电淇℃伅涓搴旂殑瀹炰綋鍚岰urrTabInfo.entityName + columns: GetBaseColumns(CurrTabInfo.entityName), //浼犲叆椤电淇℃伅涓搴旂殑瀹炰綋鍚岰urrTabInfo.entityName鑾峰彇琛ㄦ牸瀛楁淇℃伅 formConfig: { labelWidth: 140, - schemas: GetSearchForm(CurrTabInfo.entityName), + schemas: GetSearchForm(CurrTabInfo.entityName), //浼犲叆椤电淇℃伅涓搴旂殑瀹炰綋鍚岰urrTabInfo.entityName鑾峰彇鏌ヨ琛ㄥ崟鐨勫瓧娈典俊鎭� }, useSearchForm: true, showTableSetting: true, bordered: true, canResize: true, showIndexColumn: false, - actionColumn: ActionColumn + actionColumn: ActionColumn ? ActionColumn : { width: 120, @@ -192,7 +197,7 @@ colSlots, }; const _actionItem: ActionItem[] = []; - const actionItem = GenerateActionButton(params, buttons, openDrawer, reload,_actionItem); + const actionItem = GenerateActionButton(params, buttons, openDrawer, reload, _actionItem); if (isNullOrUnDef(custImport.value['default'])) { return actionItem; } -- Gitblit v1.9.3