ปรับชื่อ defineStore ระบบ วินัย
This commit is contained in:
parent
074fc05412
commit
7c0284a87a
7 changed files with 42 additions and 13 deletions
|
|
@ -1,10 +1,12 @@
|
|||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
// importStroe
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const { date2Thai, dialogConfirm } = mixin;
|
||||
const $q = useQuasar();
|
||||
|
||||
const props = defineProps({
|
||||
next: {
|
||||
|
|
@ -23,7 +25,14 @@ const dateYear = ref<number>(2023);
|
|||
const date = ref<Date | null>(null);
|
||||
|
||||
function onSubmit() {
|
||||
next();
|
||||
dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
next();
|
||||
},
|
||||
"ยืนยันการบันทึกข้อมูล",
|
||||
"ต้องการยืนยันการบันทึกข้อมูลนี้หรือไม่"
|
||||
);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
@ -207,12 +216,12 @@ function onSubmit() {
|
|||
</div>
|
||||
<q-card-actions align="right">
|
||||
<q-btn
|
||||
dense
|
||||
flat
|
||||
round
|
||||
unelevated
|
||||
label="next"
|
||||
color="public"
|
||||
color="secondary"
|
||||
icon="mdi-content-save-outline"
|
||||
type="submit"
|
||||
class="q-px-md"
|
||||
/>
|
||||
</q-card-actions>
|
||||
</q-form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue