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
9746fbbd
Commit
9746fbbd
authored
Aug 07, 2018
by
汪晓凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式修改1
parent
7a548d85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
20 deletions
+17
-20
navLeft.vue
src/components/navLeft.vue
+1
-0
overview.vue
src/views/overview.vue
+16
-20
No files found.
src/components/navLeft.vue
View file @
9746fbbd
...
...
@@ -82,6 +82,7 @@
}
ul
.el-menu-vertical-demo
>
li
{
border-radius
:
4px
;
overflow
:
hidden
;
}
</
style
>
<
style
>
...
...
src/views/overview.vue
View file @
9746fbbd
...
...
@@ -158,18 +158,18 @@
robotList
:
[],
//符合条件的机器人列表
robotDetailInfo
:
''
,
subtitle
:
'所有机器人'
,
//副标题
checkAll
:
fals
e
,
//交易所筛选
checkAll
:
tru
e
,
//交易所筛选
checkedWebs
:
[],
webs
:
[],
isIndeterminate
:
true
,
foldExchange
:
true
,
checkAll0
:
fals
e
,
//币种筛选
checkAll0
:
tru
e
,
//币种筛选
checkedCurrencies
:
[],
allCurrencies
:
[],
//所有币种
currencies
:
[],
//符合交易所条件的所有币种
isIndeterminate0
:
true
,
foldExchange0
:
true
,
checkAll1
:
fals
e
,
//交易对筛选
checkAll1
:
tru
e
,
//交易对筛选
checkedPairs
:
[],
pairs
:
[],
isIndeterminate1
:
true
,
...
...
@@ -181,31 +181,26 @@
},
props
:
[
'platInfo'
],
created
()
{
this
.
webs
=
this
.
webs
.
length
===
0
&&
sessionStorage
.
getItem
(
'webs'
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'webs'
))
:
this
.
webs
;
this
.
currencies
=
this
.
currencies
.
length
===
0
&&
sessionStorage
.
getItem
(
'currencies'
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'currencies'
))
:
this
.
currencies
;
this
.
checkedWebs
=
this
.
webs
=
this
.
webs
.
length
===
0
&&
sessionStorage
.
getItem
(
'webs'
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'webs'
))
:
this
.
webs
;
this
.
c
heckedCurrencies
=
this
.
c
urrencies
=
this
.
currencies
.
length
===
0
&&
sessionStorage
.
getItem
(
'currencies'
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'currencies'
))
:
this
.
currencies
;
this
.
init
();
Bus
.
$on
(
'refresh'
,
()
=>
{
this
.
robotAccount
=
this
.
_robotAccount
=
''
;
this
.
checkAll
=
fals
e
;
this
.
checkAll
=
tru
e
;
this
.
isIndeterminate
=
true
;
this
.
foldExchange
=
true
;
this
.
checkAll0
=
fals
e
;
this
.
checkAll0
=
tru
e
;
this
.
isIndeterminate0
=
true
;
this
.
foldExchange0
=
true
;
this
.
checkAll1
=
false
;
this
.
checkedPairs
=
[];
this
.
checkAll1
=
true
;
this
.
isIndeterminate1
=
true
;
this
.
foldExchange1
=
true
;
this
.
checkedWebs
=
[]
;
this
.
checkedCurrencies
=
[]
;
this
.
checkedPairs
=
[]
;
this
.
checkedWebs
=
this
.
webs
;
this
.
checkedCurrencies
=
this
.
currencies
;
this
.
checkedPairs
=
this
.
pairs
;
this
.
robotStatus
=
''
,
//机器人状态
this
.
subtitle
=
'所有机器人'
;
this
.
init
();
/* setTimeout(()=>{
this.init();
},0)*/
});
Bus
.
$on
(
'back'
,
()
=>
{
this
.
init
(
'back'
);
...
...
@@ -240,7 +235,7 @@
this
.
showPairFilter
=
true
;
this
.
showWebFilter
=
this
.
showCurrencyFilter
=
false
;
var
index
=
+
RoutePath
;
this
.
pairs
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'platInfo'
))[
index
].
symbol
;
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
];
...
...
@@ -306,9 +301,10 @@
this
.
robotAccount
=
this
.
_robotAccount
=
''
;
this
.
checkedWebs
=
val
?
this
.
webs
:
[];
this
.
isIndeterminate
=
false
;
this
.
currencies
=
this
.
allCurrencies
;
this
.
checkedCurrencies
=
[];
this
.
checkAll0
=
false
;
this
.
currencies
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'currencies'
));
// console.log(this.allCurrencies);
this
.
checkedCurrencies
=
this
.
currencies
;
this
.
checkAll0
=
true
;
let
ListParams
=
this
.
RobotListParams
;
ListParams
.
platform
=
[];
const
RoutePath
=
this
.
$route
.
params
.
name
;
...
...
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