Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
robot-monitor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
汪晓凯
robot-monitor
Commits
47532b5e
Commit
47532b5e
authored
Aug 08, 2018
by
汪晓凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
fc556d1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
28 deletions
+26
-28
navLeft.vue
src/components/navLeft.vue
+2
-10
overview.vue
src/views/overview.vue
+24
-18
No files found.
src/components/navLeft.vue
View file @
47532b5e
...
...
@@ -38,11 +38,7 @@
},
props
:
[
'platInfo'
],
created
()
{
if
(
this
.
$route
.
path
.
split
(
'/'
).
pop
()
===
'RobotDetail'
)
{
this
.
active
=
this
.
$route
.
path
.
split
(
'/'
).
splice
(
0
,
3
).
join
(
'/'
);
}
else
{
this
.
active
=
this
.
$route
.
path
;
}
this
.
active
=
this
.
$route
.
path
.
split
(
'/'
).
splice
(
0
,
3
).
join
(
'/'
);
},
methods
:
{
navClick
(
index
)
{
...
...
@@ -55,11 +51,7 @@
},
watch
:
{
$route
()
{
if
(
this
.
$route
.
path
.
split
(
'/'
).
pop
()
===
'RobotDetail'
)
{
this
.
active
=
this
.
$route
.
path
.
split
(
'/'
).
splice
(
0
,
3
).
join
(
'/'
);
}
else
{
this
.
active
=
this
.
$route
.
path
;
}
this
.
active
=
this
.
$route
.
path
.
split
(
'/'
).
splice
(
0
,
3
).
join
(
'/'
);
},
},
}
...
...
src/views/overview.vue
View file @
47532b5e
...
...
@@ -225,40 +225,46 @@
methods
:
{
init
(
type
)
{
const
RoutePath
=
this
.
$route
.
path
;
// console.log(RoutePath)
;
const
RouteParam
=
RoutePath
.
split
(
'/'
)[
2
]
;
var
StatusParams
=
{
platform
:
''
,
coin
:
''
};
//预警状态查询入参
switch
(
RoutePath
)
{
case
'/monitor/home'
:
switch
(
RouteParam
)
{
case
'home'
:
this
.
checkedPairs
=
[];
this
.
showWebFilter
=
this
.
showCurrencyFilter
=
true
;
this
.
showPairFilter
=
false
;
this
.
RobotListParams
.
coin
=
[];
this
.
RobotListParams
.
platform
=
[];
break
;
case
'/monitor/BTY'
:
case
'/monitor/YCC'
:
case
'BTY'
:
case
'YCC'
:
this
.
checkedPairs
=
[];
this
.
checkedCurrencies
=
[];
this
.
showWebFilter
=
true
;
this
.
showCurrencyFilter
=
this
.
showPairFilter
=
false
;
StatusParams
.
coin
=
RoutePa
th
.
split
(
'/'
).
pop
()
;
this
.
RobotListParams
.
coin
=
[
RoutePa
th
.
split
(
'/'
).
pop
()
];
StatusParams
.
coin
=
RoutePa
ram
;
this
.
RobotListParams
.
coin
=
[
RoutePa
ram
];
this
.
RobotListParams
.
platform
=
[];
break
;
default
:
if
(
RoutePath
)
{
this
.
showPairFilter
=
true
;
this
.
showWebFilter
=
this
.
showCurrencyFilter
=
false
;
var
index
=
RoutePath
.
split
(
'/'
).
pop
();
this
.
checkedPairs
=
this
.
pairs
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'platInfo'
))[
index
].
symbol
;
this
.
platform
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'platInfo'
))[
index
].
platform
;
StatusParams
.
platform
=
this
.
platform
;
this
.
RobotListParams
.
platform
=
[
this
.
platform
];
this
.
RobotListParams
.
coin
=
[];
this
.
checkedWebs
=
[];
this
.
checkedCurrencies
=
[];
this
.
showPairFilter
=
true
;
this
.
showWebFilter
=
this
.
showCurrencyFilter
=
false
;
var
index
=
+
RouteParam
;
this
.
pairs
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'platInfo'
))[
index
].
symbol
;
if
(
type
!==
'back'
)
{
this
.
checkedPairs
=
this
.
pairs
;
}
this
.
platform
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'platInfo'
))[
index
].
platform
;
StatusParams
.
platform
=
this
.
platform
;
this
.
RobotListParams
.
platform
=
[
this
.
platform
];
this
.
RobotListParams
.
coin
=
[];
break
;
}
this
.
getRobotStatus
(
StatusParams
);
if
(
type
===
'back'
)
{
let
Coin
=
RoutePa
th
===
'BTY'
||
RoutePath
===
'YCC'
?
[
RoutePath
]
:
[];
let
Platform
=
(
RoutePa
th
!==
'home'
&&
RoutePath
!==
'BTY'
&&
RoutePath
!==
'YCC'
)
?
[
this
.
platform
]
:
[];
let
Coin
=
RoutePa
ram
===
'BTY'
||
RouteParam
===
'YCC'
?
[
RouteParam
]
:
[];
let
Platform
=
(
RoutePa
ram
!==
'home'
&&
RouteParam
!==
'BTY'
&&
RouteParam
!==
'YCC'
)
?
[
this
.
platform
]
:
[];
var
Params
=
{
//详情返回时的请求参数
class
:
"robot"
,
//账户级别
coin
:
Coin
,
//目标币种,用于首页里的筛选和币种监控 可选参数
...
...
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