This commit is contained in:
liuye
2024-08-15 10:16:00 +08:00
parent aac3fe97c4
commit de76c5bcb9
5 changed files with 40 additions and 2 deletions

View File

@@ -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