iscs调整

This commit is contained in:
joylink_fanyuhong 2022-01-20 19:07:15 +08:00
parent 4431fe9dd4
commit 38b1beeef5

View File

@ -138,9 +138,11 @@ export default {
resp.data && resp.data.forEach(item => {
if (station.code == item.station) {
const index = positionMap[item.position];
children[index].status = 'default';
this.iscsDeviceMap[item.code] = station.code + '-' + index;
this.deviceMap[station.code + '-' + index] = item;
if ( children[index]) {
children[index].status = 'default';
this.iscsDeviceMap[item.code] = station.code + '-' + index;
this.deviceMap[station.code + '-' + index] = item;
}
}
});
}