fix:add fiedl email phone
This commit is contained in:
parent
6d6ad6ef52
commit
2b3df6368c
2 changed files with 44 additions and 2 deletions
|
|
@ -48,6 +48,8 @@ const formData = reactive({
|
||||||
system: "user",
|
system: "user",
|
||||||
fileAttachments: [] as File[],
|
fileAttachments: [] as File[],
|
||||||
menu: "",
|
menu: "",
|
||||||
|
email: "",
|
||||||
|
phone: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
/** ฟังก์ชันบันทึกข้อมูล */
|
/** ฟังก์ชันบันทึกข้อมูล */
|
||||||
|
|
@ -61,6 +63,8 @@ function onSubmit() {
|
||||||
system: formData.system,
|
system: formData.system,
|
||||||
menu: formData.menu,
|
menu: formData.menu,
|
||||||
org: orgName.value,
|
org: orgName.value,
|
||||||
|
email: formData.email,
|
||||||
|
phone: formData.phone,
|
||||||
};
|
};
|
||||||
|
|
||||||
const res = await http.post(config.API.orgIssues, payload);
|
const res = await http.post(config.API.orgIssues, payload);
|
||||||
|
|
@ -175,6 +179,8 @@ function onClose() {
|
||||||
formData.title = "";
|
formData.title = "";
|
||||||
formData.description = "";
|
formData.description = "";
|
||||||
formData.fileAttachments = [];
|
formData.fileAttachments = [];
|
||||||
|
formData.email = "";
|
||||||
|
formData.phone = "";
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -308,6 +314,42 @@ function onClose() {
|
||||||
</template>
|
</template>
|
||||||
</q-uploader>
|
</q-uploader>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="row col-12 q-col-gutter-sm">
|
||||||
|
<div class="col-xs-12 col-md-6 col-lg-6">
|
||||||
|
<q-input
|
||||||
|
dense
|
||||||
|
outlined
|
||||||
|
label="อีเมลติดต่อกลับ"
|
||||||
|
v-model="formData.email"
|
||||||
|
class="inputgreen"
|
||||||
|
hide-bottom-space
|
||||||
|
:rules="[
|
||||||
|
() =>
|
||||||
|
!!formData.email ||
|
||||||
|
!!formData.phone ||
|
||||||
|
'กรุณากรอกอีเมลหรือเบอร์โทรติดต่อกลับ',
|
||||||
|
]"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-12 col-md-6 col-lg-6">
|
||||||
|
<q-input
|
||||||
|
dense
|
||||||
|
outlined
|
||||||
|
label="เบอร์โทรติดต่อกลับ"
|
||||||
|
v-model="formData.phone"
|
||||||
|
class="inputgreen"
|
||||||
|
hide-bottom-space
|
||||||
|
:rules="[
|
||||||
|
() =>
|
||||||
|
!!formData.email ||
|
||||||
|
!!formData.phone ||
|
||||||
|
'กรุณากรอกอีเมลหรือเบอร์โทรติดต่อกลับ',
|
||||||
|
]"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -540,7 +540,7 @@ watch(
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-close-popup @click.prevent="modalDebug = true">
|
<q-item clickable v-close-popup @click.prevent="modalDebug = true">
|
||||||
<q-item-section avatar style="min-width: 30px">
|
<q-item-section avatar style="min-width: 30px">
|
||||||
<q-icon color="warning" size="18px" name="mdi-bug" />
|
<q-icon color="yellow-8" size="18px" name="mdi-bug" />
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section
|
<q-item-section
|
||||||
><q-item-label
|
><q-item-label
|
||||||
|
|
@ -610,7 +610,7 @@ watch(
|
||||||
@click.prevent="modalDebug = true"
|
@click.prevent="modalDebug = true"
|
||||||
>
|
>
|
||||||
<q-item-section avatar style="min-width: 30px">
|
<q-item-section avatar style="min-width: 30px">
|
||||||
<q-icon color="warning" size="18px" name="mdi-bug" />
|
<q-icon color="yellow-8" size="18px" name="mdi-bug" />
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section
|
<q-item-section
|
||||||
><q-item-label
|
><q-item-label
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue