fix หน่วยงาน Staff
This commit is contained in:
parent
bf29f6d058
commit
50a8f9c5fe
2 changed files with 18 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ import { useQuasar } from "quasar";
|
|||
|
||||
import { useSalaryListSDataStore } from "@/modules/13_salary/store/SalaryListsStore";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { checkPermission } from "@/utils/permissions";
|
||||
import config from "@/app.config";
|
||||
import http from "@/plugins/http";
|
||||
|
||||
|
|
@ -542,6 +543,7 @@ onMounted(async () => {
|
|||
/>
|
||||
|
||||
<q-select
|
||||
:readonly="checkPermission($route)?.attrOwnership === 'STAFF'"
|
||||
v-model="agencyFilter"
|
||||
label="หน่วยงาน"
|
||||
lazy-rules
|
||||
|
|
@ -568,7 +570,13 @@ onMounted(async () => {
|
|||
<q-item-section class="text-grey"> ไม่มีข้อมูล </q-item-section>
|
||||
</q-item>
|
||||
</template>
|
||||
<template v-if="agencyFilter !== 'ALL'" v-slot:append>
|
||||
<template
|
||||
v-if="
|
||||
agencyFilter !== 'ALL' &&
|
||||
checkPermission($route)?.attrOwnership === 'OWNER'
|
||||
"
|
||||
v-slot:append
|
||||
>
|
||||
<q-icon
|
||||
name="cancel"
|
||||
@click.stop.prevent="
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { useQuasar } from "quasar";
|
|||
|
||||
import { useSalaryEmployeeListSDataStore } from "@/modules/13_salary/store/SalaryEmployeeListsStore";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { checkPermission } from "@/utils/permissions";
|
||||
import config from "@/app.config";
|
||||
import http from "@/plugins/http";
|
||||
|
||||
|
|
@ -496,6 +497,7 @@ onMounted(async () => {
|
|||
:disable="!isDisable"
|
||||
/>
|
||||
<q-select
|
||||
:readonly="checkPermission($route)?.attrOwnership === 'STAFF'"
|
||||
v-model="agencyFilter"
|
||||
label="หน่วยงาน"
|
||||
dense
|
||||
|
|
@ -517,7 +519,13 @@ onMounted(async () => {
|
|||
doneFn:Function) => filterSelector(inputValue, doneFn,'agencyFilter'
|
||||
) "
|
||||
>
|
||||
<template v-if="agencyFilter !== 'ALL'" v-slot:append>
|
||||
<template
|
||||
v-if="
|
||||
agencyFilter !== 'ALL' &&
|
||||
checkPermission($route)?.attrOwnership === 'OWNER'
|
||||
"
|
||||
v-slot:append
|
||||
>
|
||||
<q-icon
|
||||
name="cancel"
|
||||
@click.stop.prevent="
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue