diff --git a/src/modules/05_placement/components/PersonalList/DialogOrders.vue b/src/modules/05_placement/components/PersonalList/DialogOrders.vue index 130cb5914..035135192 100644 --- a/src/modules/05_placement/components/PersonalList/DialogOrders.vue +++ b/src/modules/05_placement/components/PersonalList/DialogOrders.vue @@ -39,7 +39,6 @@ const modal = defineModel("modal", { required: true }); * props */ const props = defineProps({ - closeModal: Function, fetchData: Function, rows: Array, }); @@ -209,6 +208,10 @@ function filterSelectOrder() { }); } +function closeModal() { + modal.value = false; + commandType.value = ""; +} /** * เมื่อ props.modal เป็น true * @@ -314,7 +317,7 @@ watch( :columns="columns" :rows="rows" :filter="filter" - row-key="id" + row-key="personalId" :visible-columns="visibleColumns" selection="multiple" v-model:selected="selected" diff --git a/src/modules/05_placement/components/PersonalList/DialogSelectOrg.vue b/src/modules/05_placement/components/PersonalList/DialogSelectOrg.vue index ee113bdc8..ca86fbd9b 100644 --- a/src/modules/05_placement/components/PersonalList/DialogSelectOrg.vue +++ b/src/modules/05_placement/components/PersonalList/DialogSelectOrg.vue @@ -74,7 +74,7 @@ const orgRevisionId = ref(""); /** function เรียกข้อมูลโครงสร้าง แบบปัจุบันและ แบบร่าง*/ async function fetchStructure() { - const dataTree = await fetchStructureTree(route.meta.Key as string); + const dataTree = await fetchStructureTree(route.meta.Key as string,false); if (dataTree) { orgRevisionId.value = storeTree.activeId; nodes.value = dataTree; diff --git a/src/modules/05_placement/components/PersonalList/PersonalListPage.vue b/src/modules/05_placement/components/PersonalList/PersonalListPage.vue index a4c04ab92..ea93f23ab 100644 --- a/src/modules/05_placement/components/PersonalList/PersonalListPage.vue +++ b/src/modules/05_placement/components/PersonalList/PersonalListPage.vue @@ -50,6 +50,7 @@ async function getStat() { contain: statCard.contain, disclaim: statCard.disclaim, }; + DataStore.checkLoad(1) }) .catch((e) => { messageError($q, e); @@ -60,18 +61,16 @@ async function getStat() { * get รายละเอียด ของการสอบ */ async function fetchPlacementData() { - showLoader(); await http .get(config.API.MainDetail(0)) .then(async (res) => { - DataStore.DataMainOrig = res.data.result; + DataStore.DataMainOrig = await res.data.result; + DataStore.checkLoad(1) }) .catch((e) => { messageError($q, e); }) - .finally(() => { - hideLoader(); - }); + .finally(() => {}); } /** เมื่อเริ่มโหลดหน้า ให้ ใช้ฟังชั่น get stat @@ -96,7 +95,6 @@ onMounted(async () => { title.value = examData.value == null ? null : examData.value.examRound; round.value = examData.value == null ? null : examData.value.examOrder; year.value = examData.value == null ? null : examData.value.fiscalYear; - });