fix:修复后台报错后,不能正常编辑的bug
This commit is contained in:
@@ -505,7 +505,7 @@
|
|||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.assetTypeData = response.data;
|
this.assetTypeData = response.data;
|
||||||
if(this.editAsset.model&&!this.editAsset.model.type.code){
|
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);
|
resolve(this.assetTypeData);
|
||||||
@@ -588,9 +588,9 @@
|
|||||||
box.validateAccount();
|
box.validateAccount();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if(this.editAsset.model){
|
// if(this.editAsset.model){
|
||||||
delete this.editAsset.model;
|
// delete this.editAsset.model;
|
||||||
}
|
// }
|
||||||
this.$refs.assetEditForm.validate((valid) => {
|
this.$refs.assetEditForm.validate((valid) => {
|
||||||
if (valid && this.accountValidResult) {
|
if (valid && this.accountValidResult) {
|
||||||
if (this.editAsset.id) {
|
if (this.editAsset.id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user