fix bug
This commit is contained in:
parent
aafef60aab
commit
caaabc808d
1 changed files with 13 additions and 13 deletions
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue