no message
This commit is contained in:
parent
3d0028dfa8
commit
40300cf4ce
3 changed files with 53 additions and 9 deletions
|
|
@ -34,6 +34,7 @@
|
|||
option-value="value"
|
||||
option-label="label"
|
||||
@update:model-value="updateDateRange"
|
||||
:rules="[(val) => !!val || `${'กรุณาเลือกรอบที่'}`]"
|
||||
/>
|
||||
<datepicker
|
||||
menu-class-name="modalfix"
|
||||
|
|
@ -201,7 +202,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();
|
||||
|
|
@ -317,8 +318,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