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 => { resp.data && resp.data.forEach(item => {
if (station.code == item.station) { if (station.code == item.station) {
const index = positionMap[item.position]; const index = positionMap[item.position];
children[index].status = 'default'; if ( children[index]) {
this.iscsDeviceMap[item.code] = station.code + '-' + index; children[index].status = 'default';
this.deviceMap[station.code + '-' + index] = item; this.iscsDeviceMap[item.code] = station.code + '-' + index;
this.deviceMap[station.code + '-' + index] = item;
}
} }
}); });
} }