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"
|
@update:model-value="onChangeSnap"
|
||||||
:disable="!isDisable"
|
:disable="!isDisable"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-select
|
<q-select
|
||||||
:readonly="checkPermission($route)?.attrOwnership === 'STAFF'"
|
:readonly="
|
||||||
|
checkPermission($route)?.attrOwnership === 'STAFF' &&
|
||||||
|
checkPermission($route)?.attrPrivilege !== 'PARENT'
|
||||||
|
"
|
||||||
v-model="agencyFilter"
|
v-model="agencyFilter"
|
||||||
label="หน่วยงาน"
|
label="หน่วยงาน"
|
||||||
lazy-rules
|
lazy-rules
|
||||||
|
|
@ -601,7 +605,8 @@ onMounted(async () => {
|
||||||
<template
|
<template
|
||||||
v-if="
|
v-if="
|
||||||
agencyFilter !== 'ALL' &&
|
agencyFilter !== 'ALL' &&
|
||||||
checkPermission($route)?.attrOwnership === 'OWNER'
|
(checkPermission($route)?.attrOwnership === 'OWNER' ||
|
||||||
|
checkPermission($route)?.attrPrivilege === 'PARENT')
|
||||||
"
|
"
|
||||||
v-slot:append
|
v-slot:append
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -521,7 +521,10 @@ onMounted(async () => {
|
||||||
:disable="!isDisable"
|
:disable="!isDisable"
|
||||||
/>
|
/>
|
||||||
<q-select
|
<q-select
|
||||||
:readonly="checkPermission($route)?.attrOwnership === 'STAFF'"
|
:readonly="
|
||||||
|
checkPermission($route)?.attrOwnership === 'STAFF' &&
|
||||||
|
checkPermission($route)?.attrPrivilege !== 'PARENT'
|
||||||
|
"
|
||||||
v-model="agencyFilter"
|
v-model="agencyFilter"
|
||||||
label="หน่วยงาน"
|
label="หน่วยงาน"
|
||||||
dense
|
dense
|
||||||
|
|
@ -546,7 +549,8 @@ onMounted(async () => {
|
||||||
<template
|
<template
|
||||||
v-if="
|
v-if="
|
||||||
agencyFilter !== 'ALL' &&
|
agencyFilter !== 'ALL' &&
|
||||||
checkPermission($route)?.attrOwnership === 'OWNER'
|
(checkPermission($route)?.attrOwnership === 'OWNER' ||
|
||||||
|
checkPermission($route)?.attrPrivilege === 'PARENT')
|
||||||
"
|
"
|
||||||
v-slot:append
|
v-slot:append
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue