fetch รายงานเมื่อเปลี่ยนหน่วยงาน ==> รายงานโครงสร้างและกรอบอัตรากำลัง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-07-11 15:03:33 +07:00
parent 60a09db3b7
commit 37e254be2e

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref } from "vue";
import { ref, watch } from "vue";
import { useQuasar } from "quasar";
import axios from "axios";
import { VuePDF, usePDF } from "@tato30/vue-pdf";
@ -115,6 +115,17 @@ function backPage() {
page.value--;
}
}
/** ติดตามการเปลี่ยนแปลงของ orgRootId */
watch(
() => orgRootId.value,
async () => {
// orgRootId title getReport
if (orgRootId.value && title.value) {
await getReport(title.value);
}
}
);
</script>
<template>