This commit is contained in:
@@ -57,6 +57,9 @@ export default {
|
|||||||
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
||||||
log: null,
|
log: null,
|
||||||
logCardHeight: 300,
|
logCardHeight: 300,
|
||||||
|
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
|
||||||
|
languageName: window.$gz.locale.getResolvedLanguage(),
|
||||||
|
hour12: window.$gz.locale.getHour12(),
|
||||||
obj: {
|
obj: {
|
||||||
id: 0,
|
id: 0,
|
||||||
concurrency: 0,
|
concurrency: 0,
|
||||||
@@ -75,10 +78,7 @@ export default {
|
|||||||
},
|
},
|
||||||
rights: window.$gz.role.defaultRightsObject(),
|
rights: window.$gz.role.defaultRightsObject(),
|
||||||
ayaType: window.$gz.type.Integration,
|
ayaType: window.$gz.type.Integration,
|
||||||
selectedPart: null,
|
selectedPart: null
|
||||||
editItemDialog: false,
|
|
||||||
editItemIndex: 0,
|
|
||||||
adding: false
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -185,6 +185,37 @@ export default {
|
|||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(vm);
|
||||||
} else {
|
} else {
|
||||||
vm.obj = res.data;
|
vm.obj = res.data;
|
||||||
|
|
||||||
|
//LOG
|
||||||
|
const logRes = await window.$gz.api.get(
|
||||||
|
API_BASE_URL + "log/" + recordId
|
||||||
|
);
|
||||||
|
if (!logRes.error) {
|
||||||
|
/*
|
||||||
|
{
|
||||||
|
"id": 31,
|
||||||
|
"integrationId": 4,
|
||||||
|
"created": "2022-06-23T20:36:01.057913Z",
|
||||||
|
"statusText": "Test entry 3"
|
||||||
|
},
|
||||||
|
*/
|
||||||
|
let ret = `${vm.obj.name} - LOG\n------\n`;
|
||||||
|
logRes.data.forEach(z => {
|
||||||
|
ret += `${window.$gz.locale.utcDateToSpecifiedDateAndTimeLocalized(
|
||||||
|
z.created,
|
||||||
|
this.timeZoneName,
|
||||||
|
this.languageName,
|
||||||
|
this.hour12,
|
||||||
|
"short",
|
||||||
|
"medium"
|
||||||
|
)}|${z.statusText}\n`;
|
||||||
|
});
|
||||||
|
ret += "------";
|
||||||
|
|
||||||
|
vm.log = ret;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
|
||||||
generateMenu(vm);
|
generateMenu(vm);
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: vm,
|
||||||
|
|||||||
Reference in New Issue
Block a user