แก้ไขการแสดงผลรายการกรรมการของวินัย

This commit is contained in:
Warunee Tamkoo 2024-01-24 16:22:39 +07:00
parent 568635fe65
commit 61d8e40fc2
4 changed files with 27 additions and 27 deletions

View file

@ -281,14 +281,14 @@ watch(props.data, async () => {
id: item.id ? item.id : "-",
directorId: item.directorId ? item.directorId : "-",
name: `${item.prefix}${item.firstName} ${item.lastName}`,
prefix: item.prefix ? item.prefix : "-",
firstName: item.firstName ? item.firstName : "-",
lastName: item.lastName ? item.lastName : "-",
position: item.position ? item.position : "-",
email: item.email ? item.email : "-",
phone: item.phone ? item.phone : "-",
commandNo: item.commandNo ? item.commandNo : "-",
duty: item.duty ? item.duty : "-",
prefix: item.prefix,
firstName: item.firstName,
lastName: item.lastName,
position: item.position == '' ? "-" : item.position,
email: item.email == '' ? '-' : item.email,
phone: item.phone == '' ? '-' : item.phone,
commandNo: item.commandNo == '' ? '-' : item.commandNo,
duty: item.duty == '' ? '-' : item.duty,
check: "props",
}));

View file

@ -374,14 +374,14 @@ async function fetchDatadetail() {
idRaw: item.id ? item.id : "-",
id: item.directorId ? item.directorId : "-",
name: `${item.prefix}${item.firstName} ${item.lastName}`,
prefix: item.prefix ? item.prefix : "-",
firstName: item.firstName ? item.firstName : "-",
lastName: item.lastName ? item.lastName : "-",
position: item.position ? item.position : "-",
email: item.email ? item.email : "-",
phone: item.phone ? item.phone : "-",
duty: item.duty ? item.duty : "-",
commandNo: item.commandNo ? item.commandNo : "-",
prefix: item.prefix,
firstName: item.firstName,
lastName: item.lastName,
position: item.position == '' ? "-" : item.position,
email: item.email == '' ? '-' : item.email,
phone: item.phone == '' ? '-' : item.phone,
commandNo: item.commandNo == '' ? '-' : item.commandNo,
duty: item.duty == '' ? '-' : item.duty,
check: "props",
}));
@ -475,8 +475,8 @@ async function fetchDListDirector() {
firstName: e.firstName,
lastName: e.lastName,
position: e.position,
email: e.email,
phone: e.phone,
email: e.email == '' ? '-' : e.email,
phone: e.phone == '' ? '-' : e.phone,
total: e.total,
duty: e.duty,
}));

View file

@ -295,8 +295,8 @@ export const useInvestigateDisStore = defineStore(
firstName: e.firstName,
lastName: e.lastName,
position: e.position,
email: e.email,
phone: e.phone,
email: e.email == '' ? '-' : e.email,
phone: e.phone == '' ? '-' : e.phone,
}));
rows2.value = datalistDirector;
selected.value = rows2.value;

View file

@ -155,9 +155,9 @@ async function getList() {
prefix: item.prefix,
firstName: item.firstName,
lastName: item.lastName,
phone: item.phone,
email: item.email,
position: item.position,
phone: item.phone == '' ? '-' : item.phone,
email: item.email == '' ? '-' : item.email,
position: item.position == '' ? '-' : item.position,
}));
})
.catch((e) => {
@ -177,10 +177,10 @@ watch(
prefix: item.prefix,
firstName: item.firstName,
lastName: item.lastName,
position: item.position,
positionName: item.positionName,
email: item.email,
phone: item.phone,
phone: item.phone == '' ? '-' : item.phone,
email: item.email == '' ? '-' : item.email,
position: item.position == '' ? '-' : item.position,
positionName: item.positionName == '-' ? '-' : item.positionName,
}));
}
}