fix workflow
This commit is contained in:
parent
6039aea359
commit
a2e2b9a7b6
2 changed files with 19 additions and 4 deletions
|
|
@ -19,6 +19,7 @@ const modal = defineModel<boolean>("modal", { required: true });
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
stateId: { type: String, require: true },
|
stateId: { type: String, require: true },
|
||||||
fetchData: { type: Function, require: true },
|
fetchData: { type: Function, require: true },
|
||||||
|
type: { type: String, require: true },
|
||||||
});
|
});
|
||||||
|
|
||||||
/** table*/
|
/** table*/
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ const permission = ref<Permission>({
|
||||||
});
|
});
|
||||||
|
|
||||||
const modalSelectPerson = ref<boolean>(false); //เลือกรายชื่อ ส่งไปผู้บังคับบัญชา/ผู้มีอำนาจ
|
const modalSelectPerson = ref<boolean>(false); //เลือกรายชื่อ ส่งไปผู้บังคับบัญชา/ผู้มีอำนาจ
|
||||||
|
const typeSelectPerson = ref<string>("");
|
||||||
const itemState = ref<DataListState[]>([]);
|
const itemState = ref<DataListState[]>([]);
|
||||||
|
|
||||||
/** ฟังก์ชันเรียกข้อมูล Workflow ที่อยู่ปัจุบัน*/
|
/** ฟังก์ชันเรียกข้อมูล Workflow ที่อยู่ปัจุบัน*/
|
||||||
|
|
@ -114,7 +115,7 @@ defineExpose({
|
||||||
<template>
|
<template>
|
||||||
<q-card bordered class="row col-12" v-if="isPermission">
|
<q-card bordered class="row col-12" v-if="isPermission">
|
||||||
<div class="bg-grey-1 q-pa-sm col-12 row items-center">
|
<div class="bg-grey-1 q-pa-sm col-12 row items-center">
|
||||||
<div class="q-pl-sm text-weight-bold text-dark">Workflow</div>
|
<div class="q-pl-sm text-weight-bold text-dark">สถานะการดำเนินเรื่อง</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12"><q-separator /></div>
|
<div class="col-12"><q-separator /></div>
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
|
|
@ -190,10 +191,23 @@ defineExpose({
|
||||||
</q-list>
|
</q-list>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="permission.isOperate && state === index + 1">
|
<div
|
||||||
|
v-if="permission.isOperate && state === index + 1"
|
||||||
|
class="row q-gutter-x-sm"
|
||||||
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
@click.prevent="modalSelectPerson = true"
|
@click.prevent="
|
||||||
label="ส่งไปผู้บังคับบัญชา/ผู้มีอำนาจ"
|
(modalSelectPerson = true), (typeSelectPerson = 'operate')
|
||||||
|
"
|
||||||
|
label="ส่งไปผู้บังคับบัญชา"
|
||||||
|
color="public"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<q-btn
|
||||||
|
@click.prevent="
|
||||||
|
(modalSelectPerson = true), (typeSelectPerson = 'sign')
|
||||||
|
"
|
||||||
|
label="ผู้มีอำนาจ"
|
||||||
color="public"
|
color="public"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue