Commit 4bfa519a080eae179dc752a286faecac6e939f71
1 parent
3df153d8
增加sParentId
Showing
1 changed file
with
5 additions
and
1 deletions
src/mes/common/commonModelComponent/index.js
| ... | ... | @@ -477,7 +477,11 @@ const useCommonModelEvent = props => { |
| 477 | 477 | const returnData = dataReturn.dataset?.rows?.[0]; |
| 478 | 478 | if (commonUtils.isNotEmptyObject(returnData)) { |
| 479 | 479 | for (const key of Object.keys(returnData)) { |
| 480 | - addState[`${key}Data`] = returnData[key]; | |
| 480 | + const data = returnData[key].map(x => { | |
| 481 | + x.sParentId = props.masterData.sId | |
| 482 | + return x | |
| 483 | + }) | |
| 484 | + addState[`${key}Data`] = data; | |
| 481 | 485 | } |
| 482 | 486 | } |
| 483 | 487 | } else { | ... | ... |