bug
This commit is contained in:
parent
c0be272be2
commit
6d270f4750
|
|
@ -523,10 +523,17 @@ export default {
|
|||
this.maForm.bmFileInfos = response.data.fileList;
|
||||
|
||||
this.equipmentList = response.data.scrapApplyDetailsList.map(item => {
|
||||
// const newMaCodeList = item.maCodeList.map(param => ({ id: param.maId, code: param.maCode }));
|
||||
let newMaCodeList = []
|
||||
if(item.manageType == "0"){
|
||||
newMaCodeList = item.maCodeList.map(maCode => ({
|
||||
id: maCode.maId,
|
||||
code: maCode.maCode
|
||||
}));
|
||||
}
|
||||
return {
|
||||
...item,
|
||||
manageType: item.manageType,
|
||||
maCodeList: newMaCodeList,
|
||||
deviceCodeOptions: [] // 初始化设备编码选项
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue