Commit d938d855 authored by wuqinghua's avatar wuqinghua

Merge remote-tracking branch 'origin/master'

parents a1ac9bf0 f9b6e31c
...@@ -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
...@@ -76,11 +76,11 @@ ...@@ -76,11 +76,11 @@
> >
{{ deviceData.stationAddr || "-" }} {{ deviceData.stationAddr || "-" }}
</div> </div>
<div v-else>-</div> <div v-else class="right last zzz">-</div>
</div> </div>
</div> </div>
<div class="top-right"> <div class="top-right">
<el-image <el-image
v-if="deviceData.pictureAddress" v-if="deviceData.pictureAddress"
style="width: 100px; height: 100px" style="width: 100px; height: 100px"
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
background-color: rgba(9, 18, 32, 0.6); background-color: rgba(9, 18, 32, 0.6);
padding: 10px; padding: 10px;
position: relative; position: relative;
width: 600px; width: 500px;
.title { .title {
// padding-top: 10px; // padding-top: 10px;
// padding-left: 10px; // padding-left: 10px;
...@@ -258,7 +258,7 @@ export default { ...@@ -258,7 +258,7 @@ export default {
border: 1px solid #cccccc; border: 1px solid #cccccc;
box-sizing: border-box; box-sizing: border-box;
.top-left { .top-left {
flex: 1; flex: 1.8;
.group { .group {
height: 40px; height: 40px;
flex: 1; flex: 1;
...@@ -283,6 +283,9 @@ export default { ...@@ -283,6 +283,9 @@ export default {
text-align: right; text-align: right;
background-color: rgba(255, 255, 255, 0.1); background-color: rgba(255, 255, 255, 0.1);
} }
.right {
flex:2;
}
} }
} }
.top-right { .top-right {
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</div> </div>
</div> </div>
<div class="top-right"> <div class="top-right">
<el-image <el-image
v-if="deviceData.iconUrl" v-if="deviceData.iconUrl"
style="width: 100px; height: 100px" style="width: 100px; height: 100px"
...@@ -220,7 +220,7 @@ export default { ...@@ -220,7 +220,7 @@ export default {
background-color: rgba(9, 18, 32, 0.6); background-color: rgba(9, 18, 32, 0.6);
padding: 10px; padding: 10px;
position: relative; position: relative;
width: 600px; width: 500px;
.title { .title {
// padding-top: 10px; // padding-top: 10px;
// padding-left: 10px; // padding-left: 10px;
...@@ -241,7 +241,7 @@ export default { ...@@ -241,7 +241,7 @@ export default {
border: 1px solid #cccccc; border: 1px solid #cccccc;
box-sizing: border-box; box-sizing: border-box;
.top-left { .top-left {
flex: 1; flex: 1.8;
.group { .group {
height: 40px; height: 40px;
flex: 1; flex: 1;
...@@ -266,6 +266,9 @@ export default { ...@@ -266,6 +266,9 @@ export default {
text-align: right; text-align: right;
background-color: rgba(255, 255, 255, 0.1); background-color: rgba(255, 255, 255, 0.1);
} }
.right {
flex:2;
}
} }
} }
.top-right { .top-right {
......
<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;
this.form = this.handleList[this.handleList.length-1] if(this.handleList.length>0){
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 {
/*滚动条整体样式*/ /*滚动条整体样式*/
......
...@@ -14,12 +14,14 @@ router.beforeEach((to, from, next) => { ...@@ -14,12 +14,14 @@ router.beforeEach((to, from, next) => {
NProgress.start(); NProgress.start();
// 如果cookie里有token // 如果cookie里有token
if (getToken()) { if (getToken()) {
/* has token*/ /* has token*/
// 如果要去login,就直接去默认页面 // 如果要去login,就直接去默认页面
if (to.path === "/login") { if (to.path === "/login") {
next({ path: "/" }); next({ path: "/" });
NProgress.done(); NProgress.done();
} else { } else {
console.log("有");
// 如果没有获得当前用户的所有信息 // 如果没有获得当前用户的所有信息
if (store.getters.roles.length === 0) { if (store.getters.roles.length === 0) {
// 判断当前用户是否已拉取完user_info信息 // 判断当前用户是否已拉取完user_info信息
......
...@@ -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]);
} }
// 普通调用方法 // 普通调用方法
// 设备报警 // 设备报警
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-03-25 13:46:23 * @Date: 2022-03-25 13:46:23
* @LastEditTime: 2022-03-25 17:18:05 * @LastEditTime: 2022-04-09 10:38:14
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/operationMonitor/monitorData/component/charsData.vue * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/operationMonitor/monitorData/component/charsData.vue
...@@ -30,15 +30,27 @@ ...@@ -30,15 +30,27 @@
<div class="middle flex"> <div class="middle flex">
<div class="first">正常</div> <div class="first">正常</div>
<div>高爆</div> <!-- 2是探测器,探测器只有报警,没有高低报 -->
<div>低爆</div> <template v-if="index != 2">
<div>高报</div>
<div>低报</div>
</template>
<template v-else>
<div>报警</div>
</template>
<div class="last">离线数</div> <div class="last">离线数</div>
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
<div class="first">1234</div> <div class="first">1234</div>
<div>1234</div> <!-- 2是探测器,探测器只有报警,没有高低报 -->
<div>1231</div> <template v-if="index != 2">
<div>123321</div>
<div>12321</div>
</template>
<template v-else>
<div>12312</div>
</template>
<div class="last">534534</div> <div class="last">534534</div>
</div> </div>
</div> </div>
...@@ -49,10 +61,10 @@ ...@@ -49,10 +61,10 @@
<script> <script>
export default { export default {
name: "charsData", name: "charsData",
props:{ props: {
cardList:{ cardList: {
type:Array, type: Array,
} },
}, },
data() { data() {
return { return {
...@@ -63,9 +75,8 @@ export default { ...@@ -63,9 +75,8 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.top-card { .top-card {
margin-bottom:22px; margin-bottom: 22px;
& > div { & > div {
flex: 1; flex: 1;
margin-right: 20px; margin-right: 20px;
...@@ -141,6 +152,4 @@ export default { ...@@ -141,6 +152,4 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
</style> </style>
\ No newline at end of file
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