no message
This commit is contained in:
parent
3d0028dfa8
commit
40300cf4ce
3 changed files with 53 additions and 9 deletions
|
|
@ -10,6 +10,7 @@
|
|||
color="primary"
|
||||
class="q-mr-sm"
|
||||
@click="clickBack"
|
||||
|
||||
/>
|
||||
{{
|
||||
edit
|
||||
|
|
@ -34,6 +35,7 @@
|
|||
option-label="label"
|
||||
label="รอบการเสนอขอพระราชทานเครื่องราชฯ"
|
||||
@update:model-value="updateDateRange"
|
||||
:rules="[(val) => !!val || `${'กรุณาเลือกรอบที่'}`]"
|
||||
/>
|
||||
<datepicker
|
||||
menu-class-name="modalfix"
|
||||
|
|
@ -201,7 +203,7 @@ import http from "@/plugins/http";
|
|||
import config from "@/app.config";
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const { date2Thai, success, dateToISO, messageError, showLoader, hideLoader } =
|
||||
const { date2Thai, success, dateToISO, messageError, showLoader, hideLoader,dialogConfirm } =
|
||||
mixin;
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
|
|
@ -293,8 +295,10 @@ const editData = async (id: string) => {
|
|||
});
|
||||
console.log(formData);
|
||||
};
|
||||
|
||||
const checkSave = async () => {
|
||||
const checkSave = () => {
|
||||
dialogConfirm($q,()=> SaveData())
|
||||
}
|
||||
const SaveData = async () => {
|
||||
if (myForm.value !== null) {
|
||||
myForm.value.validate().then(async (success) => {
|
||||
if (success) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue