แก้ Ui ฟอร์ม เพิ่ม function ต่างๆ
This commit is contained in:
parent
f8a95f61fa
commit
f02468d7fd
14 changed files with 241 additions and 210 deletions
|
|
@ -20,9 +20,11 @@ import { useLeaveStore } from "@/modules/05_leave/store"
|
|||
import http from "@/plugins/http"
|
||||
import config from "@/app.config"
|
||||
import type { QForm } from "quasar"
|
||||
import { useCounterMixin } from "@/stores/mixin"
|
||||
|
||||
const dataStore = useLeaveStore()
|
||||
|
||||
const mixin = useCounterMixin()
|
||||
const { date2Thai, dialogConfirm } = mixin
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
const myform = ref<QForm | null>(null)
|
||||
|
|
@ -55,8 +57,10 @@ const saveAbsence = () => {
|
|||
.onCancel(() => {})
|
||||
.onDismiss(() => {})
|
||||
}
|
||||
|
||||
/** ฟังก์ชั่น บันทึก */
|
||||
const onSubmit = async () => {
|
||||
dialogConfirm($q, async () => {}, "ยืนยันการยื่นใบลา", "ต้องการยืนยันการยื่นใบลานี้ใช่หรือไม่ ?")
|
||||
|
||||
console.log("save")
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue