แก้ไขประวัติคนครองที่แบบร่างไม่แสดง ปัจจุบัน/แบบร่าง
This commit is contained in:
parent
453c674907
commit
2b1ecba003
1 changed files with 6 additions and 5 deletions
|
|
@ -212,10 +212,9 @@ function formatHistoryData(data: HistoryPos[]) {
|
|||
function formatHistoryOwnerData(data: HistoryPos[]) {
|
||||
return data.map((item) => ({
|
||||
...item,
|
||||
fullname:
|
||||
item.firstName
|
||||
? `${item.prefix}${item.firstName} ${item.lastName}`.trim()
|
||||
: "ว่าง",
|
||||
fullname: item.firstName
|
||||
? `${item.prefix}${item.firstName} ${item.lastName}`.trim()
|
||||
: "ว่าง",
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
@ -266,7 +265,9 @@ watch(
|
|||
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
||||
<div v-if="col.name == 'no'">
|
||||
{{
|
||||
store.typeOrganizational === "current"
|
||||
store.typeOrganizational === "current" ||
|
||||
(store.typeOrganizational === "draft" &&
|
||||
historyType === "OWNER_HISTORY")
|
||||
? props.rowIndex + 1
|
||||
: props.rowIndex + 1 == 1
|
||||
? "1 (แบบร่าง)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue