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