fix(salary): checkPermission PARENT
This commit is contained in:
parent
7c7e270119
commit
98a29d184f
2 changed files with 13 additions and 4 deletions
|
|
@ -570,8 +570,12 @@ onMounted(async () => {
|
|||
@update:model-value="onChangeSnap"
|
||||
:disable="!isDisable"
|
||||
/>
|
||||
|
||||
<q-select
|
||||
:readonly="checkPermission($route)?.attrOwnership === 'STAFF'"
|
||||
:readonly="
|
||||
checkPermission($route)?.attrOwnership === 'STAFF' &&
|
||||
checkPermission($route)?.attrPrivilege !== 'PARENT'
|
||||
"
|
||||
v-model="agencyFilter"
|
||||
label="หน่วยงาน"
|
||||
lazy-rules
|
||||
|
|
@ -601,7 +605,8 @@ onMounted(async () => {
|
|||
<template
|
||||
v-if="
|
||||
agencyFilter !== 'ALL' &&
|
||||
checkPermission($route)?.attrOwnership === 'OWNER'
|
||||
(checkPermission($route)?.attrOwnership === 'OWNER' ||
|
||||
checkPermission($route)?.attrPrivilege === 'PARENT')
|
||||
"
|
||||
v-slot:append
|
||||
>
|
||||
|
|
|
|||
|
|
@ -521,7 +521,10 @@ onMounted(async () => {
|
|||
:disable="!isDisable"
|
||||
/>
|
||||
<q-select
|
||||
:readonly="checkPermission($route)?.attrOwnership === 'STAFF'"
|
||||
:readonly="
|
||||
checkPermission($route)?.attrOwnership === 'STAFF' &&
|
||||
checkPermission($route)?.attrPrivilege !== 'PARENT'
|
||||
"
|
||||
v-model="agencyFilter"
|
||||
label="หน่วยงาน"
|
||||
dense
|
||||
|
|
@ -546,7 +549,8 @@ onMounted(async () => {
|
|||
<template
|
||||
v-if="
|
||||
agencyFilter !== 'ALL' &&
|
||||
checkPermission($route)?.attrOwnership === 'OWNER'
|
||||
(checkPermission($route)?.attrOwnership === 'OWNER' ||
|
||||
checkPermission($route)?.attrPrivilege === 'PARENT')
|
||||
"
|
||||
v-slot:append
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue