new loader
This commit is contained in:
parent
fd7aae2f5d
commit
fe6c712a18
95 changed files with 1189 additions and 950 deletions
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationAgencyHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationAgencyPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationAgencyHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationAgencyPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -518,7 +518,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationAgencyHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -538,7 +538,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationFaxHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationFaxPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationFaxHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationFaxPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationFaxHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationGovernmentAgencyHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationGovernmentAgencyPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationGovernmentAgencyHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -456,7 +456,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationGovernmentAgencyPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -516,7 +516,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(
|
||||
config.API.listOrganizationGovernmentAgencyHistoryId(idVersion.value),
|
||||
|
|
@ -539,7 +539,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationLevelHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationLevelPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationLevelHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationLevelPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationLevelHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -402,7 +402,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationOrganizationHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -429,7 +429,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationOrganizationPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -466,7 +466,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -475,7 +475,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationOrganizationHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -495,7 +495,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationOrganizationPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -556,7 +556,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationOrganizationHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -576,7 +576,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -491,7 +491,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationShortNameHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -520,7 +520,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -528,7 +528,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationShortNamePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -559,7 +559,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -568,7 +568,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationShortNameHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -588,7 +588,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationShortNamePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -654,7 +654,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationShortNameHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -674,7 +674,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationStatusHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationStatusPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationStatusHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationStatusPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationStatusHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTelExternalHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTelExternalPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationTelExternalHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTelExternalPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationTelExternalHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTelInternalHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTelInternalPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationTelInternalHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTelInternalPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationTelInternalHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTypeHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTypePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationTypeHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTypePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationTypeHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue