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
891819dd
Commit
891819dd
authored
Sep 08, 2021
by
xiexingan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6fbb9435
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
index.vue
src/pages/routes/ol/index/index.vue
+9
-4
No files found.
src/pages/routes/ol/index/index.vue
View file @
891819dd
...
...
@@ -174,7 +174,12 @@
methods
:
{
handleStation
(
id
)
{
console
.
log
(
'站点id'
,
id
)
let
currenLinetItem
=
this
.
stationList
.
filter
(
e
=>
e
.
id
===
id
)
localStorage
.
currenLineId
=
currenLinetItem
[
0
].
lineId
this
.
sId
=
id
localStorage
.
stationName
=
currenLinetItem
[
0
].
stationName
localStorage
.
stationId
=
id
localStorage
.
lineId
=
this
.
lineId
that
.
$http
({
url
:
that
.
$http
.
adornUrl
(
'/sys/menu/nav1'
),
method
:
'get'
,
...
...
@@ -370,10 +375,10 @@
params
:
this
.
$http
.
adornParams
(
params
)
}).
then
(
data
=>
{
if
(
data
&&
data
.
code
===
0
)
{
console
.
log
(
'alarm'
,
data
)
//
console.log('alarm', data)
this
.
alarmList
=
data
.
list
this
.
stationAlarmList
=
data
.
stationAlarmList
console
.
log
(
'stationAlarmList:'
,
this
.
stationAlarmList
)
//
console.log('stationAlarmList:', this.stationAlarmList)
isSuccess
=
true
this
.
oneCount
=
data
.
countList
.
oneCount
this
.
twoCount
=
data
.
countList
.
twoCount
...
...
@@ -407,7 +412,7 @@
params
:
this
.
$http
.
adornParams
(
params
)
}).
then
(
data
=>
{
if
(
data
)
{
console
.
log
(
'stationList:'
,
data
.
list
[
0
])
//
console.log('stationList:', data.list[0])
// 站点集合
this
.
stationList
=
data
.
list
[
0
]
// 线路
...
...
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