NEZ-1536 fix:Asset新增数据时偶尔会出现选择数据中心后提示错误现象

This commit is contained in:
zhangyu
2022-02-15 13:52:01 +08:00
parent ab89da8387
commit 385795a92f
4 changed files with 11 additions and 4 deletions

View File

@@ -544,6 +544,9 @@ export default {
setLocationData ({ cabinet, dc, u }) {
this.editAsset.cabinetId = cabinet ? cabinet.id : ''
this.editAsset.dcId = dc ? dc.id : ''
if (this.editAsset.dcId) {
this.$refs.form.validateField('location')
}
if (u) {
this.editAsset.cabinetStart = u[0]
this.editAsset.cabinetEnd = u[1]