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
1748e0d0
Commit
1748e0d0
authored
Feb 14, 2023
by
吴卿华
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
936bd1c3
768c2fd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
20 deletions
+21
-20
TBreakRulesPersonRecordServiceImpl.java
...stem/service/impl/TBreakRulesPersonRecordServiceImpl.java
+5
-0
limitTime.vue
danger-manage-web/src/views/system/limitTime/limitTime.vue
+16
-20
No files found.
danger-manage-system/src/main/java/com/zehong/system/service/impl/TBreakRulesPersonRecordServiceImpl.java
View file @
1748e0d0
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.sql.Time
;
import
java.util.Date
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -52,6 +54,9 @@ public class TBreakRulesPersonRecordServiceImpl implements ITBreakRulesPersonRec
@Override
public
int
insertTBreakRulesPersonRecord
(
TBreakRulesPersonRecord
tBreakRulesPersonRecord
)
{
if
(
tBreakRulesPersonRecord
.
getReportTime
()==
null
){
tBreakRulesPersonRecord
.
setReportTime
(
new
Date
());
}
return
tBreakRulesPersonRecordMapper
.
insertTBreakRulesPersonRecord
(
tBreakRulesPersonRecord
);
}
...
...
danger-manage-web/src/views/system/limitTime/limitTime.vue
View file @
1748e0d0
...
...
@@ -30,15 +30,14 @@
<el-option
label=
"手动消警"
value=
"2"
/>
</el-select>
</el-form-item>
-->
<el-form-item
label=
"报警时间"
prop=
"alarmStatus"
>
<el-time-picker
is-range
v-model=
"queryParams.alarmStatus"
range-separator=
"至"
start-placeholder=
"开始时间"
end-placeholder=
"结束时间"
placeholder=
"选择时间范围"
>
</el-time-picker>
<el-form-item
label=
"报警时间"
prop=
"value1"
>
<el-date-picker
v-model=
"queryParams.value1"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-form-item>
<el-form-item>
...
...
@@ -56,7 +55,6 @@
size=
"mini"
:loading=
"exportLoading"
@
click=
"handleExport"
v-hasPermi=
"['system:alarm:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
...
...
@@ -244,6 +242,7 @@ export default {
alarmBeginTime
:
null
,
alarmEndTime
:
null
,
alarmStatus
:
null
,
value1
:
''
,
},
// 表单参数
form
:
{},
...
...
@@ -294,6 +293,7 @@ export default {
alarmBeginTime
:
null
,
alarmEndTime
:
null
,
alarmStatus
:
"0"
,
value1
:
''
,
alarmImageUrl
:
null
,
alarmVaule
:
null
,
createBy
:
null
,
...
...
@@ -301,7 +301,8 @@ export default {
updateBy
:
null
,
updateTime
:
null
,
isDel
:
null
,
remarks
:
null
remarks
:
null
,
value1
:
''
,
};
this
.
resetForm
(
"form"
);
},
...
...
@@ -394,18 +395,13 @@ export default {
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有报警记录数据项?'
,
"警告"
,
{
this
.
$confirm
(
'暂无数据'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportAlarm
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}).
catch
((
err
)
=>
{
console
.
log
()
});
}
}
};
...
...
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