fix position
This commit is contained in:
parent
ced0326a49
commit
603ba96ff1
1 changed files with 25 additions and 5 deletions
|
|
@ -298,12 +298,23 @@ const modalCommand = ref<boolean>(false);
|
|||
const command = ref<string>("");
|
||||
const commandId = ref<string>("");
|
||||
|
||||
const columns = ref<QTableColumn[]>(
|
||||
baseColumns.value.filter(
|
||||
const columns = computed<QTableColumn[]>(() => {
|
||||
if (empType.value === "-employee") {
|
||||
if (baseColumns.value) {
|
||||
return baseColumns.value.filter(
|
||||
(column) =>
|
||||
column.name !== "positionExecutive" &&
|
||||
column.name !== "lastUpdateFullName" &&
|
||||
column.name !== "lastUpdatedAt"
|
||||
);
|
||||
}
|
||||
}
|
||||
return baseColumns.value.filter(
|
||||
(e: QTableColumn) =>
|
||||
e.name !== "lastUpdateFullName" && e.name !== "lastUpdatedAt"
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
const visibleColumns = ref<String[]>(
|
||||
baseVisibleColumns.value.filter(
|
||||
(e: string) => e !== "lastUpdateFullName" && e !== "lastUpdatedAt"
|
||||
|
|
@ -339,7 +350,16 @@ const formData = reactive<FormPostition>({
|
|||
remark: "", //หมายเหตุ
|
||||
});
|
||||
|
||||
const columnsHistory = ref<QTableColumn[]>(baseColumns.value);
|
||||
const columnsHistory = computed<QTableColumn[]>(() => {
|
||||
if (empType.value === "-employee") {
|
||||
if (baseColumns.value) {
|
||||
return baseColumns.value.filter(
|
||||
(column) => column.name !== "positionExecutive"
|
||||
);
|
||||
}
|
||||
}
|
||||
return baseColumns.value;
|
||||
});
|
||||
const visibleColumnsHistory = ref<string[]>(baseVisibleColumns.value);
|
||||
|
||||
const modalDialogSalary = ref<boolean>(false); //แสดง popup ตำแหน่งเงินเดือน
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue