This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<v-card-title>{{ $ay.t("Extensions") }}</v-card-title>
|
||||
<v-card-subtitle class="mt-1">{{ titleText() }}</v-card-subtitle>
|
||||
<v-card-text>
|
||||
<template v-if="errorObj">
|
||||
<template v-if="errorObj.length > 0">
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="errorObj"
|
||||
@@ -17,6 +17,7 @@
|
||||
:header-props="{ sortByText: $ay.t('Sort') }"
|
||||
>
|
||||
</v-data-table>
|
||||
<v-spacer></v-spacer>
|
||||
</template>
|
||||
<v-expansion-panels focusable>
|
||||
<ExtensionTags :dataListSelection="dataListSelection" />
|
||||
@@ -46,6 +47,9 @@ export default {
|
||||
ExtensionExport,
|
||||
ExtensionDelete
|
||||
},
|
||||
async created() {
|
||||
await initForm(this);
|
||||
},
|
||||
data: () => ({
|
||||
isVisible: false,
|
||||
resolve: null,
|
||||
@@ -83,7 +87,7 @@ export default {
|
||||
vm.errorObj = null;
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("Fetching for job", 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-----------
|
||||
@@ -104,10 +108,13 @@ export default {
|
||||
o.jobId == "00000000-0000-0000-0000-000000000000" ? "" : o.jobId
|
||||
});
|
||||
}
|
||||
|
||||
vm.errorObj = ret;
|
||||
} else {
|
||||
vm.errorObj = [];
|
||||
}
|
||||
|
||||
console.log("Errorobj is now:", vm.errorObj);
|
||||
},
|
||||
open(dls) {
|
||||
this.dataListSelection = dls;
|
||||
|
||||
Reference in New Issue
Block a user