This commit is contained in:
@@ -54,9 +54,10 @@ export default {
|
|||||||
if (dialogResult == false) {
|
if (dialogResult == false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
vm.notes = null;
|
//Clear any possible prior errors
|
||||||
//do the bulk action
|
vm.$emit("ext-show-job-log", "clear");
|
||||||
|
|
||||||
|
//do the bulk action
|
||||||
let url = "job-operations/bulk-delete";
|
let url = "job-operations/bulk-delete";
|
||||||
let body = this.dataListSelection;
|
let body = this.dataListSelection;
|
||||||
|
|
||||||
|
|||||||
@@ -73,19 +73,18 @@ export default {
|
|||||||
}`;
|
}`;
|
||||||
},
|
},
|
||||||
async handleError(jobId) {
|
async handleError(jobId) {
|
||||||
console.log("handleError", jobId);
|
let vm = this;
|
||||||
return;
|
|
||||||
let res = await window.$gz.api.get(`job-operations/logs/${jobId}`);
|
if (!jobId || jobId == "00000000-0000-0000-0000-000000000000") {
|
||||||
if (res.data || res.data.length() > 0) {
|
throw "Error: extension triggered handleError with empty jobId";
|
||||||
/*{"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"}
|
|
||||||
]}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (jobId == "clear") {
|
||||||
|
vm.errorObj = null;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let res = await window.$gz.api.get(`job-operations/logs/${jobId}`);
|
||||||
|
|
||||||
//NOPE-----------
|
//NOPE-----------
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
vm.rawObj = res.data;
|
vm.rawObj = res.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user