工单
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user