Commit aac5545456bc15b0bfe0bff6effa31ec200db5ed

Authored by chenxt
1 parent c702cfe8

弹窗详情

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