This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-06-27 11:20:36 +07:00
parent aafef60aab
commit caaabc808d

View file

@ -114,16 +114,16 @@ function filterByPersonIdNull(obj: any) {
} }
/**get data ตำแหน่งงาน */ /**get data ตำแหน่งงาน */
async function fetchplacementPosition() { // async function fetchplacementPosition() {
await http // await http
.get(config.API.placementPosition()) // .get(config.API.placementPosition())
.then((res: any) => { // .then((res: any) => {
placementPosition.value = res.data.result; // placementPosition.value = res.data.result;
}) // })
.catch((e: any) => { // .catch((e: any) => {
messageError($q, e); // messageError($q, e);
}); // });
} // }
/** รับค่ามาจาก หน้าหลัก*/ /** รับค่ามาจาก หน้าหลัก*/
const props = defineProps({ const props = defineProps({
@ -204,7 +204,7 @@ async function saveAppoint() {
await closeAndClear(); await closeAndClear();
// await fetchPublishFile(); // await fetchPublishFile();
// await loadTreeData(); // await loadTreeData();
await fetchplacementPosition(); // await fetchplacementPosition();
hideLoader(); hideLoader();
}); });
}); });
@ -393,7 +393,7 @@ async function postClearPosition() {
watch(props, () => { watch(props, () => {
expanded.value = []; expanded.value = [];
const dataPersonal = props.personal; const dataPersonal = props.personal;
fetchplacementPosition(); // fetchplacementPosition();
if (dataPersonal) { if (dataPersonal) {
dataPersonal.map((data: any) => { dataPersonal.map((data: any) => {
personal.value = data; personal.value = data;
@ -421,7 +421,7 @@ watch(props, () => {
onMounted(async () => { onMounted(async () => {
// await fetchPublishFile(); // await fetchPublishFile();
// await loadTreeData(); // await loadTreeData();
await fetchplacementPosition(); // await fetchplacementPosition();
}); });
</script> </script>