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
4e5d0bc6
Commit
4e5d0bc6
authored
Jul 26, 2018
by
wxk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表格数据单位后端控制,切换路由刷新滚动条
parent
29850592
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
RobotDetails.vue
src/views/RobotDetails.vue
+1
-5
container.vue
src/views/container.vue
+6
-1
No files found.
src/views/RobotDetails.vue
View file @
4e5d0bc6
...
...
@@ -443,7 +443,7 @@
<el-table-column
label=
"手续费"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
fee
}}
</span>
<span>
{{
scope
.
row
.
fee
||
'--'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -710,10 +710,6 @@
this
.
total
=
result
.
count
;
if
(
result
.
list
)
{
this
.
list
=
result
.
list
.
map
(
item
=>
{
const
unit
=
item
.
opt
===
"0"
?
item
.
symbol
.
split
(
'/'
)[
1
]
:
item
.
symbol
.
split
(
'/'
)[
0
];
item
.
price
=
item
.
price
+
unit
;
item
.
sum
=
item
.
sum
+
unit
;
item
.
fee
=
item
.
fee
+
unit
;
item
.
opt
=
item
.
opt
===
"0"
?
"买入"
:
"卖出"
;
return
item
;
})
...
...
src/views/container.vue
View file @
4e5d0bc6
...
...
@@ -5,7 +5,7 @@
<div
class=
"aside"
>
<nav-left
:platInfo=
"platInfo"
></nav-left>
</div>
<div
class=
"main"
>
<div
class=
"main"
ref=
"mainBox"
>
<router-view
:platInfo=
"platInfo"
></router-view>
</div>
</div>
...
...
@@ -58,6 +58,11 @@
}
})
},
},
watch
:
{
$route
()
{
this
.
$refs
.
mainBox
.
scrollTop
=
0
;
}
}
}
</
script
>
...
...
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