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