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
1ae73bbc
Commit
1ae73bbc
authored
Jul 27, 2018
by
wxk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
eecb508a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
10 deletions
+12
-10
navLeft.vue
src/components/navLeft.vue
+2
-2
index.js
src/router/index.js
+4
-0
RobotContainer.vue
src/views/RobotContainer.vue
+1
-3
RobotDetails.vue
src/views/RobotDetails.vue
+3
-3
overview.vue
src/views/overview.vue
+2
-2
No files found.
src/components/navLeft.vue
View file @
1ae73bbc
...
...
@@ -38,8 +38,9 @@
},
methods
:
{
navClick
(
index
)
{
Bus
.
$emit
(
'refresh'
);
if
(
this
.
active
!=
'account'
){
this
.
$router
.
push
(
`/monitor/
${
index
}
`
)
this
.
$router
.
push
(
`/monitor/
${
index
}
`
)
;
}
else
{
this
.
$router
.
push
(
'/monitor/account'
);
}
...
...
@@ -47,7 +48,6 @@
},
watch
:
{
$route
()
{
Bus
.
$emit
(
'refresh'
);
this
.
active
=
this
.
$route
.
params
.
name
||
'account'
;
}
}
...
...
src/router/index.js
View file @
1ae73bbc
...
...
@@ -51,6 +51,10 @@ export default new Router({
]
}
]
},
{
path
:
'*'
,
redirect
:
'/monitor/account'
,
}
]
})
src/views/RobotContainer.vue
View file @
1ae73bbc
<
template
>
<div
class=
"box"
>
<keep-alive>
<router-view
:platInfo=
"platInfo"
></router-view>
</keep-alive>
<router-view
:platInfo=
"platInfo"
></router-view>
</div>
</
template
>
...
...
src/views/RobotDetails.vue
View file @
1ae73bbc
...
...
@@ -540,7 +540,7 @@
},
//返回上一页(关闭详情)
closeDetails
()
{
Bus
.
$emit
(
'back'
);
//
Bus.$emit('back');
this
.
$router
.
go
(
-
1
);
},
//查询行情信息
...
...
@@ -864,10 +864,10 @@
}
},
watch
:
{
$route
()
{
/*
$route() {
this.robotDetailInfo = JSON.parse(sessionStorage.getItem('robotDetailInfo'));
this.init();
},
},
*/
robotDetailInfo
()
{
this
.
init
();
},
...
...
src/views/overview.vue
View file @
1ae73bbc
...
...
@@ -178,7 +178,7 @@
this
.
init
();
},
0
)
});
Bus
.
$on
(
'back'
,
()
=>
{
/*
Bus.$on('back', ()=>{
let Params = {
class: "robot", //账户级别
coin: [], //目标币种,用于首页里的筛选和币种监控 可选参数
...
...
@@ -198,7 +198,7 @@
Params.platform = this.checkedWebs;
}
this.getRobotList(Params);
})
})
*/
},
methods
:
{
init
()
{
...
...
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