แก้ ดักปุ่ม บันทึก
This commit is contained in:
parent
4938aaf40d
commit
4607cca333
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue