แก้ไขฟอร์มกรรมการในวินัย

This commit is contained in:
Warunee Tamkoo 2023-11-06 11:38:31 +07:00
parent b6084f2c1b
commit f2bf2f9016
5 changed files with 0 additions and 30 deletions

View file

@ -28,7 +28,6 @@ const formData = reactive<FormData>({
lastname: "",
position: "",
phone: "",
responsibilities: "",
email: "",
});
@ -39,7 +38,6 @@ watch(props.data, async () => {
formData.lastname = props.data.lastname;
formData.position = props.data.position;
formData.phone = props.data.phone;
formData.responsibilities = props.data.responsibilities;
formData.email = props.data.email;
});
@ -56,7 +54,6 @@ const firstnameRef = ref<object | null>(null);
const lastnameRef = ref<object | null>(null);
const positionRef = ref<object | null>(null);
const phoneRef = ref<object | null>(null);
const responsibilitiesRef = ref<object | null>(null);
const emailRef = ref<object | null>(null);
const formRef: FormRef = {
prefix: prefixRef,
@ -64,7 +61,6 @@ const formRef: FormRef = {
lastname: lastnameRef,
position: positionRef,
phone: phoneRef,
responsibilities: responsibilitiesRef,
email: emailRef,
};
@ -172,17 +168,6 @@ function onValidate() {
:rules="[(val: string) => !!val || `${'กรุณากรอกเบอร์โทร'}`]"
/>
</div>
<div class="col-3">
<q-input
dense
outlined
v-model="formData.responsibilities"
label="หน้าที่"
ref="responsibilitiesRef"
for="responsibilitiesRef"
:rules="[(val: string) => !!val || `${'กรุณากรอกหน้าที่'}`]"
/>
</div>
<div class="col-3">
<q-input
dense

View file

@ -26,14 +26,12 @@ onMounted(() => {
{
name: "นางเกสินี เจียรสุมัย",
position: "ครู",
responsibilities: "ประธาน",
email: "e@email.com",
phone: "0800808080",
},
{
name: "นายสรวิชญ์ พลสิทธิ์",
position: "ทดลองงาน",
responsibilities: "เลขานุการ",
email: "g@gmail.com",
phone: "0614565145",
},

View file

@ -4,7 +4,6 @@ interface FormData {
lastname: string;
position: string;
phone: string;
responsibilities: string;
email: string;
}
interface FormRef {
@ -13,7 +12,6 @@ interface FormRef {
lastname: object | null;
position: object | null;
phone: object | null;
responsibilities: object | null;
email: object | null;
[key: string]: any;
}

View file

@ -1,7 +1,6 @@
interface DirectorRows {
name: string;
position: string;
responsibilities: string;
email: string;
phone: string;
}

View file

@ -12,7 +12,6 @@ export const useDisciplineDirectorDataStore = defineStore(
"no",
"name",
"position",
"responsibilities",
"email",
"phone",
]);
@ -46,15 +45,6 @@ export const useDisciplineDirectorDataStore = defineStore(
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "responsibilities",
align: "left",
label: "หน้าที่",
sortable: true,
field: "responsibilities",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "email",
align: "left",