แก้กรรมการในประเมิน
This commit is contained in:
parent
0d3f60b11c
commit
289397c1d9
4 changed files with 18 additions and 40 deletions
|
|
@ -1,6 +1,9 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref } from "vue";
|
||||
import type { DirectorRows,DirectorRowsResponse } from "@/modules/11_discipline/interface/response/director";
|
||||
import type {
|
||||
DirectorRows,
|
||||
DirectorRowsResponse,
|
||||
} from "@/modules/11_discipline/interface/response/director";
|
||||
import type { QTableProps } from "quasar";
|
||||
|
||||
// store ระบบวินัย >> ข้อมูลพื้นฐาน >> กรรมการ
|
||||
|
|
@ -88,23 +91,25 @@ export const useDisciplineDirectorDataStore = defineStore(
|
|||
// ข้อมูลในตาราง
|
||||
const rows = ref<DirectorRowsResponse[]>([]);
|
||||
function fetchData(data: DirectorRows[]) {
|
||||
const dataList:DirectorRowsResponse[] = data.map((item:DirectorRows)=>({
|
||||
id:item.id,
|
||||
fullName:`${item.prefix}${item.firstName} ${item.lastName}`,
|
||||
position:item.position,
|
||||
email:item.email,
|
||||
phone:item.phone,
|
||||
totalInvestigate: item.totalInvestigate,
|
||||
totalDisciplinary: item.totalDisciplinary,
|
||||
}))
|
||||
rows.value = dataList
|
||||
const dataList: DirectorRowsResponse[] = data.map(
|
||||
(item: DirectorRows) => ({
|
||||
id: item.id,
|
||||
fullName: `${item.prefix}${item.firstName} ${item.lastName}`,
|
||||
position: item.position,
|
||||
email: item.email,
|
||||
phone: item.phone,
|
||||
totalInvestigate: item.totalInvestigate,
|
||||
totalDisciplinary: item.totalDisciplinary,
|
||||
})
|
||||
);
|
||||
rows.value = dataList;
|
||||
}
|
||||
|
||||
return {
|
||||
visibleColumns,
|
||||
columns,
|
||||
rows,
|
||||
fetchData
|
||||
fetchData,
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue