fix:修复后台报错后,不能正常编辑的bug

This commit is contained in:
wangwenrui
2021-01-04 18:13:39 +08:00
parent 7e3be66e7e
commit f6782c056a

View File

@@ -505,7 +505,7 @@
if (response.code === 200) {
this.assetTypeData = response.data;
if(this.editAsset.model&&!this.editAsset.model.type.code){
this.editAsset.model.type.code=response.data[0].value;
this.editAsset.model.type.code=response.data[0].code;
}
}
resolve(this.assetTypeData);
@@ -588,9 +588,9 @@
box.validateAccount();
});
}
if(this.editAsset.model){
delete this.editAsset.model;
}
// if(this.editAsset.model){
// delete this.editAsset.model;
// }
this.$refs.assetEditForm.validate((valid) => {
if (valid && this.accountValidResult) {
if (this.editAsset.id) {