bug修复

This commit is contained in:
francis_fh
2025-12-08 21:20:33 +08:00
parent bc48d7fff0
commit 16d1e50c85
4 changed files with 28 additions and 6 deletions

View File

@@ -216,6 +216,14 @@
v-model="contact.name"
/>
</view>
<view class="form-group">
<view class="label">职位</view>
<input
class="input"
placeholder="请输入职位"
v-model="contact.position"
/>
</view>
<view class="form-group">
<view class="label">联系电话</view>
<input
@@ -280,6 +288,7 @@ const formData = reactive({
contacts: [
{
name: '',
position: '',
phone: ''
}
]
@@ -504,6 +513,7 @@ const addContact = () => {
if (formData.contacts.length < 3) {
formData.contacts.push({
name: '',
position: '',
phone: ''
});
}
@@ -653,7 +663,11 @@ const publishJob = async () => {
jobCategory: formData.jobCategory,
companyId: formData.companyId,
companyName: formData.companyName,
jobContactList: formData.contacts.filter(contact => contact.name.trim() && contact.phone.trim()),
jobContactList: formData.contacts.filter(contact => contact.name.trim() && contact.phone.trim()).map(contact => ({
contactPerson: contact.name,
contactPersonPhone: contact.phone,
position: contact.position
})),
filesList: formData.images.map(image => ({ bussinessid: image.bussinessid })) // 新增岗位图片列表使用bussinessid
};