Commit aac5545456bc15b0bfe0bff6effa31ec200db5ed

Authored by chenxt
1 parent c702cfe8

弹窗详情

src/components/Common/CommonHooks/useCommonBase.js
... ... @@ -388,7 +388,7 @@ const useCommonBase = props => {
388 388 delete condition.sSqlCondition
389 389 delete condition.sId
390 390 condition.sSqlCondition = {
391   - sParentId: sId
  391 + sParentId: condition?.sSqlCondition?.sParentId
392 392 }
393 393 }
394 394 // 只有弹窗没有不查询
... ...
src/mes/common/commonModelComponent/index.js
... ... @@ -787,6 +787,7 @@ const useCommonModelEvent = props => {
787 787 // 获取数据集
788 788 const handleGetData = async (tableList = [], isWait, bInit) => {
789 789 let addState = {};
  790 + const { currentId } = props
790 791 const currentIds = currentId ? currentId : props?.parentProps?.record?.sId
791 792 for (let i = 0; i < tableList.length; i++) {
792 793 const tableName = tableList[i];
... ... @@ -902,7 +903,7 @@ const useCommonModelEvent = props =&gt; {
902 903  
903 904 const masterState = {};
904 905 if (currentIds && tableName === 'master') {
905   - masterState.sId = currentId;
  906 + masterState.sId = currentIds;
906 907 }
907 908 if (currentIds && tableName !== 'master') {
908 909 conditonValues.sParentId = currentIds;
... ...