From df8603985cfb4eeb3bf96de6be2dfdf49130fe0e Mon Sep 17 00:00:00 2001 From: zhangz Date: Thu, 11 Dec 2025 14:45:01 +0800 Subject: [PATCH] 修改保存后查询; --- src/mes/common/commonModelComponent/index.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/mes/common/commonModelComponent/index.js b/src/mes/common/commonModelComponent/index.js index f7168e3..96bd93d 100644 --- a/src/mes/common/commonModelComponent/index.js +++ b/src/mes/common/commonModelComponent/index.js @@ -575,12 +575,12 @@ const useCommonModelEvent = props => { conditonValues.sSReserve1 = props.sSReserve1; } - if (currentId) { - if (tableName === 'master') { - conditonValues.sId = currentId; - } else { - conditonValues.sParentId = currentId; - } + const masterState = {}; + if (currentId && tableName === 'master') { + masterState.sId = currentId; + } + if (currentId && tableName !== 'master') { + conditonValues.sParentId = currentId; } const result = @@ -588,6 +588,7 @@ const useCommonModelEvent = props => { name: tableName, configData: config, condition: { + ...masterState, sSqlCondition: { ...conditonValues, ...sFilterConditions }, bFilter }, -- libgit2 0.22.2