fix(WorkerPDA): fetching available PDA data when add and remove pda
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
123ec41f32
commit
a2f8a61c20
|
@ -20,6 +20,7 @@ const { notify } = useNotify();
|
||||||
const loadingDocuware = ref(true);
|
const loadingDocuware = ref(true);
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
const dialog = ref();
|
const dialog = ref();
|
||||||
|
const getAvailablePdaRef = ref();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { openConfirmationModal } = useVnConfirm();
|
const { openConfirmationModal } = useVnConfirm();
|
||||||
const routeId = computed(() => route.params.id);
|
const routeId = computed(() => route.params.id);
|
||||||
|
@ -84,6 +85,7 @@ function reloadData() {
|
||||||
initialData.value.deviceProductionFk = null;
|
initialData.value.deviceProductionFk = null;
|
||||||
initialData.value.simFk = null;
|
initialData.value.simFk = null;
|
||||||
tableRef.value.reload();
|
tableRef.value.reload();
|
||||||
|
getAvailablePdaRef.value.fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchDocuware() {
|
async function fetchDocuware() {
|
||||||
|
@ -135,6 +137,7 @@ async function deallocatePDA(deviceProductionFk) {
|
||||||
);
|
);
|
||||||
delete tableRef.value.CrudModelRef.formData[index];
|
delete tableRef.value.CrudModelRef.formData[index];
|
||||||
notify(t('PDA deallocated'), 'positive');
|
notify(t('PDA deallocated'), 'positive');
|
||||||
|
await getAvailablePdaRef.value.fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
function isSigned(row) {
|
function isSigned(row) {
|
||||||
|
@ -144,6 +147,7 @@ function isSigned(row) {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<FetchData
|
<FetchData
|
||||||
|
ref="getAvailablePdaRef"
|
||||||
url="workers/getAvailablePda"
|
url="workers/getAvailablePda"
|
||||||
@on-fetch="(data) => (deviceProductions = data)"
|
@on-fetch="(data) => (deviceProductions = data)"
|
||||||
auto-load
|
auto-load
|
||||||
|
|
Loading…
Reference in New Issue