posNo
This commit is contained in:
parent
4afd3ad018
commit
aaa704732e
1 changed files with 30 additions and 4 deletions
|
|
@ -48,6 +48,8 @@ const fileUploadOrder = ref<any>(null); //ไฟล์คำสั่ง
|
|||
const fileUploadTailer = ref<any>(null); //ไฟล์เอกสารแนบท้าย
|
||||
const fileOrder = ref<any>(null); //ไฟล์คำสั่ง
|
||||
const fileTailer = ref<any>(null); //ไฟล์เอกสารแนบท้าย
|
||||
const isDirector = ref<boolean>(true);
|
||||
const isAct = ref<boolean>(false);
|
||||
|
||||
const modalSelect = ref<boolean>(false); //popup เลือกผู้บังคับบัญชา/ผู้มีอำนาจออกคำสั่ง
|
||||
const search = ref<string>("");
|
||||
|
|
@ -67,6 +69,15 @@ const columns = ref<QTableProps["columns"]>([
|
|||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
{
|
||||
name: "posNo",
|
||||
align: "left",
|
||||
label: "เลที่ตำแหน่ง",
|
||||
sortable: true,
|
||||
field: "posNo",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
|
||||
{
|
||||
name: "fullName",
|
||||
|
|
@ -149,7 +160,8 @@ function fetchListDirector() {
|
|||
showLoader();
|
||||
http
|
||||
.post(config.API.commandDirector, {
|
||||
isDirector: true, // fix ค่านี้เป็น true
|
||||
isDirector: isDirector.value, // fix ค่านี้เป็น true
|
||||
isAct: isAct.value,
|
||||
keyword: search.value,
|
||||
page: page.value,
|
||||
pageSize: pageSize.value,
|
||||
|
|
@ -232,6 +244,8 @@ function onSubmitComment() {
|
|||
}
|
||||
|
||||
function onCloseDialog() {
|
||||
isAct.value = false
|
||||
isDirector.value = true
|
||||
modalSelect.value = false;
|
||||
modalComment.value = false;
|
||||
isPersonSign.value = false;
|
||||
|
|
@ -373,6 +387,10 @@ async function fetchListAuthority() {
|
|||
});
|
||||
}
|
||||
|
||||
function onAct() {
|
||||
isDirector.value = !isDirector.value;
|
||||
}
|
||||
|
||||
watch(
|
||||
() => pageSize.value,
|
||||
() => {
|
||||
|
|
@ -682,9 +700,7 @@ onMounted(async () => {
|
|||
<q-card-section>
|
||||
<div class="col-12 q-col-gutter-sm">
|
||||
<div class="col-12 row q-col-gutter-md items-start">
|
||||
<q-space />
|
||||
|
||||
<div class="col-12 col-sm-6 col-md-6">
|
||||
<div class="col-12 col-sm-4 col-md-4">
|
||||
<q-input
|
||||
v-model="search"
|
||||
outlined
|
||||
|
|
@ -695,6 +711,16 @@ onMounted(async () => {
|
|||
@clear="search = ''"
|
||||
/>
|
||||
</div>
|
||||
<q-checkbox
|
||||
keep-color
|
||||
v-model="isAct"
|
||||
label="แสดงเฉพาะรักษาการแทน"
|
||||
color="primary"
|
||||
@update:model-value="onAct"
|
||||
>
|
||||
<q-tooltip>แสดงเฉพาะรักษาการแทน </q-tooltip>
|
||||
</q-checkbox>
|
||||
<q-space />
|
||||
|
||||
<div class="col-12 col-sm-6 col-md-3">
|
||||
<q-btn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue