编辑
This commit is contained in:
@@ -78,7 +78,11 @@ export default {
|
||||
this.forms.girdMemberId = this.user.girdMemberId
|
||||
this.forms.girdMemberName = this.user.name
|
||||
this.eventSource = option.eventSource
|
||||
this.id = option.id
|
||||
this.typeList()
|
||||
if(this.id) {
|
||||
this.getDetail()
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = '添加上报'
|
||||
@@ -100,6 +104,25 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/apppatrolreportinfov2/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res?.data) {
|
||||
this.forms = res.data
|
||||
this.forms.mapInfo = {
|
||||
lat: res.data.lat,
|
||||
lng: res.data.lng,
|
||||
address: res.data.address,
|
||||
}
|
||||
// var list = this.$dict.getDict('xbotReportEventType')
|
||||
// this.typeList.map((item) => {
|
||||
// if(item.dictValue == res.data.type) {
|
||||
// this.forms.typeName = item.dictName
|
||||
// }
|
||||
// })
|
||||
this.selectGird = { girdId: res.data.girdId|| '', girdName: res.data.girdName || ''}
|
||||
}
|
||||
})
|
||||
},
|
||||
selectStatus(e) {
|
||||
this.forms.groupName = e[0].label
|
||||
this.forms.groupId = e[0].value
|
||||
|
||||
Reference in New Issue
Block a user