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
0d90e068
Commit
0d90e068
authored
Aug 03, 2018
by
wxk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug-fix
parent
03cc210b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
navLeft.vue
src/components/navLeft.vue
+7
-1
index.js
src/router/index.js
+0
-4
container.vue
src/views/container.vue
+3
-0
No files found.
src/components/navLeft.vue
View file @
0d90e068
...
...
@@ -32,13 +32,19 @@
export
default
{
data
(){
return
{
platInfo
:
JSON
.
parse
(
sessionStorage
.
getItem
(
'platInfo'
))
,
platInfo
:
[]
,
active
:
''
}
},
created
()
{
Bus
.
$on
(
'getPlatInfo'
,
val
=>
{
this
.
platInfo
=
val
;
})
this
.
active
=
this
.
$route
.
params
.
name
||
this
.
$route
.
path
;
},
beforeDestroy
()
{
Bus
.
$off
(
'getPlatInfo'
);
},
methods
:
{
navClick
(
index
)
{
this
.
active
=
index
;
...
...
src/router/index.js
View file @
0d90e068
...
...
@@ -51,10 +51,6 @@ export default new Router({
require
([
'../views/RobotDetails.vue'
],
resolve
);
},
},
{
path
:
'account'
,
redirect
:
'/monitor/account'
,
}
]
}
]
...
...
src/views/container.vue
View file @
0d90e068
...
...
@@ -17,6 +17,8 @@
import
NavLeft
from
'../components/navLeft'
import
axios
from
'axios'
;
import
ApiConfig
from
"../config/api-config"
;
import
Bus
from
'../assets/js/bus'
export
default
{
data
()
{
return
{
...
...
@@ -41,6 +43,7 @@
axios
.
post
(
ApiConfig
.
GetPlatformInfo
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
)
{
this
.
platInfo
=
res
.
data
.
data
;
Bus
.
$emit
(
'getPlatInfo'
,
this
.
platInfo
);
sessionStorage
.
setItem
(
'platInfo'
,
JSON
.
stringify
(
this
.
platInfo
))
// console.log(this.platInfo)
}
...
...
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