Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
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
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
f3f2ce0a
Commit
f3f2ce0a
authored
Feb 06, 2023
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐患是否逾期
parent
12de4132
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
TStaningBookServiceImpl.java
...m/zehong/system/service/impl/TStaningBookServiceImpl.java
+7
-0
index.vue
danger-manage-web/src/views/system/book/index.vue
+19
-2
No files found.
danger-manage-system/src/main/java/com/zehong/system/service/impl/TStaningBookServiceImpl.java
View file @
f3f2ce0a
...
...
@@ -57,6 +57,13 @@ public class TStaningBookServiceImpl implements ITStaningBookService
tStaningBook
.
setUserId
(
0
l
);
}
List
<
TStaningBook
>
list
=
tStaningBookMapper
.
selectTStaningBookList
(
tStaningBook
);
for
(
TStaningBook
t
:
list
){
if
(
t
.
getRectificationTerm
()!=
null
&&
t
.
getRectificationTerm
().
getTime
()<
new
Date
().
getTime
()&&
t
.
getState
()==
0
){
t
.
setFinishDay
(
1
l
);
}
else
{
t
.
setFinishDay
(
0
l
);
}
}
return
list
;
}
public
List
<
Long
>
selectDeptIds
(
List
<
Long
>
list
,
List
<
Long
>
deptIds
){
...
...
danger-manage-web/src/views/system/book/index.vue
View file @
f3f2ce0a
...
...
@@ -86,6 +86,12 @@
</el-table-column>
<el-table-column
label=
"责任部门"
align=
"center"
prop=
"deptName"
/>
<el-table-column
label=
"整改人"
align=
"center"
prop=
"rectificationName"
/>
<el-table-column
label=
"是否过期 "
align=
"center"
prop=
"state"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.finishDay==0"
>
否
</span>
<span
style=
"color: red"
v-if=
"scope.row.finishDay==1"
>
是
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"整改时间"
align=
"center"
prop=
"rectificationTime"
width=
"180"
>
</el-table-column>
<el-table-column
label=
"隐患状态 "
align=
"center"
prop=
"state"
>
...
...
@@ -392,8 +398,11 @@
</div>
</el-dialog>
<!--详情-->
<el-dialog
:title=
"title"
:visible
.
sync=
"open2"
width=
"900px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"open2"
style=
"position: absolute"
width=
"900px"
append-to-body
>
<div
v-if=
"form.finishDay==1"
class=
"guoqi"
>
<span>
(已过期)
</span>
</div>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-divider
content-position=
"left"
><i
class=
"el-icon-info"
></i><span
class=
"boxx"
>
隐患信息
</span></el-divider>
<el-form-item
label=
"隐患名称"
>
<el-input
v-model=
"form.troubleName"
placeholder=
"请输入隐患名称"
disabled
/>
...
...
@@ -1176,6 +1185,7 @@ export default {
const
bookId
=
row
.
bookId
||
this
.
ids
getBook
(
bookId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
.
finishDay
=
row
.
finishDay
;
if
(
this
.
form
.
troubleLevel
==
1
){
this
.
zhong
=
1
}
...
...
@@ -1358,6 +1368,13 @@ export default {
font-weight
:
bold
;
padding-left
:
5px
;
}
.guoqi
{
position
:
relative
;
top
:
-35px
;
left
:
120px
;
font-size
:
17px
;
color
:
red
;
}
::v-deep
.el-dialog__body
{
padding
:
0px
20px
!
important
;
}
...
...
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