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

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

View file

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

View file

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

View file

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

View file

@ -12,7 +12,6 @@ export const useDisciplineDirectorDataStore = defineStore(
"no", "no",
"name", "name",
"position", "position",
"responsibilities",
"email", "email",
"phone", "phone",
]); ]);
@ -46,15 +45,6 @@ export const useDisciplineDirectorDataStore = defineStore(
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "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", name: "email",
align: "left", align: "left",