แก้วินัย
This commit is contained in:
parent
015d2d9857
commit
3c2a010ab4
24 changed files with 286 additions and 93 deletions
|
|
@ -79,7 +79,6 @@ export const useAppealComplainStore = defineStore(
|
|||
status: statusTothai(e.status)
|
||||
}));
|
||||
rows.value = dataList;
|
||||
console.log(rows.value)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -300,7 +300,6 @@ export const useInvestigateDisStore = defineStore(
|
|||
}));
|
||||
rows2.value = datalistDirector;
|
||||
selected.value = rows2.value;
|
||||
// console.log(rows2.value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -218,7 +218,6 @@ export const useInvestigateFactStore = defineStore(
|
|||
* @param type type ที่กำหนด ของ input นั้นๆ
|
||||
*/
|
||||
function filterSelector(val: string, update: Function, type: string) {
|
||||
console.log(val);
|
||||
update(() => {
|
||||
const needle = val.toLowerCase();
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ export const useDisciplineSuspendStore = defineStore(
|
|||
* @param data ข้อมูลจาก API
|
||||
*/
|
||||
function getData(data: listData[]) {
|
||||
console.log(data)
|
||||
const dataList: dataType[] = data.map((item: listData) => ({
|
||||
id: item.id,
|
||||
citizenId: item.citizenId,
|
||||
|
|
|
|||
|
|
@ -293,7 +293,23 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
|||
* @param data ข้อมูลรายการบุคคล
|
||||
*/
|
||||
function fetchData(data: ArrayPersonAdd[]) {
|
||||
rowsAdd.value = data;
|
||||
const dataList:any = data.map((item: any) => (
|
||||
{
|
||||
id: item.id,
|
||||
idcard: item.idcard,
|
||||
name: item.name,
|
||||
prefix: item.prefix,
|
||||
firstName: item.firstName,
|
||||
lastName: item.lastName,
|
||||
position: item.position,
|
||||
positionLevel: item.positionLevel,
|
||||
salary: item.salary === null ? '-':item.salary,
|
||||
personId: item.personId,
|
||||
posNo: item.posNo === null ? '-':item.posNo,
|
||||
organization: item.organization
|
||||
}
|
||||
))
|
||||
rowsAdd.value = dataList;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue