สิทธิ์ เปลี่ยนแปลงรอบการปฏิบัติงานของผู้ใช้งาน
This commit is contained in:
parent
1d8093f4e6
commit
faffd637fe
1 changed files with 37 additions and 10 deletions
|
|
@ -14,6 +14,8 @@ import Dialogform from "@/modules/09_leave/components/4_ChangeRound/DialogForm.v
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useChangeRoundDataStore } from "@/modules/09_leave/stores/ChangeRoundStore";
|
import { useChangeRoundDataStore } from "@/modules/09_leave/stores/ChangeRoundStore";
|
||||||
|
|
||||||
|
import { checkPermission } from "@/utils/permissions";
|
||||||
|
|
||||||
/** useStore */
|
/** useStore */
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const {
|
const {
|
||||||
|
|
@ -147,6 +149,7 @@ function searchData() {
|
||||||
</div>
|
</div>
|
||||||
<div class="row justify-between q-gutter-y-sm">
|
<div class="row justify-between q-gutter-y-sm">
|
||||||
<q-input
|
<q-input
|
||||||
|
:readonly="!checkPermission($route)?.attrIsGet"
|
||||||
v-model="formData.cardId"
|
v-model="formData.cardId"
|
||||||
outlined
|
outlined
|
||||||
label="เลขประจำตัวประชาชน"
|
label="เลขประจำตัวประชาชน"
|
||||||
|
|
@ -156,6 +159,7 @@ function searchData() {
|
||||||
maxlength="13"
|
maxlength="13"
|
||||||
/>
|
/>
|
||||||
<q-input
|
<q-input
|
||||||
|
:readonly="!checkPermission($route)?.attrIsGet"
|
||||||
v-model="formData.firstName"
|
v-model="formData.firstName"
|
||||||
outlined
|
outlined
|
||||||
label="ชื่อ"
|
label="ชื่อ"
|
||||||
|
|
@ -164,6 +168,7 @@ function searchData() {
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
/>
|
/>
|
||||||
<q-input
|
<q-input
|
||||||
|
:readonly="!checkPermission($route)?.attrIsGet"
|
||||||
v-model="formData.lastName"
|
v-model="formData.lastName"
|
||||||
outlined
|
outlined
|
||||||
label="นามสกุล"
|
label="นามสกุล"
|
||||||
|
|
@ -172,6 +177,7 @@ function searchData() {
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
/>
|
/>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
v-if="checkPermission($route)?.attrIsGet"
|
||||||
@click="(formData.page = 1), searchData()"
|
@click="(formData.page = 1), searchData()"
|
||||||
for="#search"
|
for="#search"
|
||||||
dense
|
dense
|
||||||
|
|
@ -221,7 +227,7 @@ function searchData() {
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body="props">
|
<template v-slot:body="props">
|
||||||
<q-tr :props="props" class="cursor-pointer">
|
<q-tr :props="props">
|
||||||
<q-td>
|
<q-td>
|
||||||
<div>
|
<div>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
|
@ -236,32 +242,53 @@ function searchData() {
|
||||||
<q-menu>
|
<q-menu>
|
||||||
<q-list>
|
<q-list>
|
||||||
<q-item
|
<q-item
|
||||||
|
v-if="checkPermission($route)?.attrIsUpdate"
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@click="Openmodal('edit', props.row)"
|
@click="Openmodal('edit', props.row)"
|
||||||
>
|
>
|
||||||
|
<q-item-section style="min-width: 0px" avatar>
|
||||||
|
<q-icon
|
||||||
|
color="primary"
|
||||||
|
name="mdi-shuffle-variant"
|
||||||
|
size="xs"
|
||||||
|
/>
|
||||||
|
</q-item-section>
|
||||||
|
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
<q-item-label>เปลี่ยนรอบการลงเวลา</q-item-label>
|
<q-item-label>เปลี่ยนรอบการลงเวลา</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
|
<q-item
|
||||||
|
v-if="checkPermission($route)?.attrIsUpdate"
|
||||||
|
clickable
|
||||||
|
v-close-popup
|
||||||
|
@click="OpenmodalFix(props.row)"
|
||||||
|
>
|
||||||
|
<q-item-section style="min-width: 0px" avatar>
|
||||||
|
<q-icon color="edit" name="edit" size="xs" />
|
||||||
|
</q-item-section>
|
||||||
|
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>แก้ไขปฏิทินวันทำงาน</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@click="Openmodal('history', props.row)"
|
@click="Openmodal('history', props.row)"
|
||||||
>
|
>
|
||||||
|
<q-item-section style="min-width: 0px" avatar>
|
||||||
|
<q-icon
|
||||||
|
color="deep-purple"
|
||||||
|
name="mdi-history"
|
||||||
|
size="xs"
|
||||||
|
/>
|
||||||
|
</q-item-section>
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
<q-item-label>ประวัติการเปลี่ยนรอบ</q-item-label>
|
<q-item-label>ประวัติการเปลี่ยนรอบ</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item
|
|
||||||
clickable
|
|
||||||
v-close-popup
|
|
||||||
@click="OpenmodalFix(props.row)"
|
|
||||||
>
|
|
||||||
<q-item-section>
|
|
||||||
<q-item-label>แก้ไขปฏิทินวันทำงาน</q-item-label>
|
|
||||||
</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-menu>
|
</q-menu>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue