Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety-progress
Commits
ac78c3c8
Commit
ac78c3c8
authored
Apr 07, 2022
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应急处置部分问题,以及调整样式
parent
19e752f0
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
57 additions
and
21 deletions
+57
-21
TEventReceive.java
...src/main/java/com/zehong/system/domain/TEventReceive.java
+10
-0
TEventHandleMapper.java
...ain/java/com/zehong/system/mapper/TEventHandleMapper.java
+2
-0
TEventReceiveServiceImpl.java
.../zehong/system/service/impl/TEventReceiveServiceImpl.java
+10
-1
TEventHandleMapper.xml
...m/src/main/resources/mapper/system/TEventHandleMapper.xml
+4
-0
Timeline.vue
gassafetyprogress-web/src/components/emergency/Timeline.vue
+16
-9
rightBar.vue
gassafetyprogress-web/src/components/emergency/rightBar.vue
+14
-10
yjmap.js
gassafetyprogress-web/src/utils/mapClass/yjmap.js
+1
-1
No files found.
gassafetyprogress-system/src/main/java/com/zehong/system/domain/TEventReceive.java
View file @
ac78c3c8
...
...
@@ -78,6 +78,16 @@ public class TEventReceive extends BaseEntity
@Excel
(
name
=
"状态"
)
private
Integer
status
;
private
TEventHandle
handleList
;
public
TEventHandle
getHandleList
()
{
return
handleList
;
}
public
void
setHandleList
(
TEventHandle
handleList
)
{
this
.
handleList
=
handleList
;
}
public
Integer
getCompanyRead
()
{
return
companyRead
;
}
...
...
gassafetyprogress-system/src/main/java/com/zehong/system/mapper/TEventHandleMapper.java
View file @
ac78c3c8
...
...
@@ -58,4 +58,6 @@ public interface TEventHandleMapper
* @return 结果
*/
public
int
deleteTEventHandleByIds
(
Long
[]
handleIds
);
public
TEventHandle
selectByLast
(
int
eventId
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/TEventReceiveServiceImpl.java
View file @
ac78c3c8
...
...
@@ -5,6 +5,8 @@ import java.util.List;
import
com.alibaba.fastjson.JSONObject
;
import
com.zehong.common.utils.DateUtils
;
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
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -26,6 +28,8 @@ public class TEventReceiveServiceImpl implements ITEventReceiveService
@Autowired
private
TEventReceiveMapper
tEventReceiveMapper
;
@Autowired
private
TEventHandleMapper
tEventHandleMapper
;
@Autowired
private
WebSocketServer
webSocketServer
;
/**
...
...
@@ -49,7 +53,12 @@ public class TEventReceiveServiceImpl implements ITEventReceiveService
@Override
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
;
}
/**
...
...
gassafetyprogress-system/src/main/resources/mapper/system/TEventHandleMapper.xml
View file @
ac78c3c8
...
...
@@ -102,4 +102,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{handleId}
</foreach>
</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>
\ No newline at end of file
gassafetyprogress-web/src/components/emergency/Timeline.vue
View file @
ac78c3c8
<
template
>
<ul
class=
"timeline-wrapper"
>
<li
class=
"timeline-item"
>
<li
class=
"timeline-item"
style=
"margin-top: 10px;"
>
<div
class=
"timeline-box"
>
<div
class=
"out-circle"
>
<div
class=
"in-circle"
></div>
...
...
@@ -10,7 +10,7 @@
<div
class=
"timeline-content"
>
<div
class=
"timeline-date el-form-div"
>
<div
style=
"width: 180px"
>
{{
nowItem
.
createTime
}}
</div>
<div
>
事件发布
</div>
<div
class=
"classType"
>
事件发布
</div>
</div>
<div
class=
"timeline-title"
>
{{
nowItem
.
eventName
}}
</div>
<div
class=
"timeline-title"
>
地址:
{{
nowItem
.
address
}}
</div>
...
...
@@ -26,8 +26,8 @@
<div
class=
"timeline-content"
>
<div
class=
"timeline-date el-form-div"
>
<div
style=
"width: 180px"
>
{{
t
.
createTime
}}
</div>
<div
v-if=
"t.eventType==2"
>
预案指引
</div>
<div
v-if=
"t.eventType==1"
>
信息处置
</div>
<div
class=
"classType"
v-if=
"t.eventType==2"
>
预案指引
</div>
<div
class=
"classType"
v-if=
"t.eventType==1"
>
信息处置
</div>
</div>
<div
class=
"timeline-title"
>
{{
t
.
management
}}
</div>
<div
class=
"timeline-desc"
>
...
...
@@ -82,6 +82,7 @@
/* 时间线 */
.timeline-item
{
position
:
relative
;
min-height
:
10px
;
.timeline-box
{
text-align
:
center
;
...
...
@@ -109,7 +110,7 @@
.long-line
{
width
:
1px
;
height
:
98px
;
min-
height
:
98px
;
background
:
#000000
;
box-shadow
:
0px
4px
12px
0px
rgba
(
0
,
0
,
0
,
0
.1
);
opacity
:
0
.5
;
...
...
@@ -120,15 +121,15 @@
.timeline-content
{
box-sizing
:
border-box
;
margin-left
:
20px
;
height
:
86px
;
min-
height
:
86px
;
padding
:
6px
0
0
20px
;
text-align
:
left
;
margin-bottom
:
3
0px
;
margin-bottom
:
1
0px
;
.timeline-title
{
font-size
:
15px
;
word-break
:
break-all
;
margin-bottom
:
16
px
;
margin-bottom
:
5
px
;
color
:
#000000
;
font-weight
:
500
;
/*display: inline;*/
...
...
@@ -138,7 +139,7 @@
font-size
:
13px
;
color
:
#000000
;
font-weight
:
500
;
margin-bottom
:
16
px
;
margin-bottom
:
5
px
;
}
.timeline-desc
{
font-size
:
14px
;
...
...
@@ -162,4 +163,10 @@
.timeline-item
:last-of-type
.timeline-content
{
margin-bottom
:
0
;
}
.classType
{
border
:
1px
solid
#1c84c6
;
background
:
#1c84c6
;
color
:
white
;
border-radius
:
3px
;
}
</
style
>
gassafetyprogress-web/src/components/emergency/rightBar.vue
View file @
ac78c3c8
...
...
@@ -23,7 +23,7 @@
<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>
<div
class=
"content-div el-form-div"
style=
"margin-top:
-5
px;overflow:hidden;"
>
<div
class=
"content-div el-form-div"
style=
"margin-top:
10
px;overflow:hidden;"
>
<div
style=
"width: 65%; white-space:nowrap;
text-overflow:ellipsis;
-o-text-overflow:ellipsis;
...
...
@@ -35,7 +35,7 @@
<div>
事件级别:
{{
item
.
eventGradeName
}}
</div>
</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
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>
...
...
@@ -355,6 +355,7 @@ export default {
//console.log("ggg"+item.eventGrade, this.eventGradeOptions[item.eventGrade-1].dictLabel)
item
.
eventGradeName
=
this
.
eventGradeOptions
[
item
.
eventGrade
-
1
].
dictLabel
;
item
.
eventTypeName
=
this
.
eventTypeOptions
[
item
.
eventType
-
1
].
dictLabel
;
console
.
log
(
item
)
});
//this.total = response.total;
//console.log(this.receiveList)
...
...
@@ -365,7 +366,9 @@ export default {
this
.
loading
=
true
;
listHandle
(
this
.
queryParams2
).
then
(
response
=>
{
this
.
handleList
=
response
.
rows
;
if
(
this
.
handleList
.
length
>
0
){
this
.
form
=
this
.
handleList
[
this
.
handleList
.
length
-
1
]
}
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
//document.getElementsByClassName("num-div")[this.handleList.length].setAttribute("class","num-div2")
...
...
@@ -551,12 +554,12 @@ export default {
that
.
queryParams2
.
pageSize
=
100
;
await
listHandle
(
that
.
queryParams2
).
then
(
response
=>
{
this
.
handleList
=
response
.
rows
;
if
(
response
.
total
==
0
){
this
.
msgSuccess
(
"暂无详情"
);
}
else
{
//
if(response.total==0){
//
this.msgSuccess("暂无详情");
//
}else{
document
.
getElementById
(
"detail"
).
style
.
display
=
""
;
that
.
updateRead
(
id
);
}
//
}
});
},
closeDetail
(
id
,
event
){
...
...
@@ -658,8 +661,8 @@ export default {
.content-div
{
color
:
#000000
;
font-size
:
30
;
height
:
4
0px
;
line-height
:
5
0px
;
height
:
3
0px
;
line-height
:
3
0px
;
margin-left
:
10px
;
}
.el-form-div
{
...
...
@@ -690,8 +693,9 @@ export default {
border-bottom
:
2px
solid
#1c84c6
;
border-top
:
1px
solid
#1c84c6
;
height
:
30px
;
color
:
#
000
;
color
:
#
ffffff
;
line-height
:
30px
;
background
:
#74BCFF
;
}
.
test-5
:
:-
webkit-scrollbar
{
/*滚动条整体样式*/
...
...
gassafetyprogress-web/src/utils/mapClass/yjmap.js
View file @
ac78c3c8
...
...
@@ -735,7 +735,7 @@ export class EditorMap {
}
}
setZoomAndCenter
(
longitude
,
latitude
){
this
.
map
.
setZoomAndCenter
(
14
,
[
longitude
*
1
+
0.02
,
latitude
]);
this
.
map
.
setZoomAndCenter
(
14
.5
,
[
longitude
*
1
+
0.02
,
latitude
]);
}
// 普通调用方法
// 设备报警
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment