This commit is contained in:
@@ -57,6 +57,9 @@ export default {
|
||||
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
||||
log: null,
|
||||
logCardHeight: 300,
|
||||
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
|
||||
languageName: window.$gz.locale.getResolvedLanguage(),
|
||||
hour12: window.$gz.locale.getHour12(),
|
||||
obj: {
|
||||
id: 0,
|
||||
concurrency: 0,
|
||||
@@ -75,10 +78,7 @@ export default {
|
||||
},
|
||||
rights: window.$gz.role.defaultRightsObject(),
|
||||
ayaType: window.$gz.type.Integration,
|
||||
selectedPart: null,
|
||||
editItemDialog: false,
|
||||
editItemIndex: 0,
|
||||
adding: false
|
||||
selectedPart: null
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
@@ -185,6 +185,37 @@ export default {
|
||||
window.$gz.form.setErrorBoxErrors(vm);
|
||||
} else {
|
||||
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);
|
||||
window.$gz.form.setFormState({
|
||||
vm: vm,
|
||||
|
||||
Reference in New Issue
Block a user