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
c3d6758b
Commit
c3d6758b
authored
Feb 14, 2022
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应急处置功能
parent
e3ea7958
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
121 additions
and
73 deletions
+121
-73
TEventInfo.java
...em/src/main/java/com/zehong/system/domain/TEventInfo.java
+2
-2
TEventInfoMapper.xml
...tem/src/main/resources/mapper/system/TEventInfoMapper.xml
+1
-0
TPlanInfoMapper.xml
...stem/src/main/resources/mapper/system/TPlanInfoMapper.xml
+1
-0
index.vue
gassafetyprogress-web/src/views/system/eventInfo/index.vue
+14
-8
index.vue
gassafetyprogress-web/src/views/system/planInfo/index.vue
+103
-63
No files found.
gassafetyprogress-system/src/main/java/com/zehong/system/domain/TEventInfo.java
View file @
c3d6758b
...
@@ -37,8 +37,8 @@ public class TEventInfo extends BaseEntity
...
@@ -37,8 +37,8 @@ public class TEventInfo extends BaseEntity
private
String
eventLocation
;
private
String
eventLocation
;
/** 报案时间 */
/** 报案时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd
HH:mm:ss
"
)
@Excel
(
name
=
"报案时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"报案时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
HH:mm:ss
"
)
private
Date
reportTime
;
private
Date
reportTime
;
/** 报案人 */
/** 报案人 */
...
...
gassafetyprogress-system/src/main/resources/mapper/system/TEventInfoMapper.xml
View file @
c3d6758b
...
@@ -38,6 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -38,6 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"reportPerson != null and reportPerson != ''"
>
and report_person like concat('%', #{reportPerson}, '%')
</if>
<if
test=
"reportPerson != null and reportPerson != ''"
>
and report_person like concat('%', #{reportPerson}, '%')
</if>
<if
test=
"beyondEnterpriseId != null and beyondEnterpriseId != ''"
>
and beyond_enterprise_id = #{beyondEnterpriseId}
</if>
<if
test=
"beyondEnterpriseId != null and beyondEnterpriseId != ''"
>
and beyond_enterprise_id = #{beyondEnterpriseId}
</if>
</where>
</where>
order by report_time
</select>
</select>
<select
id=
"selectTEventInfoById"
parameterType=
"Long"
resultMap=
"TEventInfoResult"
>
<select
id=
"selectTEventInfoById"
parameterType=
"Long"
resultMap=
"TEventInfoResult"
>
...
...
gassafetyprogress-system/src/main/resources/mapper/system/TPlanInfoMapper.xml
View file @
c3d6758b
...
@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"planLevel != null and planLevel != ''"
>
and plan_level = #{planLevel}
</if>
<if
test=
"planLevel != null and planLevel != ''"
>
and plan_level = #{planLevel}
</if>
<if
test=
"beyondEnterpriseId != null and beyondEnterpriseId != ''"
>
and beyond_enterprise_id = #{beyondEnterpriseId}
</if>
<if
test=
"beyondEnterpriseId != null and beyondEnterpriseId != ''"
>
and beyond_enterprise_id = #{beyondEnterpriseId}
</if>
</where>
</where>
order by create_time desc
</select>
</select>
<select
id=
"selectTPlanInfoById"
parameterType=
"Long"
resultMap=
"TPlanInfoResult"
>
<select
id=
"selectTPlanInfoById"
parameterType=
"Long"
resultMap=
"TPlanInfoResult"
>
...
...
gassafetyprogress-web/src/views/system/eventInfo/index.vue
View file @
c3d6758b
...
@@ -111,13 +111,13 @@
...
@@ -111,13 +111,13 @@
<el-table-column
label=
"事件地点"
align=
"center"
prop=
"eventLocation"
/>
<el-table-column
label=
"事件地点"
align=
"center"
prop=
"eventLocation"
/>
<el-table-column
label=
"报案时间"
align=
"center"
prop=
"reportTime"
width=
"180"
>
<el-table-column
label=
"报案时间"
align=
"center"
prop=
"reportTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
reportTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<span>
{{
parseTime
(
scope
.
row
.
reportTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"报案人"
align
=
"center"
prop
=
"reportPerson"
/>
<
el
-
table
-
column
label
=
"报案人"
align
=
"center"
prop
=
"reportPerson"
/>
<
el
-
table
-
column
label
=
"事件处置信息"
align
=
"center"
prop
=
"eventDeal"
/>
<
el
-
table
-
column
label
=
"事件处置信息"
align
=
"center"
prop
=
"eventDeal"
/>
<
el
-
table
-
column
label
=
"事件评估信息"
align
=
"center"
prop
=
"eventAssessment"
/>
<
el
-
table
-
column
label
=
"事件评估信息"
align
=
"center"
prop
=
"eventAssessment"
/>
<
el
-
table
-
column
label
=
"所属企业"
align
=
"center"
prop
=
"beyondEnterprise
Id
"
/>
<
el
-
table
-
column
label
=
"所属企业"
align
=
"center"
prop
=
"beyondEnterprise
Name
"
/>
<
el
-
table
-
column
label
=
"备注"
align
=
"center"
prop
=
"remarks"
/>
<
el
-
table
-
column
label
=
"备注"
align
=
"center"
prop
=
"remarks"
/>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"1000px"
append
-
to
-
body
>
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"1000px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"100px"
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"100px"
>
<
div
class
=
"division"
>
<
div
class
=
"division"
>
<
div
style
=
"width:
50
%"
>
<
div
style
=
"width:
45
%"
>
<
el
-
form
-
item
label
=
"事件名称"
prop
=
"eventTitle"
>
<
el
-
form
-
item
label
=
"事件名称"
prop
=
"eventTitle"
>
<
el
-
input
v
-
model
=
"form.eventTitle"
placeholder
=
"请输入事件名称"
/>
<
el
-
input
v
-
model
=
"form.eventTitle"
placeholder
=
"请输入事件名称"
/>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -196,7 +196,7 @@
...
@@ -196,7 +196,7 @@
<
/div
>
<
/div
>
<
div
style
=
"width: 50%"
>
<
div
style
=
"width: 50%"
>
<
el
-
form
-
item
label
=
"所属企业"
prop
=
"beyondEnterpriseId"
>
<
el
-
form
-
item
label
=
"所属企业"
prop
=
"beyondEnterpriseId"
>
<
el
-
select
v
-
model
=
"form.beyondEnterprise
Id
"
placeholder
=
"请选择预案等级"
@
change
=
"qiyechang"
>
<
el
-
select
v
-
model
=
"form.beyondEnterprise
Name
"
placeholder
=
"请选择预案等级"
@
change
=
"qiyechang"
>
<
el
-
option
<
el
-
option
v
-
for
=
"dict in enterpriseList"
v
-
for
=
"dict in enterpriseList"
:
key
=
"dict.enterpriseId"
:
key
=
"dict.enterpriseId"
...
@@ -212,8 +212,8 @@
...
@@ -212,8 +212,8 @@
<
el
-
form
-
item
label
=
"报案时间"
prop
=
"reportTime"
>
<
el
-
form
-
item
label
=
"报案时间"
prop
=
"reportTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.reportTime"
v
-
model
=
"form.reportTime"
type
=
"date"
type
=
"date
time
"
value
-
format
=
"yyyy-MM-dd"
value
-
format
=
"yyyy-MM-dd
HH:mm:ss
"
placeholder
=
"选择报案时间"
>
placeholder
=
"选择报案时间"
>
<
/el-date-picker
>
<
/el-date-picker
>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -222,10 +222,10 @@
...
@@ -222,10 +222,10 @@
<
/el-form-item
>
<
/el-form-item
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
el
-
form
-
item
label
=
"事件处置信息"
prop
=
"eventDeal"
>
<
el
-
form
-
item
label
=
"事件处置信息"
prop
=
"eventDeal"
style
=
"width: 60%"
>
<
el
-
input
v
-
model
=
"form.eventDeal"
type
=
"textarea"
placeholder
=
"请输入事件处置信息"
/>
<
el
-
input
v
-
model
=
"form.eventDeal"
type
=
"textarea"
placeholder
=
"请输入事件处置信息"
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"事件评估信息"
prop
=
"eventAssessment"
>
<
el
-
form
-
item
label
=
"事件评估信息"
prop
=
"eventAssessment"
style
=
"width: 60%"
>
<
el
-
input
v
-
model
=
"form.eventAssessment"
type
=
"textarea"
placeholder
=
"请输入事件评估信息"
/>
<
el
-
input
v
-
model
=
"form.eventAssessment"
type
=
"textarea"
placeholder
=
"请输入事件评估信息"
/>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -367,6 +367,7 @@ export default {
...
@@ -367,6 +367,7 @@ export default {
return
item
.
enterpriseId
===
value
;
return
item
.
enterpriseId
===
value
;
}
);
}
);
this
.
form
.
beyondEnterpriseName
=
obj
.
enterpriseName
;
this
.
form
.
beyondEnterpriseName
=
obj
.
enterpriseName
;
this
.
form
.
beyondEnterpriseId
=
value
;
}
,
}
,
// 事件类型:1.泄漏 2.火灾 3.爆炸字典翻译
// 事件类型:1.泄漏 2.火灾 3.爆炸字典翻译
eventTypeFormat
(
row
,
column
)
{
eventTypeFormat
(
row
,
column
)
{
...
@@ -508,3 +509,8 @@ export default {
...
@@ -508,3 +509,8 @@ export default {
justify
-
content
:
flex
-
start
;
justify
-
content
:
flex
-
start
;
}
}
<
/style
>
<
/style
>
<
style
lang
=
"scss"
scoped
>
::
v
-
deep
.
el
-
select
{
width
:
100
%
;
}
<
/style
>
gassafetyprogress-web/src/views/system/planInfo/index.vue
View file @
c3d6758b
This diff is collapsed.
Click to expand it.
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