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
19e752f0
Commit
19e752f0
authored
Apr 07, 2022
by
zhangjianqian
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d8cdde92
0580795f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
144 additions
and
58 deletions
+144
-58
THiddenTroubleInfoSController.java
...b/controller/supervise/THiddenTroubleInfoSController.java
+5
-0
THiddenTroubleInfo.java
...ain/java/com/zehong/system/domain/THiddenTroubleInfo.java
+1
-1
index.vue
gassafetyprogress-web/src/views/system/info/index.vue
+138
-57
No files found.
gassafetyprogress-admin/src/main/java/com/zehong/web/controller/supervise/THiddenTroubleInfoSController.java
View file @
19e752f0
package
com
.
zehong
.
web
.
controller
.
supervise
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.List
;
import
com.zehong.common.core.domain.entity.SysUser
;
...
...
@@ -85,6 +87,9 @@ public class THiddenTroubleInfoSController extends BaseController
//获取用户信息
SysUser
user
=
SecurityUtils
.
getLoginUser
().
getUser
();
tHiddenTroubleInfo
.
setBeyondEnterpriseId
(
user
.
getDeptId
());
tHiddenTroubleInfo
.
setReportPerson
(
user
.
getNickName
());
SimpleDateFormat
dateTime
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
//设置日期格式
tHiddenTroubleInfo
.
setReportTime
(
dateTime
.
format
(
new
Date
()));
return
toAjax
(
tHiddenTroubleInfoService
.
insertTHiddenTroubleInfo
(
tHiddenTroubleInfo
));
}
...
...
gassafetyprogress-system/src/main/java/com/zehong/system/domain/THiddenTroubleInfo.java
View file @
19e752f0
...
...
@@ -55,7 +55,7 @@ public class THiddenTroubleInfo extends BaseEntity
private
String
hiddenTroubleDescribe
;
/** 上报时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd
HH:mm:ss
"
)
@Excel
(
name
=
"上报时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
String
reportTime
;
...
...
gassafetyprogress-web/src/views/system/info/index.vue
View file @
19e752f0
...
...
@@ -99,7 +99,6 @@
<span
v-if=
"scope.row.hiddenTroubleType == 5"
>
安全距离不足
</span>
<span
v-if=
"scope.row.hiddenTroubleType == 6"
>
管道承重
</span>
<span
v-if=
"scope.row.hiddenTroubleType == 7"
>
其他
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
...
...
@@ -111,7 +110,7 @@
</el-table-column>
<el-table-column
label=
"上报时间"
align=
"center"
prop=
"reportTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.
hiddenTroubleDescribe"
>
{{
parseTime
(
scope
.
row
.
reportTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<span
v-if=
"scope.row.
reportTime"
>
{{
scope
.
row
.
reportTime
}}
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
...
...
@@ -132,7 +131,7 @@
</el-table-column>
<el-table-column
label=
"隐患处理完成时间"
align=
"center"
prop=
"hiddenTroubleDealFinishTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
span
v
-
if
=
"scope.row.hiddenTroubleDealFinishTime"
>
{{
parseTime
(
scope
.
row
.
hiddenTroubleDealFinishTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<span
v-if=
"scope.row.hiddenTroubleDealFinishTime"
>
{{
parseTime
(
scope
.
row
.
hiddenTroubleDealFinishTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{m
}
:{s
}
'
)
}}
<
/span
>
<
span
v
-
else
>-<
/span
>
<
/template
>
<
/el-table-column
>
...
...
@@ -156,6 +155,12 @@
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['system:info:remove']"
>
删除
<
/el-button
>
<
el
-
button
v
-
if
=
"scope.row.hiddenTroubleDealStatus != 3"
size
=
"mini"
type
=
"text"
icon
=
"el-icon-news"
@
click
=
"handlingHiddenDangers(scope.row)"
>
处理隐患
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
...
...
@@ -167,11 +172,50 @@
:
limit
.
sync
=
"queryParams.pageSize"
@
pagination
=
"getList"
/>
<!--
处理隐患对话框
-->
<
el
-
dialog
:
title
=
"hiddenDangertitle"
:
visible
.
sync
=
"hiddenDanger"
width
=
"800px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"hiddenDangerRules"
label
-
width
=
"140px"
>
<
el
-
row
>
<
el
-
col
:
span
=
"22"
>
<
el
-
form
-
item
label
=
"隐患处理完成时间"
prop
=
"hiddenTroubleDealFinishTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.hiddenTroubleDealFinishTime"
type
=
"datetime"
value
-
format
=
"yyyy-MM-dd HH:mm:ss"
placeholder
=
"选择隐患处理完成时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
<
el
-
row
>
<
el
-
col
:
span
=
"22"
>
<
el
-
form
-
item
label
=
"隐患处理情况"
prop
=
"hiddenTroubleDealCondition"
>
<
el
-
input
v
-
model
=
"form.hiddenTroubleDealCondition"
type
=
"textarea"
placeholder
=
"请输入隐患处理情况"
/>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitFormHiddenDanger"
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"hiddenDangerCancel"
>
取
消
<
/el-button
>
<
/div
>
<
/el-dialog
>
<!--
添加或修改燃气隐患对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"800px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"130px"
>
<
el
-
row
>
<
el
-
col
:
span
=
"22"
>
<
el
-
form
-
item
label
=
"隐患名称"
prop
=
"hiddenTroubleName"
>
<
el
-
input
v
-
model
=
"form.hiddenTroubleName"
placeholder
=
"请输入隐患名称"
/>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
<
el
-
row
>
<
el
-
col
:
span
=
"11"
>
<
el
-
form
-
item
label
=
"隐患等级"
prop
=
"hiddenTroubleLevel"
>
...
...
@@ -183,14 +227,6 @@
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"11"
>
<
el
-
form
-
item
label
=
"隐患名称"
prop
=
"hiddenTroubleName"
>
<
el
-
input
v
-
model
=
"form.hiddenTroubleName"
placeholder
=
"请输入隐患名称"
/>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
<
el
-
row
>
<
el
-
col
:
span
=
"11"
>
<
el
-
form
-
item
label
=
"隐患类型"
prop
=
"hiddenTroubleType"
>
<
el
-
select
v
-
model
=
"form.hiddenTroubleType"
placeholder
=
"请选择隐患类型"
style
=
"width: 100%;"
>
...
...
@@ -204,24 +240,26 @@
<
/el-select
>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
<
el
-
col
:
span
=
"11"
>
<
el
-
form
-
item
label
=
"隐患描述"
prop
=
"hiddenTroubleDescribe"
>
<
el
-
input
v
-
model
=
"form.hiddenTroubleDescribe"
placeholder
=
"请输入隐患描述"
/>
<
/el-form-item
>
<
el
-
row
>
<
el
-
col
:
span
=
"22"
>
<
el
-
form
-
item
label
=
"隐患描述"
prop
=
"hiddenTroubleDescribe"
>
<
el
-
input
v
-
model
=
"form.hiddenTroubleDescribe"
type
=
"textarea"
placeholder
=
"请输入隐患描述"
/>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
<
el
-
row
>
<
el
-
col
:
span
=
"2
3
"
>
<
el
-
col
:
span
=
"2
5
"
>
<
el
-
form
-
item
label
=
"经纬度坐标"
prop
=
"longitude"
>
<
el
-
col
:
span
=
"9"
>
<
el
-
input
v
-
model
=
"form.longitude"
placeholder
=
"请输入经度"
/>
<
/el-col
>
<
el
-
col
:
span
=
"9"
style
=
"margin-left: 1
0
px"
>
<
el
-
col
:
span
=
"9"
style
=
"margin-left: 1
3
px"
>
<
el
-
input
v
-
model
=
"form.latitude"
placeholder
=
"请输入纬度"
/>
<
/el-col
>
<
el
-
col
:
span
=
"
3
"
style
=
"margin-left: 30px"
>
<
el
-
col
:
span
=
"
4
"
style
=
"margin-left: 30px"
>
<
el
-
button
type
=
"primary"
plain
@
click
=
"MapdialogFun"
>
选择经纬度
<
/el-button
>
<
/el-col
>
<
/el-form-item
>
...
...
@@ -241,28 +279,28 @@
<
/el-col
>
<
/el-row
>
<
el
-
row
>
<
el
-
col
:
span
=
"11"
>
<
el
-
form
-
item
label
=
"上报时间"
prop
=
"reportTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.reportTime"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择上报时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
/el-col
>
<!--
<
el
-
row
>--
>
<!--
<
el
-
col
:
span
=
"11"
>--
>
<!--
<
el
-
form
-
item
label
=
"上报时间"
prop
=
"reportTime"
>--
>
<!--
<
el
-
date
-
picker
clearable
size
=
"small"
-->
<!--
v
-
model
=
"form.reportTime"
-->
<!--
type
=
"date"
-->
<!--
value
-
format
=
"yyyy-MM-dd"
-->
<!--
placeholder
=
"选择上报时间"
>--
>
<!--
<
/el-date-picker>--
>
<!--
<
/el-form-item>--
>
<!--
<
/el-col>--
>
<
el
-
col
:
span
=
"11"
>
<
el
-
form
-
item
label
=
"上报人"
prop
=
"reportPerson"
>
<
el
-
input
v
-
model
=
"form.reportPerson"
placeholder
=
"请输入上报人"
/
>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
<!--
<
el
-
col
:
span
=
"11"
>--
>
<!--
<
el
-
form
-
item
label
=
"上报人"
prop
=
"reportPerson"
>--
>
<!--
<
el
-
input
v
-
model
=
"form.reportPerson"
placeholder
=
"请输入上报人"
/>--
>
<!--
<
/el-form-item>--
>
<!--
<
/el-col>--
>
<!--
<
/el-row>--
>
<
el
-
row
>
<
el
-
col
:
span
=
"11"
>
<
el
-
form
-
item
label
=
"隐患处理状态"
prop
=
"hiddenTroubleDealStatus"
>
<
el
-
form
-
item
label
=
"隐患处理状态"
prop
=
"hiddenTroubleDealStatus"
>
<
el
-
select
v
-
model
=
"form.hiddenTroubleDealStatus"
placeholder
=
"请选择隐患处理状态"
style
=
"width: 100%;"
>
<
el
-
option
label
=
"待处理"
value
=
"1"
/>
<
el
-
option
label
=
"处理中"
value
=
"2"
/>
...
...
@@ -272,29 +310,30 @@
<
/el-col
>
<
el
-
col
:
span
=
"11"
>
<
el
-
form
-
item
label
=
"隐患处理情况"
prop
=
"hiddenTroubleDealCondition"
>
<
el
-
input
v
-
model
=
"form.hiddenTroubleDealCondition"
placeholder
=
"请输入隐患处理情况"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"隐患处理完成时间"
v
-
if
=
"form.hiddenTroubleDealStatus==3"
prop
=
"hiddenTroubleDealFinishTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.hiddenTroubleDealFinishTime"
type
=
"datetime"
value
-
format
=
"yyyy-MM-dd HH:mm:ss"
placeholder
=
"选择隐患处理完成时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
<
el
-
row
>
<
el
-
col
:
span
=
"11"
>
<
el
-
form
-
item
label
=
"隐患处理完成时间"
prop
=
"hiddenTroubleDealFinishTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.hiddenTroubleDealFinishTime"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择隐患处理完成时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
col
:
span
=
"22"
>
<
el
-
form
-
item
label
=
"隐患处理情况"
v
-
if
=
"form.hiddenTroubleDealStatus==3"
prop
=
"hiddenTroubleDealCondition"
>
<
el
-
input
v
-
model
=
"form.hiddenTroubleDealCondition"
type
=
"textarea"
placeholder
=
"请输入隐患处理情况"
/>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
<
el
-
col
:
span
=
"11"
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remarks"
>
<
el
-
input
v
-
model
=
"form.remarks"
placeholder
=
"请输入备注"
/>
<
/el-form-item
>
<
el
-
row
>
<
el
-
col
:
span
=
"22"
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remarks"
>
<
el
-
input
v
-
model
=
"form.remarks"
type
=
"textarea"
placeholder
=
"请输入备注"
/>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
...
...
@@ -352,8 +391,12 @@ export default {
infoList
:
[],
// 弹出层标题
title
:
""
,
//处理隐患弹出层标题
hiddenDangertitle
:
""
,
// 是否显示弹出层
open
:
false
,
// 是否显示处理隐患弹出层
hiddenDanger
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
...
...
@@ -371,8 +414,16 @@ export default {
hiddenTroubleName
:
[
{
required
:
true
,
message
:
"请输入隐患名称"
,
trigger
:
"blur"
}
,
],
}
hiddenTroubleType
:
[
{
required
:
true
,
message
:
"请选择隐患类型"
,
trigger
:
"blur"
}
,
],
}
,
//隐患处理表单效验
hiddenDangerRules
:
{
hiddenTroubleDealFinishTime
:
[
{
required
:
true
,
message
:
"请选择隐患处理完成时间"
,
trigger
:
"blur"
}
,
]
}
,
}
;
}
,
created
()
{
...
...
@@ -440,6 +491,12 @@ export default {
this
.
reset
();
this
.
fileList
=
[];
}
,
// 处理隐患表单取消按钮
hiddenDangerCancel
()
{
this
.
hiddenDanger
=
false
;
this
.
reset
();
this
.
fileList
=
[];
}
,
// 表单重置
reset
()
{
this
.
form
=
{
...
...
@@ -454,7 +511,7 @@ export default {
hiddenTroubleDescribe
:
null
,
reportTime
:
null
,
reportPerson
:
null
,
hiddenTroubleDealStatus
:
null
,
hiddenTroubleDealStatus
:
'1'
,
hiddenTroubleDealCondition
:
null
,
hiddenTroubleDealFinishTime
:
null
,
isDel
:
null
,
...
...
@@ -482,7 +539,7 @@ export default {
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加
燃气隐患
"
;
this
.
title
=
"添加
隐患信息
"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
...
...
@@ -503,6 +560,15 @@ export default {
this
.
devicePos
=
[
response
.
data
.
longitude
,
response
.
data
.
latitude
];
}
);
}
,
/**处理隐患按钮操作*/
handlingHiddenDangers
(
row
){
const
hiddenTroubleId
=
row
.
hiddenTroubleId
||
this
.
ids
getInfo
(
hiddenTroubleId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
hiddenDanger
=
true
;
this
.
hiddenDangertitle
=
"处理隐患信息"
;
}
);
}
,
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
...
...
@@ -523,6 +589,21 @@ export default {
}
}
);
}
,
/**处理隐患提交按钮*/
submitFormHiddenDanger
(){
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
hiddenTroubleId
!=
null
)
{
this
.
form
.
hiddenTroubleDealStatus
=
'3'
;
updateInfo
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
hiddenDanger
=
false
;
this
.
getList
();
}
);
}
}
}
);
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
hiddenTroubleIds
=
row
.
hiddenTroubleId
||
this
.
ids
;
...
...
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