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