This commit is contained in:
@@ -68,10 +68,7 @@ export default {
|
|||||||
if (this.$route.params.obj) {
|
if (this.$route.params.obj) {
|
||||||
//yes, no need to fetch it
|
//yes, no need to fetch it
|
||||||
this.obj = this.$route.params.obj;
|
this.obj = this.$route.params.obj;
|
||||||
//preset object so do things normally done in getdata
|
|
||||||
generateMenu(vm);
|
|
||||||
//update which areas are available to user
|
|
||||||
setSubRights(vm);
|
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: vm,
|
||||||
loading: false
|
loading: false
|
||||||
@@ -90,6 +87,10 @@ export default {
|
|||||||
dirty: false,
|
dirty: false,
|
||||||
valid: true
|
valid: true
|
||||||
});
|
});
|
||||||
|
//preset object so do things normally done in getdata
|
||||||
|
generateMenu(vm);
|
||||||
|
//update which areas are available to user
|
||||||
|
setSubRights(vm);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
window.$gz.errorHandler.handleFormError(error, vm);
|
||||||
} finally {
|
} finally {
|
||||||
@@ -114,10 +115,9 @@ export default {
|
|||||||
return {
|
return {
|
||||||
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
||||||
obj: {
|
obj: {
|
||||||
data: {
|
|
||||||
id: 0,
|
id: 0,
|
||||||
concurrency: 0,
|
concurrency: 0,
|
||||||
serial: null,
|
serial: 0,
|
||||||
notes: null,
|
notes: null,
|
||||||
wiki: null,
|
wiki: null,
|
||||||
customFields: "{}",
|
customFields: "{}",
|
||||||
@@ -151,7 +151,6 @@ export default {
|
|||||||
states: [],
|
states: [],
|
||||||
isDirty: false,
|
isDirty: false,
|
||||||
isLockedAtServer: false
|
isLockedAtServer: false
|
||||||
}
|
|
||||||
},
|
},
|
||||||
formState: {
|
formState: {
|
||||||
ready: false,
|
ready: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user