This commit is contained in:
@@ -57,7 +57,7 @@ export default {
|
||||
listView: null
|
||||
},
|
||||
headers: [],
|
||||
errorObj: null,
|
||||
errorObj: [],
|
||||
//cache display format stuff
|
||||
timeZoneName: window.$gz.locale.getBrowserTimeZoneName(),
|
||||
languageName: window.$gz.locale.getBrowserLanguages(),
|
||||
@@ -83,11 +83,11 @@ export default {
|
||||
vm.errorObj = null;
|
||||
return;
|
||||
}
|
||||
let res = await window.$gz.api.get(`job-operations/logs/${jobId}`);
|
||||
|
||||
let res = await window.$gz.api.get(`job-operations/logs/${jobId}`);
|
||||
//{"data":[{"created":"2020-12-09T19:20:41.915635Z","statusText":"Processing job \"Bulk operation: DELETE on HeadOffice (2 specified) - BulkCoreBizObjectOperation:Delete\"","jobId":"9817e970-c746-443c-8f11-fc0588f2acff"},{"created":"2020-12-09T19:20:41.922711Z","statusText":"Bulk job Delete started...","jobId":"9817e970-c746-443c-8f11-fc0588f2acff"},{"created":"2020-12-09T19:20:41.938821Z","statusText":"Error processing item 11: Validation errors:\r\nTarget: errorbox error: LT:Customer\r\n","jobId":"9817e970-c746-443c-8f11-fc0588f2acff"},{"created":"2020-12-09T19:20:41.951148Z","statusText":"Error processing item 2: Validation errors:\r\nTarget: errorbox error: LT:Customer\r\n","jobId":"9817e970-c746-443c-8f11-fc0588f2acff"},{"created":"2020-12-09T19:20:41.954891Z","statusText":"Bulk job Delete processed 2 of 2 with 2 failures","jobId":"9817e970-c746-443c-8f11-fc0588f2acff"}]}
|
||||
//NOPE-----------
|
||||
if (res.data) {
|
||||
vm.rawObj = res.data;
|
||||
let ret = [];
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
let o = res.data[i];
|
||||
@@ -99,15 +99,14 @@ export default {
|
||||
this.languageName,
|
||||
this.hour12
|
||||
),
|
||||
status: o.statusText,
|
||||
status: o.statusText, //todo: parse out LT:*text until non text character, replace that with localized
|
||||
jobId:
|
||||
o.jobId == "00000000-0000-0000-0000-000000000000" ? "" : o.jobId
|
||||
});
|
||||
}
|
||||
vm.obj = ret;
|
||||
vm.errorObj = ret;
|
||||
} else {
|
||||
vm.rawObj = [];
|
||||
vm.obj = [];
|
||||
vm.errorObj = [];
|
||||
}
|
||||
},
|
||||
open(dls) {
|
||||
|
||||
Reference in New Issue
Block a user