แก้ลูกจ้าง
This commit is contained in:
parent
aa65b8165d
commit
7d75535d15
25 changed files with 942 additions and 892 deletions
|
|
@ -14,6 +14,7 @@ import type { DataOption } from "@/modules/10_registry/interface/index/Main";
|
|||
import Workflow from "@/components/Workflow/Main.vue";
|
||||
|
||||
const $q = useQuasar();
|
||||
const link = ref<string>('')
|
||||
const store = useRequestEditStore();
|
||||
const dataStore = useDataStore();
|
||||
const router = useRouter();
|
||||
|
|
@ -39,7 +40,7 @@ const statusOption = ref<DataOption[]>(statusOptionMain.value); //ตัวเ
|
|||
async function fetchData() {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.requestEditByType(dataStore.officerLink) + `${requestId.value}`)
|
||||
.get(config.API.requestEditByType(link.value) + `${requestId.value}`)
|
||||
.then(async (res) => {
|
||||
const data = await res.data.result;
|
||||
dataRequest.value = {
|
||||
|
|
@ -122,6 +123,7 @@ async function downloadUrl(id: string, fileName: string) {
|
|||
}
|
||||
|
||||
onMounted(async () => {
|
||||
link.value = await dataStore.getProFileType();
|
||||
await fetchData();
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue