fix: getColumnLabel posNo
This commit is contained in:
parent
7543a40967
commit
d457a7694e
8 changed files with 65 additions and 98 deletions
|
|
@ -60,3 +60,16 @@ export function calculateAge(birthDate: Date | null) {
|
|||
|
||||
return `${years} ปี ${months} เดือน ${days} วัน`;
|
||||
}
|
||||
|
||||
/**
|
||||
* คืนค่าชื่อคอลัมน์ตามเงื่อนไข
|
||||
* @param col คอลัมน์
|
||||
* @param isAct สถานะรักษาการแทน
|
||||
* @returns ชื่อคอลัมน์
|
||||
*/
|
||||
export function getColumnLabel(col: any, isAct: boolean) {
|
||||
if (col.name === "posNo" && isAct) {
|
||||
return "เลขที่ตำแหน่ง (รักษาการแทน)";
|
||||
}
|
||||
return col.label;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue