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