แก้โหลดวินัย
This commit is contained in:
parent
66bb690fa1
commit
be506bc526
4 changed files with 17 additions and 27 deletions
|
|
@ -220,10 +220,9 @@ async function getActive() {
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
})
|
||||||
|
.finally(() => {});
|
||||||
} else {
|
} else {
|
||||||
await getOc(formData.activeId);
|
await getOc(formData.activeId);
|
||||||
}
|
}
|
||||||
|
|
@ -231,7 +230,6 @@ async function getActive() {
|
||||||
|
|
||||||
/** ดึงข้อมูลหน่วยงานจาก api */
|
/** ดึงข้อมูลหน่วยงานจาก api */
|
||||||
async function getOc(activeId: string) {
|
async function getOc(activeId: string) {
|
||||||
showLoader();
|
|
||||||
await http
|
await http
|
||||||
.get(config.API.orgByIdSystem(activeId, route.meta.Key as string))
|
.get(config.API.orgByIdSystem(activeId, route.meta.Key as string))
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
|
@ -244,9 +242,7 @@ async function getOc(activeId: string) {
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {});
|
||||||
hideLoader();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -262,8 +258,8 @@ function deletePerson(id: string) {
|
||||||
|
|
||||||
/** ช่องทางการร้องเรียน และฟังก์ชั่นการดึงข้อมูลช่องทางการร้องเรียนมาจาก api*/
|
/** ช่องทางการร้องเรียน และฟังก์ชั่นการดึงข้อมูลช่องทางการร้องเรียนมาจาก api*/
|
||||||
|
|
||||||
function getListChannel() {
|
async function getListChannel() {
|
||||||
http
|
await http
|
||||||
.get(
|
.get(
|
||||||
config.API.complaintListOp(
|
config.API.complaintListOp(
|
||||||
mainStore.pathComplaintsChannal(route.name as string)
|
mainStore.pathComplaintsChannal(route.name as string)
|
||||||
|
|
@ -379,11 +375,10 @@ watch(props.data, async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
/** โหลดข้อมูลเมื่อเข้าหน้านี้ */
|
/** โหลดข้อมูลเมื่อเข้าหน้านี้ */
|
||||||
onMounted(() => {
|
onMounted(async () => {
|
||||||
mainStore.rowsAdd = [];
|
mainStore.rowsAdd = [];
|
||||||
|
await getActive();
|
||||||
getActive();
|
await getListChannel();
|
||||||
getListChannel();
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -338,10 +338,9 @@ async function getActive() {
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
})
|
||||||
|
.finally(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ดึงข้อมูลหน่วยงาน */
|
/** ดึงข้อมูลหน่วยงาน */
|
||||||
|
|
@ -359,10 +358,9 @@ async function getOc(activeId: string) {
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
})
|
||||||
|
.finally(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ดึงข้อมูลรายละเอียดสืบสวน */
|
/** ดึงข้อมูลรายละเอียดสืบสวน */
|
||||||
|
|
|
||||||
|
|
@ -421,10 +421,9 @@ async function getActive() {
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
})
|
||||||
|
.finally(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getOc(activeId: string) {
|
async function getOc(activeId: string) {
|
||||||
|
|
@ -439,10 +438,9 @@ async function getOc(activeId: string) {
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
})
|
||||||
|
.finally(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** function เรียกรายชื่อกรรมการ*/
|
/** function เรียกรายชื่อกรรมการ*/
|
||||||
|
|
@ -491,7 +489,6 @@ async function fetchDListDirector() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* function return รายชื่อกรรมการที่เลือก
|
* function return รายชื่อกรรมการที่เลือก
|
||||||
* @param data รายชื่อกรรมการที่เลือก
|
* @param data รายชื่อกรรมการที่เลือก
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import type {
|
||||||
DataList,
|
DataList,
|
||||||
DataListRow,
|
DataListRow,
|
||||||
ocListType,
|
ocListType,
|
||||||
} from "@/modules/11_discipline/interface/response/complaint";
|
} from "@/modules/11_discipline/interface/response/Complaint";
|
||||||
|
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue