สิทธ์ ออกคำสั่งลงโทษทางวินัย

This commit is contained in:
STW_TTTY\stwtt 2024-08-08 18:09:38 +07:00
parent 37f0ecbc1e
commit a7bd09d0f1
12 changed files with 240 additions and 83 deletions

View file

@ -47,7 +47,7 @@ const mixin = useCounterMixin(); //เรียกฟังก์ชันกล
const { dialogRemove, messageError, showLoader, hideLoader, success } = mixin;
const route = useRoute();
const checkRoutePermisson = ref<boolean>(route.name == "disciplineOrderDatailOnly");
const myForm = ref<QForm | null>(null);
const filterRef = ref<QInput>();
const filter = ref<string>("");
@ -365,7 +365,7 @@ const fetchOrder = async (id: string) => {
<q-card>
<q-card-section>
<div class="col-12 row q-py-sm items-center">
<q-btn flat round color="primary" @click="clickAdd" icon="mdi-plus">
<q-btn v-if="!checkRoutePermisson" flat round color="primary" @click="clickAdd" icon="mdi-plus">
<q-tooltip>เพมขอม</q-tooltip>
</q-btn>
<q-space />
@ -429,6 +429,7 @@ const fetchOrder = async (id: string) => {
<q-tr :props="props" class="cursor-pointer">
<q-td auto-width>
<q-btn
v-if="!checkRoutePermisson"
dense
size="12px"
flat
@ -472,6 +473,7 @@ const fetchOrder = async (id: string) => {
:label="`${'เลือกช่องทางการส่งสำเนา'}`"
emit-value
map-options
:readonly="checkRoutePermisson"
option-label="name"
:options="optionSelect"
option-value="id"
@ -494,8 +496,8 @@ const fetchOrder = async (id: string) => {
</q-form>
</q-card-section>
<q-separator />
<q-card-actions align="right">
<q-separator v-if="!checkRoutePermisson"/>
<q-card-actions align="right" v-if="!checkRoutePermisson">
<q-btn
outline
color="primary"