fix:修复后台报错后,不能正常编辑的bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user