巡查上报

This commit is contained in:
liuye
2023-11-07 18:01:29 +08:00
parent a9051a4c75
commit a28050ebbe
6 changed files with 22 additions and 18 deletions

View File

@@ -59,7 +59,9 @@ export default {
girdName: '',
files: [],
name: '',
phone: ''
phone: '',
girdMemberId: '',
girdMemberName: ''
},
flag: false,
show: false,
@@ -78,13 +80,15 @@ export default {
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}
})
},
methods: {
typeList() {
this.$http.post(`/app/apppatrolreportgroup/list`, null, {
this.$http.post(`/app/apppatrolreportgroupv2/list`, null, {
params: {
size: 9999,
},
@@ -128,7 +132,7 @@ export default {
return this.$u.toast('请输入手机号')
}
this.flag = true
this.$http.post(`/app/apppatrolreportinfo/addByGirdMember`, {...this.forms, ...this.forms.mapInfo}).then((res) => {
this.$http.post(`/app/apppatrolreportinfov2/addByGirdMember`, {...this.forms, ...this.forms.mapInfo}).then((res) => {
if (res.code == 0) {
this.$u.toast('事件添加成功')
uni.$emit('getListInit')