fix ข้อมูลการลา เลือกผู้บังคับบัญชา

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-05-30 14:17:51 +07:00
parent 5211555eae
commit f9ac5b015f

View file

@ -87,11 +87,14 @@ function onSubmit() {
function closeDialog() {
modal.value = false;
search.value = "";
rows.value = [];
selected.value = [];
}
function getCommander() {
async function getCommander() {
showLoader();
http
await http
.put(config.API.commanderPosexe("operate"), {
isAct: isAct.value,
keyword: search.value,
@ -104,7 +107,6 @@ function getCommander() {
})
.catch((e) => {
messageError($q, e);
hideLoader();
})
.finally(() => {
hideLoader();
@ -313,6 +315,7 @@ onMounted(() => {
hide-bottom-space
dense
label="คำค้น"
@keydown.enter.prevent="getSearch()"
/>
</div>
<q-checkbox
@ -332,7 +335,7 @@ onMounted(() => {
label="ค้นหา"
class="full-width q-pa-sm"
outline
@click.prevent="getCommander"
@click.prevent="getSearch()"
>
</q-btn>
</div>
@ -423,9 +426,14 @@ onMounted(() => {
<q-separator />
<q-card-actions align="right">
<q-btn label="บันทึก" color="secondary" type="submit"
><q-tooltip>นทกขอม</q-tooltip></q-btn
<q-btn
label="บันทึก"
color="secondary"
type="submit"
:disable="selected.length === 0"
>
<q-tooltip>นทกขอม</q-tooltip>
</q-btn>
</q-card-actions>
</q-form>
</q-card>