แก้ลูกจ้าง

This commit is contained in:
setthawutttty 2024-11-07 14:51:21 +07:00
parent aa65b8165d
commit 7d75535d15
25 changed files with 942 additions and 892 deletions

View file

@ -33,6 +33,7 @@ import { useCounterMixin } from "@/stores/mixin";
*/
const $q = useQuasar();
const store = useRequestEditStore();
const link = ref<string>('')
const router = useRouter();
const dataStore = useDataStore()
const { showLoader, hideLoader, messageError, dialogRemove, success } =
@ -149,7 +150,7 @@ function fetchListRequset() {
};
showLoader();
http
.get(config.API.requestEditByType(dataStore.officerLink) + `user`, { params: queryParams })
.get(config.API.requestEditByType(link.value) + `user`, { params: queryParams })
.then((res) => {
const data = res.data.result;
maxPage.value = Math.ceil(data.total / pageSize.value);
@ -275,7 +276,8 @@ watch(
}
);
onMounted(() => {
onMounted(async() => {
link.value = await dataStore.getProFileType();
fetchListRequset();
});
</script>