update workflow
This commit is contained in:
parent
b71e4e5dc5
commit
5016855053
3 changed files with 19 additions and 22 deletions
|
|
@ -39,28 +39,19 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "position",
|
name: "posExecutiveName",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ตำแหน่งในสายงาน",
|
label: "ตำแหน่งทางการบริหาร",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "position",
|
field: "posExecutiveName",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// name: "posType",
|
|
||||||
// align: "left",
|
|
||||||
// label: "ประเภทตำแหน่ง",
|
|
||||||
// sortable: true,
|
|
||||||
// field: "posType",
|
|
||||||
// headerStyle: "font-size: 14px",
|
|
||||||
// style: "font-size: 14px",
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
name: "orgRoot",
|
name: "actFullName",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "สังกัด",
|
label: "รักษาการ",
|
||||||
field: "orgRoot",
|
field: "actFullName",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
|
|
@ -220,7 +211,11 @@ watch(modal, (val) => {
|
||||||
|
|
||||||
<q-card-actions align="right">
|
<q-card-actions align="right">
|
||||||
<q-btn
|
<q-btn
|
||||||
label="ส่งไปยังผู้บังคับบัญชา/ผู้มีอำนาจ"
|
:label="
|
||||||
|
props.type === 'operate'
|
||||||
|
? 'ส่งไปยังผู้บังคับบัญชา'
|
||||||
|
: 'ส่งไปยังผู้มีอำนาจ'
|
||||||
|
"
|
||||||
color="public"
|
color="public"
|
||||||
type="submit"
|
type="submit"
|
||||||
:disable="
|
:disable="
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ const permission = ref<Permission>({
|
||||||
isUpdate: false, //แก้ไขเอกสารได้
|
isUpdate: false, //แก้ไขเอกสารได้
|
||||||
isDelete: false, //ลบเอกสารได้ (ถ้ามี)
|
isDelete: false, //ลบเอกสารได้ (ถ้ามี)
|
||||||
isCancel: false, //ลบเอกสารได้ (ถ้ามี)
|
isCancel: false, //ลบเอกสารได้ (ถ้ามี)
|
||||||
|
isSing: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
const modalSelectPerson = ref<boolean>(false); //เลือกรายชื่อ ส่งไปผู้บังคับบัญชา/ผู้มีอำนาจ
|
const modalSelectPerson = ref<boolean>(false); //เลือกรายชื่อ ส่งไปผู้บังคับบัญชา/ผู้มีอำนาจ
|
||||||
|
|
@ -59,6 +60,7 @@ async function fetchCheckState() {
|
||||||
isUpdate: data.can_update,
|
isUpdate: data.can_update,
|
||||||
isDelete: data.can_delete,
|
isDelete: data.can_delete,
|
||||||
isCancel: data.can_cancel,
|
isCancel: data.can_cancel,
|
||||||
|
isSing: data.can_sing,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|
@ -191,23 +193,22 @@ defineExpose({
|
||||||
</q-list>
|
</q-list>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div v-if="state === index + 1" class="row q-gutter-x-sm">
|
||||||
v-if="permission.isOperate && state === index + 1"
|
|
||||||
class="row q-gutter-x-sm"
|
|
||||||
>
|
|
||||||
<q-btn
|
<q-btn
|
||||||
|
v-if="permission.isOperate"
|
||||||
@click.prevent="
|
@click.prevent="
|
||||||
(modalSelectPerson = true), (typeSelectPerson = 'operate')
|
(modalSelectPerson = true), (typeSelectPerson = 'operate')
|
||||||
"
|
"
|
||||||
label="ส่งไปผู้บังคับบัญชา"
|
label="ส่งไปยังผู้บังคับบัญชา"
|
||||||
color="public"
|
color="public"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
|
v-if="permission.isSing"
|
||||||
@click.prevent="
|
@click.prevent="
|
||||||
(modalSelectPerson = true), (typeSelectPerson = 'sign')
|
(modalSelectPerson = true), (typeSelectPerson = 'sign')
|
||||||
"
|
"
|
||||||
label="ผู้มีอำนาจ"
|
label="ส่งไปยังผู้มีอำนาจ"
|
||||||
color="public"
|
color="public"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ interface Permission {
|
||||||
isUpdate: boolean; //แก้ไขเอกสารได้
|
isUpdate: boolean; //แก้ไขเอกสารได้
|
||||||
isDelete: boolean; //ลบเอกสารได้ (ถ้ามี)
|
isDelete: boolean; //ลบเอกสารได้ (ถ้ามี)
|
||||||
isCancel: boolean; //ลบเอกสารได้ (ถ้ามี)
|
isCancel: boolean; //ลบเอกสารได้ (ถ้ามี)
|
||||||
|
isSing: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type { Permission };
|
export type { Permission };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue