Commit ac78c3c8 authored by zhangjianqian's avatar zhangjianqian

应急处置部分问题,以及调整样式

parent 19e752f0
...@@ -78,6 +78,16 @@ public class TEventReceive extends BaseEntity ...@@ -78,6 +78,16 @@ public class TEventReceive extends BaseEntity
@Excel(name = "状态") @Excel(name = "状态")
private Integer status; private Integer status;
private TEventHandle handleList;
public TEventHandle getHandleList() {
return handleList;
}
public void setHandleList(TEventHandle handleList) {
this.handleList = handleList;
}
public Integer getCompanyRead() { public Integer getCompanyRead() {
return companyRead; return companyRead;
} }
......
...@@ -58,4 +58,6 @@ public interface TEventHandleMapper ...@@ -58,4 +58,6 @@ public interface TEventHandleMapper
* @return 结果 * @return 结果
*/ */
public int deleteTEventHandleByIds(Long[] handleIds); public int deleteTEventHandleByIds(Long[] handleIds);
public TEventHandle selectByLast(int eventId);
} }
...@@ -5,6 +5,8 @@ import java.util.List; ...@@ -5,6 +5,8 @@ import java.util.List;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.zehong.common.utils.DateUtils; import com.zehong.common.utils.DateUtils;
import com.zehong.system.controller.WebSocketController; import com.zehong.system.controller.WebSocketController;
import com.zehong.system.domain.TEventHandle;
import com.zehong.system.mapper.TEventHandleMapper;
import com.zehong.system.service.WebSocketServer; import com.zehong.system.service.WebSocketServer;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -26,6 +28,8 @@ public class TEventReceiveServiceImpl implements ITEventReceiveService ...@@ -26,6 +28,8 @@ public class TEventReceiveServiceImpl implements ITEventReceiveService
@Autowired @Autowired
private TEventReceiveMapper tEventReceiveMapper; private TEventReceiveMapper tEventReceiveMapper;
@Autowired @Autowired
private TEventHandleMapper tEventHandleMapper;
@Autowired
private WebSocketServer webSocketServer; private WebSocketServer webSocketServer;
/** /**
...@@ -49,7 +53,12 @@ public class TEventReceiveServiceImpl implements ITEventReceiveService ...@@ -49,7 +53,12 @@ public class TEventReceiveServiceImpl implements ITEventReceiveService
@Override @Override
public List<TEventReceive> selectTEventReceiveList(TEventReceive tEventReceive) public List<TEventReceive> selectTEventReceiveList(TEventReceive tEventReceive)
{ {
return tEventReceiveMapper.selectTEventReceiveList(tEventReceive); List<TEventReceive> list = tEventReceiveMapper.selectTEventReceiveList(tEventReceive);
for (TEventReceive t:list){
TEventHandle h = tEventHandleMapper.selectByLast(t.getId());
t.setHandleList(h);
}
return list;
} }
/** /**
......
...@@ -102,4 +102,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -102,4 +102,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{handleId} #{handleId}
</foreach> </foreach>
</delete> </delete>
<select id="selectByLast" resultMap="TEventHandleResult">
SELECT * FROM t_event_handle WHERE is_del=0 and event_id =#{eventId}
order by create_time desc limit 1
</select>
</mapper> </mapper>
\ No newline at end of file
<template> <template>
<ul class="timeline-wrapper"> <ul class="timeline-wrapper">
<li class="timeline-item" > <li class="timeline-item" style="margin-top: 10px;">
<div class="timeline-box"> <div class="timeline-box">
<div class="out-circle"> <div class="out-circle">
<div class="in-circle"></div> <div class="in-circle"></div>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="timeline-content"> <div class="timeline-content">
<div class="timeline-date el-form-div"> <div class="timeline-date el-form-div">
<div style="width: 180px">{{nowItem.createTime}}</div> <div style="width: 180px">{{nowItem.createTime}}</div>
<div >事件发布</div> <div class="classType">事件发布</div>
</div> </div>
<div class="timeline-title">{{ nowItem.eventName}}</div> <div class="timeline-title">{{ nowItem.eventName}}</div>
<div class="timeline-title">地址:{{ nowItem.address}}</div> <div class="timeline-title">地址:{{ nowItem.address}}</div>
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
<div class="timeline-content"> <div class="timeline-content">
<div class="timeline-date el-form-div"> <div class="timeline-date el-form-div">
<div style="width: 180px">{{t.createTime}}</div> <div style="width: 180px">{{t.createTime}}</div>
<div v-if="t.eventType==2">预案指引</div> <div class="classType" v-if="t.eventType==2">预案指引</div>
<div v-if="t.eventType==1">信息处置</div> <div class="classType" v-if="t.eventType==1">信息处置</div>
</div> </div>
<div class="timeline-title">{{ t.management}}</div> <div class="timeline-title">{{ t.management}}</div>
<div class="timeline-desc"> <div class="timeline-desc">
...@@ -82,6 +82,7 @@ ...@@ -82,6 +82,7 @@
/* 时间线 */ /* 时间线 */
.timeline-item { .timeline-item {
position: relative; position: relative;
min-height: 10px;
.timeline-box { .timeline-box {
text-align: center; text-align: center;
...@@ -109,7 +110,7 @@ ...@@ -109,7 +110,7 @@
.long-line { .long-line {
width: 1px; width: 1px;
height: 98px; min-height: 98px;
background: #000000; background: #000000;
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);
opacity: 0.5; opacity: 0.5;
...@@ -120,15 +121,15 @@ ...@@ -120,15 +121,15 @@
.timeline-content { .timeline-content {
box-sizing: border-box; box-sizing: border-box;
margin-left: 20px; margin-left: 20px;
height: 86px; min-height: 86px;
padding: 6px 0 0 20px; padding: 6px 0 0 20px;
text-align: left; text-align: left;
margin-bottom: 30px; margin-bottom: 10px;
.timeline-title { .timeline-title {
font-size: 15px; font-size: 15px;
word-break: break-all; word-break: break-all;
margin-bottom: 16px; margin-bottom: 5px;
color: #000000; color: #000000;
font-weight: 500; font-weight: 500;
/*display: inline;*/ /*display: inline;*/
...@@ -138,7 +139,7 @@ ...@@ -138,7 +139,7 @@
font-size: 13px; font-size: 13px;
color: #000000; color: #000000;
font-weight: 500; font-weight: 500;
margin-bottom: 16px; margin-bottom: 5px;
} }
.timeline-desc { .timeline-desc {
font-size: 14px; font-size: 14px;
...@@ -162,4 +163,10 @@ ...@@ -162,4 +163,10 @@
.timeline-item:last-of-type .timeline-content { .timeline-item:last-of-type .timeline-content {
margin-bottom: 0; margin-bottom: 0;
} }
.classType{
border: 1px solid #1c84c6;
background: #1c84c6;
color: white;
border-radius: 3px;
}
</style> </style>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<div v-if="item.status==4" style="width: 80%;margin-left: 5px;">已完结</div> <div v-if="item.status==4" style="width: 80%;margin-left: 5px;">已完结</div>
<div style="height:30px;color: red;cursor:pointer;" v-if="userType==-2" @click="handleDelete(item.id)">关闭事件</div> <div style="height:30px;color: red;cursor:pointer;" v-if="userType==-2" @click="handleDelete(item.id)">关闭事件</div>
</div> </div>
<div class="content-div el-form-div" style="margin-top: -5px;overflow:hidden;"> <div class="content-div el-form-div" style="margin-top: 10px;overflow:hidden;">
<div style="width: 65%; white-space:nowrap; <div style="width: 65%; white-space:nowrap;
text-overflow:ellipsis; text-overflow:ellipsis;
-o-text-overflow:ellipsis; -o-text-overflow:ellipsis;
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div>事件级别:{{item.eventGradeName}}</div> <div>事件级别:{{item.eventGradeName}}</div>
</div> </div>
<div class="content-div">事件地点:{{item.address}}</div> <div class="content-div">事件地点:{{item.address}}</div>
<div class="content-div">最新进展:</div> <div class="content-div">最新进展:<span v-if="item.handleList!=null">{{item.handleList.management}}</span></div>
<div class="el-form-div"> <div class="el-form-div">
<div v-if="item.status==1 && userType==-2" class="button-div" @click="assignTask(item)">任务指派</div> <div v-if="item.status==1 && userType==-2" class="button-div" @click="assignTask(item)">任务指派</div>
<div v-if="userType==-2" class="button-div" @click="showList(item)" >预案指引</div> <div v-if="userType==-2" class="button-div" @click="showList(item)" >预案指引</div>
...@@ -355,6 +355,7 @@ export default { ...@@ -355,6 +355,7 @@ export default {
//console.log("ggg"+item.eventGrade, this.eventGradeOptions[item.eventGrade-1].dictLabel) //console.log("ggg"+item.eventGrade, this.eventGradeOptions[item.eventGrade-1].dictLabel)
item.eventGradeName = this.eventGradeOptions[item.eventGrade-1].dictLabel; item.eventGradeName = this.eventGradeOptions[item.eventGrade-1].dictLabel;
item.eventTypeName = this.eventTypeOptions[item.eventType-1].dictLabel; item.eventTypeName = this.eventTypeOptions[item.eventType-1].dictLabel;
console.log(item)
}); });
//this.total = response.total; //this.total = response.total;
//console.log(this.receiveList) //console.log(this.receiveList)
...@@ -365,7 +366,9 @@ export default { ...@@ -365,7 +366,9 @@ export default {
this.loading = true; this.loading = true;
listHandle(this.queryParams2).then(response => { listHandle(this.queryParams2).then(response => {
this.handleList = response.rows; this.handleList = response.rows;
if(this.handleList.length>0){
this.form = this.handleList[this.handleList.length-1] this.form = this.handleList[this.handleList.length-1]
}
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
//document.getElementsByClassName("num-div")[this.handleList.length].setAttribute("class","num-div2") //document.getElementsByClassName("num-div")[this.handleList.length].setAttribute("class","num-div2")
...@@ -551,12 +554,12 @@ export default { ...@@ -551,12 +554,12 @@ export default {
that.queryParams2.pageSize=100; that.queryParams2.pageSize=100;
await listHandle(that.queryParams2).then(response => { await listHandle(that.queryParams2).then(response => {
this.handleList = response.rows; this.handleList = response.rows;
if(response.total==0){ // if(response.total==0){
this.msgSuccess("暂无详情"); // this.msgSuccess("暂无详情");
}else{ // }else{
document.getElementById("detail").style.display=""; document.getElementById("detail").style.display="";
that.updateRead(id); that.updateRead(id);
} //}
}); });
}, },
closeDetail(id,event){ closeDetail(id,event){
...@@ -658,8 +661,8 @@ export default { ...@@ -658,8 +661,8 @@ export default {
.content-div{ .content-div{
color: #000000; color: #000000;
font-size: 30; font-size: 30;
height: 40px; height: 30px;
line-height: 50px; line-height: 30px;
margin-left: 10px; margin-left: 10px;
} }
.el-form-div{ .el-form-div{
...@@ -690,8 +693,9 @@ export default { ...@@ -690,8 +693,9 @@ export default {
border-bottom: 2px solid #1c84c6; border-bottom: 2px solid #1c84c6;
border-top: 1px solid #1c84c6; border-top: 1px solid #1c84c6;
height: 30px; height: 30px;
color: #000; color: #ffffff;
line-height: 30px; line-height: 30px;
background: #74BCFF;
} }
.test-5::-webkit-scrollbar { .test-5::-webkit-scrollbar {
/*滚动条整体样式*/ /*滚动条整体样式*/
......
...@@ -735,7 +735,7 @@ export class EditorMap { ...@@ -735,7 +735,7 @@ export class EditorMap {
} }
} }
setZoomAndCenter(longitude,latitude){ setZoomAndCenter(longitude,latitude){
this.map.setZoomAndCenter(14, [longitude*1+0.02,latitude]); this.map.setZoomAndCenter(14.5, [longitude*1+0.02,latitude]);
} }
// 普通调用方法 // 普通调用方法
// 设备报警 // 设备报警
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment