This commit is contained in:
2020-04-09 22:58:18 +00:00
parent ae3baeb954
commit 019fb4a76d
11 changed files with 10 additions and 63 deletions

View File

@@ -745,7 +745,6 @@ export default {
window.$gz.form.setFormSettings(vm.formKey, formSettings);
//Logic for detecting if a post or put: if id then it was a post, if no id then it was a put
// debugger;
if (res.data.id) {
//Handle "post" of new record (CREATE)
@@ -843,7 +842,6 @@ export default {
window.$gz.api
.duplicate(url)
.then(res => {
// debugger;
vm.formState.loading = false;
if (res.error) {
vm.formState.serverError = res.error;
@@ -1322,7 +1320,6 @@ function initDataObject(vm) {
}
//Pass 2, remaining fields not already dealt with
//debugger;
for (let i = 0; i < vm.fieldDefinitions.length; i++) {
let fld = vm.fieldDefinitions[i];
@@ -1457,7 +1454,6 @@ function getDisplayForFilter(
valueDisplay = window.$gz.locale.decimalLocalized(filterValue);
break;
case 6: //BOOL translate
//debugger;
let tKey = filterValue ? "True" : "False";
valueDisplay = vm.$ay.t(tKey);
break;
@@ -1503,7 +1499,6 @@ function generateListViewFromEdited(vm) {
o.sort = ev.sort;
}
if (ev.filter && ev.filter.items && ev.filter.items.length > 0) {
// debugger;
let f = {
items: []
};

View File

@@ -204,7 +204,6 @@ export default {
window.$gz.api
.upsert(url, vm.obj)
.then(res => {
vm.formState.loading = false;
if (res.error) {
vm.formState.serverError = res.error;
window.$gz.form.setErrorBoxErrors(vm);
@@ -217,8 +216,10 @@ export default {
}
})
.catch(function handleSubmitError(error) {
vm.formState.loading = false;
window.$gz.errorHandler.handleFormError(error, vm);
})
.finally(function() {
vm.loading = false;
});
}
}

View File

@@ -317,40 +317,4 @@ export default {
});
}
};
// created() {
// console.log("CREATED");
// // window.$gz.api
// // .get("license/trial")
// // .then(res => {
// // debugger;
// // vm.formState.ready = true;
// // if (res.error) {
// // vm.formState.serverError = res.error;
// // window.$gz.form.setErrorBoxErrors(vm);
// // } else {
// // vm.trialMode = res.data;
// // // vm.obj = res.data;
// // // //Update the form status
// // // window.$gz.form.setFormState({
// // // vm: vm,
// // // dirty: false,
// // // valid: true,
// // // loading: false,
// // // readOnly: res.readOnly ? true : false
// // // });
// // // //modify the menu as necessary
// // // generateMenu(vm);
// // }
// // })
// // .catch(function handleGetDataFromAPIError(error) {
// // //Update the form status
// // window.$gz.form.setFormState({
// // vm: vm,
// // loading: false
// // });
// // window.$gz.errorHandler.handleFormError(error, vm);
// // });
// },
</script>

View File

@@ -21,9 +21,8 @@ export default {
};
},
created() {
// debugger;
let badPath = this.$router.history.current.path;
//If this happens too early then it might not have all the setup stuf available which would trigger an infinite loop
//If this happens too early then it might not have all the setup stuff available which would trigger an infinite loop
if (
!window ||
!window.$gz ||

View File

@@ -463,7 +463,6 @@ export default {
}
})
.catch(function handleSubmitError(error) {
debugger;
vm.formState.loading = false;
window.$gz.errorHandler.handleFormError(error, vm);
});
@@ -523,7 +522,6 @@ export default {
window.$gz.api
.duplicate(url)
.then(res => {
// debugger;
vm.formState.loading = false;
if (res.error) {
vm.formState.serverError = res.error;