编辑
This commit is contained in:
@@ -78,7 +78,11 @@ export default {
|
|||||||
this.forms.girdMemberId = this.user.girdMemberId
|
this.forms.girdMemberId = this.user.girdMemberId
|
||||||
this.forms.girdMemberName = this.user.name
|
this.forms.girdMemberName = this.user.name
|
||||||
this.eventSource = option.eventSource
|
this.eventSource = option.eventSource
|
||||||
|
this.id = option.id
|
||||||
this.typeList()
|
this.typeList()
|
||||||
|
if(this.id) {
|
||||||
|
this.getDetail()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '添加上报'
|
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) {
|
selectStatus(e) {
|
||||||
this.forms.groupName = e[0].label
|
this.forms.groupName = e[0].label
|
||||||
this.forms.groupId = e[0].value
|
this.forms.groupId = e[0].value
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ export default {
|
|||||||
component: 'List',
|
component: 'List',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
img: require('./components/img/handle-icon.png'),
|
img: require('./components/img/history-icon.png'),
|
||||||
activeImg: require('./components/img/handle-icon-active.png'),
|
activeImg: require('./components/img/history-icon-active.png'),
|
||||||
text: '历史',
|
text: '历史',
|
||||||
component: 'List',
|
component: 'List',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<div class="names">{{ data.name }}的上报</div>
|
<div class="names">{{ data.name }}的上报</div>
|
||||||
|
|
||||||
<div class="times">{{ data.createTime }}</div>
|
<div class="times">{{ data.createTime }}</div>
|
||||||
|
<span class="edit-btn" @click="toEdit()" v-if="data.eventStatus != 2 && data.eventStatus != 3">编辑</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -222,6 +223,9 @@ export default {
|
|||||||
current: img
|
current: img
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
toEdit() {
|
||||||
|
uni.navigateTo({url: `./Add?id=${this.id}&eventSource=${this.data.eventSource}`})
|
||||||
|
},
|
||||||
formatName(name) {
|
formatName(name) {
|
||||||
if (name == undefined) {
|
if (name == undefined) {
|
||||||
return
|
return
|
||||||
@@ -271,6 +275,17 @@ uni-page-body {
|
|||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.edit-btn {
|
||||||
|
position: absolute;
|
||||||
|
color: #197df0;
|
||||||
|
top: 32px;
|
||||||
|
right: 32px;
|
||||||
|
width: 150px;
|
||||||
|
height: 44px;
|
||||||
|
line-height: 44px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/project/biaopin/AppWorkOrder/components/img/history-icon.png
Normal file
BIN
src/project/biaopin/AppWorkOrder/components/img/history-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Reference in New Issue
Block a user