สิทธ์ ออกคำสั่งลงโทษทางวินัย
This commit is contained in:
parent
37f0ecbc1e
commit
a7bd09d0f1
12 changed files with 240 additions and 83 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue