|
@@ -23,14 +23,14 @@
|
|
|
<dt>
|
|
|
<span style="width: 40px;text-align: center;padding-left: 1%;">类型</span>
|
|
|
<span style="width: 128px;text-indent: 20px;padding-left: 3%;">事件名称</span>
|
|
|
- <span style="width: 128px;text-align: center;">事件描述</span>
|
|
|
+ <span style="width: 128px;text-align: center;">发生时间</span>
|
|
|
</dt>
|
|
|
<div class="hei_scroll hei56">
|
|
|
<dd v-for="(e,idx) in deviceListSearch" :key="idx" @click="getEventDetail(e.eventId,e.latitude,e.longitude)">
|
|
|
<img :src="e.eventSource == 'artificial' ? require('@/assets/images/artificialIcon.png') : require('@/assets/images/deviceIcon.png') " style="display: inline-block;margin: 3% 0% 0% 4%;;width: 20px;height: 20px;">
|
|
|
<span style="width: 128px;text-wrap: nowrap;overflow: hidden;text-overflow: ellipsis;padding-left: 3%;" :title="e.eventTitle">{{ e.eventTitle }}</span>
|
|
|
- <span style="width: 128px;text-wrap: nowrap;overflow: hidden;text-overflow: ellipsis;padding-left: 4%;" :title="e.eventDescription">
|
|
|
- {{ e.eventDescription }}
|
|
|
+ <span style="width: 128px;text-wrap: nowrap;overflow: hidden;text-overflow: ellipsis;padding-left: 4%;" :title="e.createTime">
|
|
|
+ {{ e.createTime }}
|
|
|
</span>
|
|
|
</dd>
|
|
|
</div>
|
|
@@ -44,7 +44,17 @@
|
|
|
:total="deviceTotal">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
- <div class="setEmergencyEvent" @click="setEmergencyEvent">发起应急事件</div>
|
|
|
+ <el-popover
|
|
|
+ placement="right"
|
|
|
+ width="160"
|
|
|
+ trigger="click"
|
|
|
+ v-model="visible">
|
|
|
+ <p>请选择经纬度</p>
|
|
|
+ <div style="text-align: right; margin: 0">
|
|
|
+ <el-button type="primary" size="mini" @click="visible = false">确定</el-button>
|
|
|
+ </div>
|
|
|
+ <div class="setEmergencyEvent" slot="reference" @click="getLocation">发起应急事件</div>
|
|
|
+ </el-popover>
|
|
|
<div class="visual-body">
|
|
|
<!--弹框演示模板 开始-->
|
|
|
<!-- <img src="../assets/images/sentinel/hz_qy.png" class="qydw1"/>
|
|
@@ -441,7 +451,8 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- deptOptionsLiandong: [],
|
|
|
+ visible: false,
|
|
|
+ deptOptionsLiandong: [],
|
|
|
deptId:null,
|
|
|
isVisible: false, // 初始时设置为false,不显示内容
|
|
|
input:'',
|
|
@@ -539,37 +550,33 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- getLocation() {
|
|
|
- this.visible = !this.visible
|
|
|
- if (!this.dimensionHighlighted) {
|
|
|
- this.$refs.supermap.setIsObtainLaAndLon(this.visible)
|
|
|
- } else {
|
|
|
- this.$refs.supermap.showLatLng = this.visible
|
|
|
- }
|
|
|
- if (!this.visible) {
|
|
|
- this.longitude = ''
|
|
|
- this.latitude = ''
|
|
|
- if (!this.dimensionHighlighted)
|
|
|
- this.$refs.supermap.clearDW()
|
|
|
- else
|
|
|
- this.$refs.supermap.clearP()
|
|
|
- }
|
|
|
- },
|
|
|
- // 获取部门列表树
|
|
|
- getDeptTreeselect(){
|
|
|
- treeselectAll().then((response) => {
|
|
|
- this.deptOptionsLiandong = response.data;
|
|
|
- });
|
|
|
- },
|
|
|
- assetTypeAnImage(filePath) {
|
|
|
- let imageList = []
|
|
|
- if (filePath != null && filePath.length > 0) {
|
|
|
- for (let i = 0; i < filePath.length; i++) {
|
|
|
- imageList.push(filePath)
|
|
|
- }
|
|
|
- }
|
|
|
- return imageList
|
|
|
- },
|
|
|
+ setPositioning(longitude, latitude) {
|
|
|
+ let that = this
|
|
|
+ that.positioning.lon = longitude
|
|
|
+ that.positioning.lat = latitude
|
|
|
+ },
|
|
|
+ getLocation(){
|
|
|
+ // this.visible = true;
|
|
|
+ // this.positioning.lon = ''
|
|
|
+ // this.positioning.lat = ''
|
|
|
+ this.$parent.$refs.supermap.clearDW()
|
|
|
+ this.$parent.$refs.supermap.setIsObtainLaAndLon(true)
|
|
|
+ },
|
|
|
+ // 获取部门列表树
|
|
|
+ getDeptTreeselect(){
|
|
|
+ treeselectAll().then((response) => {
|
|
|
+ this.deptOptionsLiandong = response.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ assetTypeAnImage(filePath) {
|
|
|
+ let imageList = []
|
|
|
+ if (filePath != null && filePath.length > 0) {
|
|
|
+ for (let i = 0; i < filePath.length; i++) {
|
|
|
+ imageList.push(filePath)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return imageList
|
|
|
+ },
|
|
|
handleInput(val){
|
|
|
this.ruleForm.contingencyDetail.eventEarlyWarning = val.replace(/[^0-9]/g, '')
|
|
|
},
|
|
@@ -743,7 +750,13 @@
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- let params = this.reportParams
|
|
|
+ let params = this.reportParams
|
|
|
+ params.attachList=[]
|
|
|
+ if(this.fileList.length>0){
|
|
|
+ this.fileList.forEach((e,idx) => {
|
|
|
+ params.attachList.push({'attachPath':e.url.split("/").slice(3).join("/")})
|
|
|
+ })
|
|
|
+ }
|
|
|
params.eventId = this.eventId
|
|
|
// 修改上报事件信息
|
|
|
updateEventContingencyDetail(params).then(res => {
|
|
@@ -1472,6 +1485,7 @@
|
|
|
}
|
|
|
|
|
|
.setEmergencyEvent{
|
|
|
+ border: none;
|
|
|
width: 122px;
|
|
|
height: 22px;
|
|
|
position: absolute;
|
|
@@ -1515,7 +1529,7 @@
|
|
|
|
|
|
.tk_div{
|
|
|
width: 21%;
|
|
|
- height: 38%;
|
|
|
+ height: 50%;
|
|
|
position: absolute;
|
|
|
top: 24%;
|
|
|
left: 32.2%;
|