工单
This commit is contained in:
@@ -81,6 +81,7 @@ export default {
|
|||||||
this.id = option.id
|
this.id = option.id
|
||||||
this.typeList()
|
this.typeList()
|
||||||
if(this.id) {
|
if(this.id) {
|
||||||
|
this.forms.id = this.id
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -156,10 +157,14 @@ export default {
|
|||||||
return this.$u.toast('请输入手机号')
|
return this.$u.toast('请输入手机号')
|
||||||
}
|
}
|
||||||
this.flag = true
|
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) {
|
if (res.code == 0) {
|
||||||
this.$u.toast('上报成功')
|
this.$u.toast('上报成功')
|
||||||
uni.$emit('getListInit')
|
uni.$emit('getListInit')
|
||||||
|
if(this.id) {
|
||||||
|
uni.$emit('updateDeatil')
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}, 600)
|
}, 600)
|
||||||
|
|||||||
@@ -25,11 +25,17 @@
|
|||||||
<span class="card-right">{{ data.groupName }}</span>
|
<span class="card-right">{{ data.groupName }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card">
|
<div class="card" v-if="data.eventSource == 0 || data.eventSource == 1">
|
||||||
<span class="card-left">所属网格</span>
|
<span class="card-left">所属网格</span>
|
||||||
<span class="card-right">{{ data.girdName }}</span>
|
<span class="card-right">{{ data.girdName }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="card" v-else>
|
||||||
|
<span class="card-left">所属群聊</span>
|
||||||
|
<span class="card-right">{{ data.wxGroupName }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<span class="card-left">联系方式</span>
|
<span class="card-left">联系方式</span>
|
||||||
<span class="card-right">
|
<span class="card-right">
|
||||||
@@ -355,9 +361,9 @@ uni-page-body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 225px;
|
width: 220px;
|
||||||
height: 226px;
|
height: 220px;
|
||||||
margin-right: 8px;
|
margin: 0 8px 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
img:nth-of-type(3n) {
|
img:nth-of-type(3n) {
|
||||||
|
|||||||
Reference in New Issue
Block a user