แก้ ดักปุ่ม บันทึก

This commit is contained in:
STW_TTTY\stwtt 2024-09-24 17:19:11 +07:00
parent 4938aaf40d
commit 4607cca333

View file

@ -44,7 +44,7 @@ const commandNo = ref<string>("");
const commandYear = ref<number>(new Date().getFullYear());
const rows = ref<DataListCommand[]>([]); //
const selected = ref<any>([]); // id
const selected = ref<any[]>([]); // id
const filter = ref<string>(""); //
const total = ref<number>(0);
@ -238,6 +238,8 @@ function clearValue() {
commandYear.value = new Date().getFullYear();
selectCreate.value = "NEW";
selected.value = []
filter.value = ''
}
const selectCreate = ref<string | null>("NEW");
@ -542,7 +544,7 @@ watch(modal, () => {
<q-btn
label="บันทึก"
@click="onSubmit"
:disable="selected || commandType == ''"
:disable="selected.length == 0 && commandType == ''"
color="public"
><q-tooltip>นท</q-tooltip></q-btn
>