fix:add fiedl email phone
This commit is contained in:
parent
ac6c1583ee
commit
d7c96afe29
2 changed files with 43 additions and 1 deletions
|
|
@ -37,6 +37,8 @@ const formData = reactive({
|
|||
system: 'checkin',
|
||||
fileAttachments: [] as File[],
|
||||
menu: '',
|
||||
email: '',
|
||||
phone: '',
|
||||
})
|
||||
|
||||
/** ฟังก์ชันบันทึกข้อมูล */
|
||||
|
|
@ -50,6 +52,8 @@ function onSubmit() {
|
|||
system: formData.system,
|
||||
menu: formData.menu,
|
||||
org: orgName.value,
|
||||
email: formData.email,
|
||||
phone: formData.phone,
|
||||
}
|
||||
|
||||
const res = await http.post(config.API.orgIssues, payload)
|
||||
|
|
@ -164,6 +168,8 @@ function onClose() {
|
|||
formData.title = ''
|
||||
formData.description = ''
|
||||
formData.fileAttachments = []
|
||||
formData.email = ''
|
||||
formData.phone = ''
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
@ -297,6 +303,42 @@ function onClose() {
|
|||
</template>
|
||||
</q-uploader>
|
||||
</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>
|
||||
</q-card-section>
|
||||
|
||||
|
|
|
|||
|
|
@ -501,7 +501,7 @@ onMounted(async () => {
|
|||
<q-item clickable @click="modalDebug = true">
|
||||
<q-item-section avatar>
|
||||
<q-avatar
|
||||
color="warning"
|
||||
color="yellow-8"
|
||||
text-color="white"
|
||||
icon="mdi-bug"
|
||||
size="24px"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue