This commit is contained in:
setthawutttty 2024-11-05 13:01:14 +07:00
parent 4afd3ad018
commit aaa704732e

View file

@ -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