巡查上报

This commit is contained in:
liuye
2023-11-08 17:28:40 +08:00
parent f27614c946
commit 6079f881b1

View File

@@ -15,7 +15,7 @@
<span @click="toMap" class="right-span" :style="forms.mapInfo.address ? '' : 'color:#999;'">{{ forms.mapInfo.address || '请选择上报位置' }}</span>
</u-form-item>
<u-form-item label="所属网格" prop="girdName" required :border-bottom="false">
<AiPagePicker type="gird" v-model="forms.girdId" @change="confirmGird" valueObj nodeKey="id" formType="2" class="right-span">
<AiPagePicker type="gird" @select="confirmGird" valueObj nodeKey="id" formType="2" class="right-span">
<AiMore v-model="forms.girdName" placeholder="请选择所属网格"/>
</AiPagePicker>
</u-form-item>
@@ -73,15 +73,15 @@ export default {
},
onLoad() {
this.typeList()
this.forms.girdId = this.user.girdId
this.forms.girdName = this.user.girdName
this.forms.girdMemberId = this.user.girdMemberId
this.forms.girdMemberName = this.user.name
},
onShow() {
document.title = '巡查添加'
this.forms.name = this.user.name
this.forms.phone = this.user.phone
this.forms.girdId = this.user.girdId
this.forms.girdName = this.user.girdName
this.forms.girdMemberId = this.user.girdMemberId
this.forms.girdMemberName = this.user.name
uni.$on('chooseLat', res => {
this.forms.mapInfo = {...res}
})