This commit is contained in:
liuye
2024-08-15 11:09:25 +08:00
parent de76c5bcb9
commit cd4529c172
2 changed files with 16 additions and 5 deletions

View File

@@ -81,6 +81,7 @@ export default {
this.id = option.id
this.typeList()
if(this.id) {
this.forms.id = this.id
this.getDetail()
}
},
@@ -156,10 +157,14 @@ export default {
return this.$u.toast('请输入手机号')
}
this.flag = true
this.$http.post(`/app/apppatrolreportinfov2/addByGirdMember`, {...this.forms, ...this.forms.mapInfo}).then((res) => {
var url = this.id ? '/app/apppatrolreportinfov2/update' : '/app/apppatrolreportinfov2/addByGirdMember'
this.$http.post(`${url}`, {...this.forms, ...this.forms.mapInfo}).then((res) => {
if (res.code == 0) {
this.$u.toast('上报成功')
uni.$emit('getListInit')
if(this.id) {
uni.$emit('updateDeatil')
}
setTimeout(() => {
uni.navigateBack()
}, 600)