fix: column command ผู้ได้รับคำสั่ง, รายชื่อผู้สอบผ่าน owner เห็นเหมือน สกจ.
This commit is contained in:
parent
010b7deeeb
commit
9f9c1d6187
2 changed files with 4 additions and 2 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue