NEZ-969 fix: 修复location传参问题

This commit is contained in:
chenjinsong
2021-09-02 18:23:47 +08:00
parent bb5f8cfd0a
commit e152ce08ca

View File

@@ -527,15 +527,14 @@ export default {
this.showAllTalonOption = true this.showAllTalonOption = true
}, },
setLocationData ({ cabinet, dc, u }) { setLocationData ({ cabinet, dc, u }) {
if (cabinet) { this.editAsset.cabinetId = cabinet ? cabinet.id : ''
this.editAsset.cabinetId = cabinet.id this.editAsset.dcId = dc ? dc.id : ''
}
if (dc) {
this.editAsset.dcId = dc.id
}
if (u) { if (u) {
this.editAsset.cabinetStart = u[0] this.editAsset.cabinetStart = u[0]
this.editAsset.cabinetEnd = u[1] this.editAsset.cabinetEnd = u[1]
} else {
this.editAsset.cabinetStart = ''
this.editAsset.cabinetEnd = ''
} }
}, },
removeLabel (label) { removeLabel (label) {