แก้ไข loader
This commit is contained in:
parent
f072224851
commit
b663eedb09
147 changed files with 3095 additions and 3256 deletions
|
|
@ -132,7 +132,7 @@ import { onMounted, ref, watch } from "vue";
|
|||
import { useRouter } from "vue-router";
|
||||
import { useProfileDataStore } from "@/modules/04_registry/store";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useDataStore } from "@/stores/data";
|
||||
|
||||
import { useQuasar } from "quasar";
|
||||
import type { RequestItemsObject } from "@/modules/04_registry/interface/request/Main";
|
||||
import type { ResponseObject } from "@/modules/04_registry/interface/response/Main";
|
||||
|
|
@ -149,10 +149,9 @@ import type { QTableProps } from "quasar";
|
|||
const $q = useQuasar();
|
||||
const store = useProfileDataStore();
|
||||
const { profileData, changeProfileColumns } = store;
|
||||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const { date2Thai, messageError, typeRetire } = mixin;
|
||||
const { date2Thai, messageError, typeRetire, showLoader, hideLoader } = mixin;
|
||||
const router = useRouter();
|
||||
const isDrawer = ref<boolean>(true);
|
||||
const filter = ref<string>(""); //search data table
|
||||
|
|
@ -1167,7 +1166,7 @@ const clickTree = () => {
|
|||
};
|
||||
|
||||
const nodeTree = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.profileOrganizRoot)
|
||||
.then((res: any) => {
|
||||
|
|
@ -1311,7 +1310,7 @@ const doSearch = async () => {
|
|||
}
|
||||
|
||||
if (selected.value == null || selected.value == "") return;
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.searchProfileByOcId(selected.value, profileType.value), {
|
||||
criterias: cirteria,
|
||||
|
|
@ -1367,7 +1366,7 @@ const doSearch = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue