Commit aac5545456bc15b0bfe0bff6effa31ec200db5ed
1 parent
c702cfe8
弹窗详情
Showing
2 changed files
with
3 additions
and
2 deletions
src/components/Common/CommonHooks/useCommonBase.js
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 => { |
| 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; | ... | ... |