updated & fix bug

This commit is contained in:
Warunee Tamkoo 2024-02-28 15:24:02 +07:00
parent 704fce71ed
commit 84bb5b20a0
4 changed files with 92 additions and 38 deletions

View file

@ -23,12 +23,6 @@ const props = defineProps({
type: Function,
},
});
const typeOp = ref<DataOption[]>([
{ id: "NONE", name: "ไม่ได้เลื่อน" },
{ id: "HAFT", name: "ครึ่งขั้น" },
{ id: "FULL", name: "1ขั้น" },
{ id: "FULLHAFT", name: "1.5ขั้น" },
]);
/*** ฟังก์ชั่นสำหรับ validate ฟอร์ม */
function validateForm() {
@ -90,7 +84,7 @@ function inputEdit(val: boolean) {
map-options
option-label="name"
option-value="id"
:options="typeOp.filter((e) => e.id !== store.tabType)"
:options="store.typeRangeOps.filter((e) => e.id !== store.tabType)"
:rules="[(val) => !!val || `${'กรุณาเลือก ขั้น'}`]"
lazy-rules
hide-bottom-space