Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2edba1cb
authored
Dec 29, 2021
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1111
1 parent
53ea8c37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
17 deletions
src/views/alarmCenter/hadoop.vue
src/views/alarmCenter/offline.vue
src/views/alarmCenter/tamper.vue
src/views/alarmCenter/hadoop.vue
View file @
2edba1c
...
...
@@ -70,7 +70,8 @@
<el-table-column
label=
"报警编号"
prop=
"geoCode"
></el-table-column>
<el-table-column
label=
"报警地点"
prop=
"alarmAddress"
></el-table-column>
<el-table-column
label=
"报警生效时间"
prop=
"alarmBeginTime"
></el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
width=
"180px"
>
<el-table-column
label=
"报警失效时间"
prop=
"alarmEndTime"
></el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
width=
"130px"
>
<template
slot-scope=
"
{row}">
<el-link
class=
"el_link"
type=
"primary"
@
click=
"lookLocation(row)"
v-if=
"row.alarmLng"
>
查看报警位置
</el-link>
</
template
>
...
...
src/views/alarmCenter/offline.vue
View file @
2edba1c
...
...
@@ -13,7 +13,7 @@
<el-date-picker
v-model=
"searchForm.offDate"
type=
"daterange"
class=
"data_picker"
unlink-panels
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"offPickerOptions"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"激活
时
间:"
>
<el-form-item
label=
"激活
区
间:"
>
<el-date-picker
v-model=
"searchForm.timeDate"
type=
"daterange"
class=
"data_picker"
unlink-panels
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-form-item>
...
...
src/views/alarmCenter/tamper.vue
View file @
2edba1c
...
...
@@ -2,8 +2,8 @@
<div
class=
""
>
<div
class=
"page_title"
>
<h2
class=
"h2"
>
防拆报警
</h2>
<h3
class=
"h3"
>
用于有线设备的断电报警和无线设备的光感报警,断电报警和光感报警统称防拆报警
</h3>
<h2
class=
"h2"
>
防拆报警
</h2>
<h3
class=
"h3"
>
用于有线设备的断电报警和无线设备的光感报警,断电报警和光感报警统称防拆报警
</h3>
</div>
<!-- 搜索区域 开始 -->
...
...
@@ -12,6 +12,7 @@
<el-form-item
label=
"报警时间:"
>
<el-date-picker
v-model=
"searchForm.timeDate"
type=
"daterange"
class=
"data_picker"
unlink-panels
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
>
</el-date-picker>
<p
class=
"date_tips"
>
单次查询日期的最长跨度为31天
</p>
</el-form-item>
<el-form-item
label=
"车辆归属:"
>
<el-popover
v-model=
"filterVisible"
placement=
"bottom-start"
width=
"400"
trigger=
"click"
>
...
...
@@ -36,8 +37,8 @@
<el-option
label=
"失效"
:value=
"2"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"关键字"
>
<el-input
v-model=
"searchForm.keywords"
class=
"long_input"
placeholder=
"设备号|工单号|
店面名称|
姓名|车架号"
></el-input>
<el-form-item
label=
"关键字
:
"
>
<el-input
v-model=
"searchForm.keywords"
class=
"long_input"
placeholder=
"设备号|工单号|姓名|车架号"
></el-input>
</el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
type=
"primary"
@
click=
"getList()"
>
搜索
</el-button>
...
...
@@ -97,7 +98,7 @@ export default {
},
data
()
{
return
{
searchForm
:
{
alarmStatus
:
1
},
searchForm
:
{
alarmStatus
:
1
},
currentPage
:
1
,
pageSizes
:
[
10
,
20
,
30
,
40
],
pageSize
:
10
,
...
...
@@ -170,16 +171,34 @@ export default {
},
},
],
onPick
:
({
maxDate
,
minDate
})
=>
{
this
.
pickerMinDate
=
minDate
.
getTime
();
},
disabledDate
:
(
time
)
=>
{
if
(
this
.
pickerMinDate
)
{
const
day1
=
31
*
24
*
3600
*
1000
;
let
maxTime
=
this
.
pickerMinDate
+
day1
;
let
minTime
=
this
.
pickerMinDate
-
day1
;
return
(
time
.
getTime
()
>
maxTime
||
time
.
getTime
()
<
minTime
||
time
.
getTime
()
>
Date
.
now
()
-
1
*
24
*
3600
*
1000
);
}
else
{
return
time
.
getTime
()
>
Date
.
now
()
+
0
*
24
*
3600
*
1000
;
}
},
},
filterVisible
:
false
,
orgInfo
:
{},
dloading
:
false
,
tloading
:
false
,
pickerMinDate
:
""
,
};
},
created
()
{
let
n
=
moment
().
format
(
"YYYY-MM-DD"
);
this
.
$set
(
this
.
searchForm
,
'timeDate'
,[
n
,
n
])
let
n
=
moment
().
format
(
"YYYY-MM-DD"
);
this
.
$set
(
this
.
searchForm
,
"timeDate"
,
[
n
,
n
]);
},
mounted
()
{
this
.
getList
();
...
...
@@ -188,6 +207,7 @@ export default {
// 重置
rest
()
{
this
.
searchForm
=
{};
this
.
pickerMinDate
=
""
;
this
.
getList
();
},
...
...
@@ -251,14 +271,13 @@ export default {
// 查看报警位置点
lookLocation
(
row
)
{
let
oParams
=
{...
row
};
oParams
.
lng
=
row
.
alarmLng
oParams
.
lat
=
row
.
alarmLat
oParams
.
address
=
row
.
alarmPlace
oParams
.
name
=
row
.
ownerName
oParams
.
standNo
=
row
.
vin
oParams
.
time
=
row
.
alarmEffectTime
let
oParams
=
{
...
row
};
oParams
.
lng
=
row
.
alarmLng
;
oParams
.
lat
=
row
.
alarmLat
;
oParams
.
address
=
row
.
alarmPlace
;
oParams
.
name
=
row
.
ownerName
;
oParams
.
standNo
=
row
.
vin
;
oParams
.
time
=
row
.
alarmEffectTime
;
let
path
=
`/oEshield#/monitor/activeLocation`
;
history
.
pushState
(
oParams
,
"报警位置点"
,
path
);
...
...
@@ -268,4 +287,13 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"@/styles/hadoop.scss"
;
.date_tips
{
position
:
absolute
;
margin
:
0
;
padding
:
0
;
font-size
:
12px
;
color
:
#999
;
line-height
:
inherit
;
margin-top
:
-6px
;
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment