This commit is contained in:
@@ -54,9 +54,10 @@ export default {
|
||||
if (dialogResult == false) {
|
||||
return;
|
||||
}
|
||||
vm.notes = null;
|
||||
//do the bulk action
|
||||
//Clear any possible prior errors
|
||||
vm.$emit("ext-show-job-log", "clear");
|
||||
|
||||
//do the bulk action
|
||||
let url = "job-operations/bulk-delete";
|
||||
let body = this.dataListSelection;
|
||||
|
||||
|
||||
@@ -73,19 +73,18 @@ export default {
|
||||
}`;
|
||||
},
|
||||
async handleError(jobId) {
|
||||
console.log("handleError", jobId);
|
||||
return;
|
||||
let res = await window.$gz.api.get(`job-operations/logs/${jobId}`);
|
||||
if (res.data || res.data.length() > 0) {
|
||||
/*{"data":[
|
||||
{"created":"2020-12-09T18:41:58.129408Z","statusText":"Processing job \"Bulk operation: DELETE on HeadOffice (2 specified) - BulkCoreBizObjectOperation:Delete\"","jobId":"00000000-0000-0000-0000-000000000000"},
|
||||
{"created":"2020-12-09T18:41:58.149926Z","statusText":"Bulk job Delete started...","jobId":"00000000-0000-0000-0000-000000000000"},
|
||||
{"created":"2020-12-09T18:41:58.185514Z","statusText":"Error processing item 9: Validation errors:\r\nTarget: errorbox error: LT:Customer\r\n","jobId":"00000000-0000-0000-0000-000000000000"},
|
||||
{"created":"2020-12-09T18:41:58.194434Z","statusText":"Error processing item 7: Validation errors:\r\nTarget: errorbox error: LT:Customer\r\n","jobId":"00000000-0000-0000-0000-000000000000"},
|
||||
{"created":"2020-12-09T18:41:58.196858Z","statusText":"Bulk job Delete processed 2 of 2 with 2 failures","jobId":"00000000-0000-0000-0000-000000000000"}
|
||||
]}
|
||||
*/
|
||||
let vm = this;
|
||||
|
||||
if (!jobId || jobId == "00000000-0000-0000-0000-000000000000") {
|
||||
throw "Error: extension triggered handleError with empty jobId";
|
||||
}
|
||||
|
||||
if (jobId == "clear") {
|
||||
vm.errorObj = null;
|
||||
return;
|
||||
}
|
||||
let res = await window.$gz.api.get(`job-operations/logs/${jobId}`);
|
||||
|
||||
//NOPE-----------
|
||||
if (res.data) {
|
||||
vm.rawObj = res.data;
|
||||
|
||||
Reference in New Issue
Block a user