fix: column command ผู้ได้รับคำสั่ง, รายชื่อผู้สอบผ่าน owner เห็นเหมือน สกจ.

This commit is contained in:
Warunee Tamkoo 2026-02-20 12:10:30 +07:00
parent 010b7deeeb
commit 9f9c1d6187
2 changed files with 4 additions and 2 deletions

View file

@ -862,7 +862,9 @@ async function getWorkFlow() {
const data = await res.data.result;
DataStore.isOfficer = data.isOfficer;
DataStore.isStaff = data.isStaff;
roleAdmin.value = data.isOfficer;
roleAdmin.value =
data.isOfficer ||
(checkPermission(route)?.attrOwnership == "OWNER" ? true : false);
if (roleAdmin.value === false) {
displayAdd.value = false;
// visibleColumns.value = [

View file

@ -149,7 +149,7 @@ const columns = computed<QTableProps["columns"]>(() => {
props.commandCode === "C-PM-03" ||
props.commandCode === "C-PM-04"
) {
return baseColumns.value;
return baseColumns.value?.filter((e) => e.name !== "posNo");
} else if (props.commandCode == "C-PM-40") {
return baseColumns.value?.filter(
(e) => e.name !== "position" && e.name !== "positionType"