修复bug
This commit is contained in:
@@ -152,6 +152,7 @@ import moment from 'moment/moment'
|
||||
// 选中的房屋/项目名称
|
||||
const houseName = ref('')
|
||||
const houseId = ref('')
|
||||
const residentId = ref('')
|
||||
const projectName = ref('')
|
||||
const projectId = ref('')
|
||||
|
||||
@@ -304,6 +305,7 @@ onLoad(() => {
|
||||
uni.$on('selectHouse', (data) => {
|
||||
houseName.value = data.name
|
||||
houseId.value = data.id
|
||||
residentId.value = data.residentId
|
||||
})
|
||||
uni.$on('selectProject', (data) => {
|
||||
projectName.value = data.name
|
||||
@@ -407,7 +409,7 @@ const submitForm = async () => {
|
||||
maintenanceItemId: projectId.value,
|
||||
item: form.value.title,
|
||||
problem: form.value.desc,
|
||||
residentId: userId,
|
||||
residentId: residentId.value,
|
||||
orderDate: form.value.datetime,
|
||||
phone: form.value.phone,
|
||||
problemImageUrl: imageUrls.join(','),
|
||||
@@ -423,6 +425,7 @@ const submitForm = async () => {
|
||||
form.value = { title: '', desc: '', phone: '', datetime: '', images: [] }
|
||||
houseName.value = ''
|
||||
houseId.value = ''
|
||||
residentId.value = ''
|
||||
projectName.value = ''
|
||||
projectId.value = ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user