ออกคำสั่ง step 2 เพิ่มปุ่ม (ค้าง comma)
This commit is contained in:
parent
b89c09a258
commit
a321b87321
3 changed files with 21 additions and 4 deletions
|
|
@ -47,7 +47,7 @@
|
|||
class="q-px-md items-center"
|
||||
color="light-blue-10"
|
||||
label="บันทึก"
|
||||
@click="router.go(-1)"
|
||||
@click="saveData"
|
||||
/>
|
||||
</div>
|
||||
</q-card>
|
||||
|
|
@ -62,7 +62,7 @@ import { useRouter } from "vue-router";
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const { date2Thai } = mixin;
|
||||
const { date2Thai ,dialogConfirm} = mixin;
|
||||
const router = useRouter();
|
||||
const $q = useQuasar();
|
||||
const dateStart = ref<any>(new Date());
|
||||
|
|
@ -74,4 +74,11 @@ const year = ref<string>("");
|
|||
const datelast = ref<string>("");
|
||||
|
||||
const routeName = router.currentRoute.value.name;
|
||||
|
||||
const saveData = () => {
|
||||
dialogConfirm($q,() => DataSave())
|
||||
}
|
||||
const DataSave = () => {
|
||||
router.go(-1)
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue