工单
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)
|
||||
|
||||
@@ -25,11 +25,17 @@
|
||||
<span class="card-right">{{ data.groupName }}</span>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card" v-if="data.eventSource == 0 || data.eventSource == 1">
|
||||
<span class="card-left">所属网格</span>
|
||||
<span class="card-right">{{ data.girdName }}</span>
|
||||
</div>
|
||||
|
||||
<div class="card" v-else>
|
||||
<span class="card-left">所属群聊</span>
|
||||
<span class="card-right">{{ data.wxGroupName }}</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<span class="card-left">联系方式</span>
|
||||
<span class="card-right">
|
||||
@@ -355,9 +361,9 @@ uni-page-body {
|
||||
}
|
||||
|
||||
img {
|
||||
width: 225px;
|
||||
height: 226px;
|
||||
margin-right: 8px;
|
||||
width: 220px;
|
||||
height: 220px;
|
||||
margin: 0 8px 8px 0;
|
||||
}
|
||||
|
||||
img:nth-of-type(3n) {
|
||||
|
||||
Reference in New Issue
Block a user