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

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 : "-", id: item.id ? item.id : "-",
directorId: item.directorId ? item.directorId : "-", directorId: item.directorId ? item.directorId : "-",
name: `${item.prefix}${item.firstName} ${item.lastName}`, name: `${item.prefix}${item.firstName} ${item.lastName}`,
prefix: item.prefix ? item.prefix : "-", prefix: item.prefix,
firstName: item.firstName ? item.firstName : "-", firstName: item.firstName,
lastName: item.lastName ? item.lastName : "-", lastName: item.lastName,
position: item.position ? item.position : "-", position: item.position == '' ? "-" : item.position,
email: item.email ? item.email : "-", email: item.email == '' ? '-' : item.email,
phone: item.phone ? item.phone : "-", phone: item.phone == '' ? '-' : item.phone,
commandNo: item.commandNo ? item.commandNo : "-", commandNo: item.commandNo == '' ? '-' : item.commandNo,
duty: item.duty ? item.duty : "-", duty: item.duty == '' ? '-' : item.duty,
check: "props", check: "props",
})); }));

View file

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

View file

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

View file

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