Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
C
crsf-ptvue
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
wuhan
crsf-ptvue
Commits
d0c7b867
Commit
d0c7b867
authored
Nov 16, 2021
by
xiexingan
Browse files
Options
Browse Files
Download
Plain Diff
tj
parents
309fabde
bd18e74c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
13 deletions
+39
-13
index.vue
src/layout/header-aside/components/line-header/index.vue
+1
-1
index.vue
src/pages/alarms/processed/index.vue
+4
-3
index.vue
src/pages/alarms/untreated/index.vue
+4
-3
index.vue
src/pages/routes/alarms/processed/index.vue
+4
-3
index.vue
src/pages/routes/alarms/untreated/index.vue
+4
-3
index.vue
src/pages/routes/ol/index/index.vue
+22
-0
No files found.
src/layout/header-aside/components/line-header/index.vue
View file @
d0c7b867
...
@@ -122,7 +122,7 @@ export default {
...
@@ -122,7 +122,7 @@ export default {
localStorage
.
stationId
=
e
.
id
;
localStorage
.
stationId
=
e
.
id
;
this
.
stationId
=
e
.
id
;
this
.
stationId
=
e
.
id
;
// console.log(this.$store.state.d2admin,11111111)
// console.log(this.$store.state.d2admin,11111111)
let
path
=
this
.
$store
.
state
.
d2admin
.
menu
.
header
[
1
].
list
[
0
].
path
let
path
=
this
.
$store
.
state
.
d2admin
.
menu
.
header
[
0
].
list
[
0
].
path
that
.
$router
.
push
({
path
})
that
.
$router
.
push
({
path
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
that
.
$router
.
go
(
0
);
that
.
$router
.
go
(
0
);
...
...
src/pages/alarms/processed/index.vue
View file @
d0c7b867
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
query-list(v-if="activeName == 'ed401f7d9291b508d411d8192b016c6e'" ref="queryList")
query-list(v-if="activeName == 'ed401f7d9291b508d411d8192b016c6e'" ref="queryList")
el-tab-pane(label="入侵报警系统" name="75c7c11716713edfd2ce3581f5e7c193")
el-tab-pane(label="入侵报警系统" name="75c7c11716713edfd2ce3581f5e7c193")
query-list(v-if="activeName == '75c7c11716713edfd2ce3581f5e7c193'" ref="queryList")
query-list(v-if="activeName == '75c7c11716713edfd2ce3581f5e7c193'" ref="queryList")
el-tab-pane(label="安全检查及探测系统" name="3a64b86b1a5dead8ff9d2ad913744e50")
//-
el-tab-pane(label="安全检查及探测系统" name="3a64b86b1a5dead8ff9d2ad913744e50")
query-list(v-if="activeName == '3a64b86b1a5dead8ff9d2ad913744e50'" ref="queryList")
//-
query-list(v-if="activeName == '3a64b86b1a5dead8ff9d2ad913744e50'" ref="queryList")
</
template
>
</
template
>
<
script
>
<
script
>
import
QueryList
from
'../processed/query-list'
import
QueryList
from
'../processed/query-list'
...
@@ -119,7 +119,8 @@
...
@@ -119,7 +119,8 @@
}).
then
(
data
=>
{
}).
then
(
data
=>
{
this
.
leftLoading
=
false
this
.
leftLoading
=
false
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
eventList
=
data
.
list
const
list
=
data
.
list
.
filter
(
item
=>
item
.
systemName
!=
'安全检查及探测系统'
)
this
.
eventList
=
list
let
oneCount
,
twoCount
,
threeCount
let
oneCount
,
twoCount
,
threeCount
oneCount
=
twoCount
=
threeCount
=
0
oneCount
=
twoCount
=
threeCount
=
0
for
(
let
i
in
this
.
eventList
)
{
for
(
let
i
in
this
.
eventList
)
{
...
...
src/pages/alarms/untreated/index.vue
View file @
d0c7b867
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
query-list(v-if="activeName == 'ed401f7d9291b508d411d8192b016c6e'" ref="queryList")
query-list(v-if="activeName == 'ed401f7d9291b508d411d8192b016c6e'" ref="queryList")
el-tab-pane(label="入侵报警系统" name="75c7c11716713edfd2ce3581f5e7c193")
el-tab-pane(label="入侵报警系统" name="75c7c11716713edfd2ce3581f5e7c193")
query-list(v-if="activeName == '75c7c11716713edfd2ce3581f5e7c193'" ref="queryList")
query-list(v-if="activeName == '75c7c11716713edfd2ce3581f5e7c193'" ref="queryList")
el-tab-pane(label="安全检查及探测系统" name="3a64b86b1a5dead8ff9d2ad913744e50")
//-
el-tab-pane(label="安全检查及探测系统" name="3a64b86b1a5dead8ff9d2ad913744e50")
query-list(v-if="activeName == '3a64b86b1a5dead8ff9d2ad913744e50'" ref="queryList")
//-
query-list(v-if="activeName == '3a64b86b1a5dead8ff9d2ad913744e50'" ref="queryList")
</
template
>
</
template
>
<
script
>
<
script
>
import
QueryList
from
'../untreated/query-list'
import
QueryList
from
'../untreated/query-list'
...
@@ -119,7 +119,8 @@
...
@@ -119,7 +119,8 @@
}).
then
(
data
=>
{
}).
then
(
data
=>
{
this
.
leftLoading
=
false
this
.
leftLoading
=
false
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
eventList
=
data
.
list
const
list
=
data
.
list
.
filter
(
item
=>
item
.
systemName
!=
'安全检查及探测系统'
)
this
.
eventList
=
list
let
oneCount
,
twoCount
,
threeCount
let
oneCount
,
twoCount
,
threeCount
oneCount
=
twoCount
=
threeCount
=
0
oneCount
=
twoCount
=
threeCount
=
0
for
(
let
i
in
this
.
eventList
)
{
for
(
let
i
in
this
.
eventList
)
{
...
...
src/pages/routes/alarms/processed/index.vue
View file @
d0c7b867
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
query-list(v-if="activeName == 'ed401f7d9291b508d411d8192b016c6e'" ref="queryList")
query-list(v-if="activeName == 'ed401f7d9291b508d411d8192b016c6e'" ref="queryList")
el-tab-pane(label="入侵报警系统" name="75c7c11716713edfd2ce3581f5e7c193")
el-tab-pane(label="入侵报警系统" name="75c7c11716713edfd2ce3581f5e7c193")
query-list(v-if="activeName == '75c7c11716713edfd2ce3581f5e7c193'" ref="queryList")
query-list(v-if="activeName == '75c7c11716713edfd2ce3581f5e7c193'" ref="queryList")
el-tab-pane(label="安全检查及探测系统" name="3a64b86b1a5dead8ff9d2ad913744e50")
//-
el-tab-pane(label="安全检查及探测系统" name="3a64b86b1a5dead8ff9d2ad913744e50")
query-list(v-if="activeName == '3a64b86b1a5dead8ff9d2ad913744e50'" ref="queryList")
//-
query-list(v-if="activeName == '3a64b86b1a5dead8ff9d2ad913744e50'" ref="queryList")
</
template
>
</
template
>
<
script
>
<
script
>
import
QueryList
from
'../processed/query-list'
import
QueryList
from
'../processed/query-list'
...
@@ -114,7 +114,8 @@
...
@@ -114,7 +114,8 @@
}).
then
(
data
=>
{
}).
then
(
data
=>
{
this
.
leftLoading
=
false
this
.
leftLoading
=
false
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
eventList
=
data
.
list
const
list
=
data
.
list
.
filter
(
item
=>
item
.
systemName
!=
'安全检查及探测系统'
)
this
.
eventList
=
list
let
oneCount
,
twoCount
,
threeCount
let
oneCount
,
twoCount
,
threeCount
oneCount
=
twoCount
=
threeCount
=
0
oneCount
=
twoCount
=
threeCount
=
0
for
(
let
i
in
this
.
eventList
)
{
for
(
let
i
in
this
.
eventList
)
{
...
...
src/pages/routes/alarms/untreated/index.vue
View file @
d0c7b867
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
query-list(v-if="activeName == 'ed401f7d9291b508d411d8192b016c6e'" ref="queryList")
query-list(v-if="activeName == 'ed401f7d9291b508d411d8192b016c6e'" ref="queryList")
el-tab-pane(label="入侵报警系统" name="75c7c11716713edfd2ce3581f5e7c193")
el-tab-pane(label="入侵报警系统" name="75c7c11716713edfd2ce3581f5e7c193")
query-list(v-if="activeName == '75c7c11716713edfd2ce3581f5e7c193'" ref="queryList")
query-list(v-if="activeName == '75c7c11716713edfd2ce3581f5e7c193'" ref="queryList")
el-tab-pane(label="安全检查及探测系统" name="3a64b86b1a5dead8ff9d2ad913744e50")
//-
el-tab-pane(label="安全检查及探测系统" name="3a64b86b1a5dead8ff9d2ad913744e50")
query-list(v-if="activeName == '3a64b86b1a5dead8ff9d2ad913744e50'" ref="queryList")
//-
query-list(v-if="activeName == '3a64b86b1a5dead8ff9d2ad913744e50'" ref="queryList")
</
template
>
</
template
>
<
script
>
<
script
>
import
QueryList
from
'../untreated/query-list'
import
QueryList
from
'../untreated/query-list'
...
@@ -114,7 +114,8 @@
...
@@ -114,7 +114,8 @@
}).
then
(
data
=>
{
}).
then
(
data
=>
{
this
.
leftLoading
=
false
this
.
leftLoading
=
false
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
eventList
=
data
.
list
const
list
=
data
.
list
.
filter
(
item
=>
item
.
systemName
!=
'安全检查及探测系统'
)
this
.
eventList
=
list
let
oneCount
,
twoCount
,
threeCount
let
oneCount
,
twoCount
,
threeCount
oneCount
=
twoCount
=
threeCount
=
0
oneCount
=
twoCount
=
threeCount
=
0
for
(
let
i
in
this
.
eventList
)
{
for
(
let
i
in
this
.
eventList
)
{
...
...
src/pages/routes/ol/index/index.vue
View file @
d0c7b867
...
@@ -92,6 +92,7 @@
...
@@ -92,6 +92,7 @@
import
alarmDetail
from
'../../alarms/untreated/alarm-detail'
import
alarmDetail
from
'../../alarms/untreated/alarm-detail'
import
store
from
'@/store'
import
store
from
'@/store'
var
mapTime
let
that
let
that
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -163,11 +164,25 @@
...
@@ -163,11 +164,25 @@
},
},
//页面切换时触发
//页面切换时触发
beforeDestroy
()
{
beforeDestroy
()
{
if
(
mapTime
)
{
clearInterval
(
mapTime
)
mapTime
=
null
}
else
{
//IE销毁之前获取不到topologyTime不能清除定时任务;
this
.
$nextTick
(()
=>
{
let
time
=
this
.
setTime
+
500
setTimeout
(
function
()
{
clearInterval
(
mapTime
)
mapTime
=
null
},
time
)
})
}
// 断开
// 断开
this
.
websocketclose
()
this
.
websocketclose
()
},
},
mounted
()
{
mounted
()
{
this
.
init
()
this
.
init
()
this
.
mapInterval
()
//监听鼠标滚动事件
//监听鼠标滚动事件
window
.
addEventListener
(
'mousewheel'
,
this
.
debounce
(
this
.
handleScroll
,
300
),
true
)
||
window
.
addEventListener
(
'DOMMouseScroll'
,
this
.
debounce
(
this
.
handleScroll
,
300
),
false
)
window
.
addEventListener
(
'mousewheel'
,
this
.
debounce
(
this
.
handleScroll
,
300
),
true
)
||
window
.
addEventListener
(
'DOMMouseScroll'
,
this
.
debounce
(
this
.
handleScroll
,
300
),
false
)
// 初始
// 初始
...
@@ -302,8 +317,15 @@
...
@@ -302,8 +317,15 @@
}
}
})
})
},
},
mapInterval
:
function
()
{
mapTime
=
setInterval
(
this
.
init
,
this
.
setTime
)
},
//刷新时触发
//刷新时触发
beforeunloadFn
(
e
)
{
beforeunloadFn
(
e
)
{
if
(
mapTime
)
{
clearInterval
(
mapTime
)
mapTime
=
null
}
},
},
//函数防抖
//函数防抖
debounce
(
func
,
wait
)
{
debounce
(
func
,
wait
)
{
...
...
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