แก้ลูกจ้าง

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

@ -16,6 +16,7 @@ import { useCounterMixin } from "@/stores/mixin";
* use
*/
const $q = useQuasar();
const link = ref<string>('')
const store = useRequestEditStore();
const dataStore = useDataStore();
const { dialogConfirm, showLoader, hideLoader, messageError, success } =
@ -55,7 +56,7 @@ function onSubmit() {
async () => {
showLoader();
await http
.post(config.API.requestsEditByType(dataStore.officerLink), {
.post(config.API.requestsEditByType(link.value), {
topic: formData.topic,
detail: formData.detail,
[dataStore.officerType === "OFFICER"
@ -191,8 +192,9 @@ function onInfo(val: string) {
watch(
() => modal.value,
() => {
async () => {
modal.value && fetchProfile();
link.value = await dataStore.getProFileType();
}
);
</script>