fix: เพิ่มแสดงรักษาการในตำแหน่ง
This commit is contained in:
parent
3455f4761f
commit
d1a6273bcf
1 changed files with 16 additions and 1 deletions
|
|
@ -75,6 +75,15 @@ const baseColumns = ref<QTableProps["columns"]>([
|
|||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
{
|
||||
name: "posNo",
|
||||
align: "left",
|
||||
label: "รักษาการในตำแหน่ง",
|
||||
field: "posNo",
|
||||
sortable: false,
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
{
|
||||
name: "citizenId",
|
||||
align: "left",
|
||||
|
|
@ -141,14 +150,20 @@ const columns = computed<QTableProps["columns"]>(() => {
|
|||
props.commandCode === "C-PM-04"
|
||||
) {
|
||||
return baseColumns.value;
|
||||
} else {
|
||||
} else if (props.commandCode == "C-PM-40") {
|
||||
return baseColumns.value?.filter(
|
||||
(e) => e.name !== "position" && e.name !== "positionType"
|
||||
);
|
||||
} else {
|
||||
return baseColumns.value?.filter(
|
||||
(e) =>
|
||||
e.name !== "position" && e.name !== "positionType" && e.name !== "posNo"
|
||||
);
|
||||
}
|
||||
});
|
||||
const visibleColumns = ref<String[]>([
|
||||
"no",
|
||||
"posNo",
|
||||
"citizenId",
|
||||
"fullName",
|
||||
"amount",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue