case 1690
This commit is contained in:
@@ -409,9 +409,13 @@ export default {
|
|||||||
vm.unitObj
|
vm.unitObj
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
window.$gz.errorHandler.handleFormError(res.error); //no vm passed here so that it displays as a dialog rather than in the form
|
//no vm passed here so that it displays as a dialog rather than in the form
|
||||||
|
window.$gz.errorHandler.handleFormError(res.error);
|
||||||
} else {
|
} else {
|
||||||
if (res.data.id) {
|
if (res.data) {
|
||||||
|
if (vm.obj.unitId == null) {
|
||||||
|
vm.obj.unitId = res.data;
|
||||||
|
}
|
||||||
//SUCCESS
|
//SUCCESS
|
||||||
this.addUnitDialog = false;
|
this.addUnitDialog = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user