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 ตำแหน่งงาน */
|
||||
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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue