ปรับวินัย

This commit is contained in:
setthawutttty 2024-01-17 17:30:51 +07:00
parent f67c32209e
commit cd307bc0a8
5 changed files with 272 additions and 59 deletions

View file

@ -152,6 +152,7 @@ function validateForm() {
if (property.value && typeof property.value.validate === "function") {
const isValid = property.value.validate();
hasError.push(isValid);
}
}
}
@ -160,6 +161,7 @@ function validateForm() {
onSubmit();
} else {
console.log("ไม่ผ่าน ");
console.log(formData)
}
}
@ -346,7 +348,7 @@ function onclickViewinfo(id: string) {
/**
* modal
* @param modal false
* @param modal false
*/
function updatemodalPersonal(modal: boolean) {
modalPersonal.value = modal;
@ -598,7 +600,7 @@ onMounted(() => {
:readonly="isReadonly"
hide-bottom-space
v-model="formData.title"
:rules="[(val) => !!val || 'กรุณาการข้อมูล']"
:rules="[(val) => !!val || 'กรุณากรอกเรื่องร้องเรียน']"
lazy-rules
label="เรื่องร้องเรียน"
type="textarea"
@ -689,6 +691,7 @@ onMounted(() => {
option-value="id"
option-label="name"
emit-value
clearable
hide-bottom-space
map-options
@update:model-value="
@ -740,6 +743,13 @@ onMounted(() => {
>
</q-icon>
</template>
<template v-if="formData.dateConsideration && !isReadonly" v-slot:append>
<q-icon
name="cancel"
@click.stop.prevent="formData.dateConsideration = null"
class="cursor-pointer"
/>
</template>
</q-input>
</template>
</datepicker>
@ -761,6 +771,7 @@ onMounted(() => {
emit-value
hide-bottom-space
map-options
clearable
@update:model-value="changeFormData()"
/>
</div>
@ -807,6 +818,14 @@ onMounted(() => {
>
</q-icon>
</template>
<template v-if="formData.dateNotification && !isReadonly" v-slot:append>
<q-icon
name="cancel"
@click.stop.prevent="formData.dateNotification = null"
class="cursor-pointer"
/>
</template>
</q-input>
</template>
</datepicker>
@ -827,6 +846,7 @@ onMounted(() => {
option-label="name"
hide-bottom-space
emit-value
clearable
map-options
@update:model-value="changeFormData()"
/>