fix ระบบพัฒนาบุคคล
This commit is contained in:
parent
74981c4217
commit
247989c9e8
7 changed files with 2387 additions and 2369 deletions
|
|
@ -134,12 +134,13 @@ const columns = ref<QTableProps["columns"]>([
|
|||
]);
|
||||
|
||||
/** ดึงข้อมูลหน่วยงาน เเละ เรียกใช้ฟังชั่น ดึงข้อมูล */
|
||||
function fetchListOrg() {
|
||||
async function fetchListOrg() {
|
||||
showLoader();
|
||||
http
|
||||
await http
|
||||
.get(config.API.developmentHistoryListOrg("employee", formFilter.year))
|
||||
.then(async (res) => {
|
||||
formFilter.root = null;
|
||||
formFilter.page = 1;
|
||||
rows.value = [];
|
||||
const option = [{ name: "ทั้งหมด", id: null }];
|
||||
const optionNew = await res.data.result.map((e: string) => ({
|
||||
|
|
@ -192,9 +193,9 @@ function onEdit(id: string) {
|
|||
}
|
||||
|
||||
/** ดึงข้อมูล */
|
||||
function getData() {
|
||||
async function getData() {
|
||||
showLoader();
|
||||
http
|
||||
await http
|
||||
.post(config.API.developmentHistoryList("employee"), formFilter)
|
||||
.then((res) => {
|
||||
const data = res.data.result.data;
|
||||
|
|
@ -241,8 +242,8 @@ watch(
|
|||
);
|
||||
|
||||
/** ดึงข้อมูลเมื่อโหลดหน้าเสร็จสิ้น */
|
||||
onMounted(() => {
|
||||
fetchListOrg();
|
||||
onMounted(async () => {
|
||||
await fetchListOrg();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
@ -387,7 +388,6 @@ onMounted(() => {
|
|||
map-options
|
||||
:options="columns"
|
||||
option-value="name"
|
||||
|
||||
style="min-width: 140px"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue