แก้กรรมการในประเมิน
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,
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import router from "@/router";
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useQuasar } from "quasar";
|
||||
import { useEvaluateDirectorDataStore } from "@/modules/12_evaluatePersonal/store/DirectorStore";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
|
|
|
|||
|
|
@ -12,9 +12,6 @@ interface DataResponseList {
|
|||
Phone:string
|
||||
Email:string
|
||||
Position:string
|
||||
|
||||
totalInvestigate?:number
|
||||
totalDisciplinary?:number
|
||||
}
|
||||
|
||||
interface MainList {
|
||||
|
|
@ -32,9 +29,6 @@ interface MainList {
|
|||
lastUpdateUserId:string
|
||||
createdAt:string
|
||||
lastUpdatedAt:string
|
||||
|
||||
totalInvestigate:string|number
|
||||
totalDisciplinary:string|number
|
||||
}
|
||||
|
||||
interface FormData {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ export const useEvaluateDirectorDataStore = defineStore(
|
|||
"position",
|
||||
"email",
|
||||
"phone",
|
||||
"totalInvestigate",
|
||||
"totalDisciplinary",
|
||||
]);
|
||||
|
||||
// หัวตาราง
|
||||
|
|
@ -68,24 +66,6 @@ export const useEvaluateDirectorDataStore = defineStore(
|
|||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
{
|
||||
name: "totalInvestigate",
|
||||
align: "left",
|
||||
label: "จำนวนการสืบสวน",
|
||||
sortable: true,
|
||||
field: "totalInvestigate",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
{
|
||||
name: "totalDisciplinary",
|
||||
align: "left",
|
||||
label: "จำนวนการสอบสวน",
|
||||
sortable: true,
|
||||
field: "totalDisciplinary",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
]);
|
||||
|
||||
// ข้อมูลในตาราง
|
||||
|
|
@ -100,8 +80,6 @@ export const useEvaluateDirectorDataStore = defineStore(
|
|||
phone:item.Phone,
|
||||
email:item.Email,
|
||||
position:item.Position,
|
||||
totalInvestigate:item.totalInvestigate ? item.totalInvestigate :'-',
|
||||
totalDisciplinary:item.totalDisciplinary ? item.totalDisciplinary :'-',
|
||||
|
||||
createdFullName:item.CreatedFullName,
|
||||
lastUpdateFullName:item.LastUpdateFullName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue