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
aec032a0
Commit
aec032a0
authored
Jul 25, 2018
by
wxk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
321e46af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
19 deletions
+7
-19
RobotDetails.vue
src/views/RobotDetails.vue
+5
-13
overview.vue
src/views/overview.vue
+2
-6
No files found.
src/views/RobotDetails.vue
View file @
aec032a0
...
...
@@ -9,17 +9,13 @@
<div
class=
"dashboard"
:class=
"[(robotDetailInfo.base_status==='abnormal' ||robotDetailInfo.coin_status==='abnormal' || robotDetailInfo.profit_status === 'abnormal') ? 'abnormal' : robotDetailInfo.status || 'normal']"
>
<div
class=
"chart-box"
>
<p
class=
"title"
>
今日盈亏
</p>
<p
v-show=
"robotInfo.today_profit>0"
class=
"data gain"
>
+
{{
(
robotInfo
.
today_profit
*
100
).
toFixed
(
2
)
}}
%
</p>
<p
v-show=
"robotInfo.today_profit
<0
"
class=
"data lose"
>
-
{{
(
robotInfo
.
today_profit
*
100
).
toFixed
(
2
)
}}
%
</p>
<p
v-show=
"robotInfo.today_profit==0"
class=
"data none"
>
- -
</p>
<p
class=
"data"
:class=
"robotInfo.today_profit && robotInfo.today_profit.indexOf('-')!== -1 ? 'lose' : 'gain'"
>
{{
robotInfo
.
today_profit
}}
</p>
<div
class=
"type-box"
>
<p
v-show=
"robotInfo.status==='normal'"
class=
"type"
>
正在运行
</p>
<p
v-show=
"robotInfo.status==='stop'"
class=
"type"
>
停止运行
</p>
<p>
<span
class=
"result"
>
总盈亏
</span>
<span
v-show=
"robotInfo.all_profit>0"
class=
"data gain"
>
+
{{
(
robotInfo
.
all_profit
*
100
).
toFixed
(
2
)
}}
%
</span>
<span
v-show=
"robotInfo.all_profit
<0
"
class=
"data lose"
>
-
{{
(
robotInfo
.
all_profit
*
100
).
toFixed
(
2
)
}}
%
</span>
<span
v-show=
"robotInfo.all_profit==0"
class=
"data none"
>
- -
</span>
<span
class=
"data"
:class=
"robotInfo.all_profit && robotInfo.all_profit.indexOf('-')!== -1 ? 'lose' : 'gain'"
>
{{
robotInfo
.
all_profit
}}
</span>
</p>
</div>
<div
class=
"switch"
>
...
...
@@ -323,7 +319,7 @@
<el-table-column
label=
"充提前数量"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
beforeRecharge
===
-
1
?
'--'
:
scope
.
row
.
beforeRecharge
}}
</span>
<span>
{{
scope
.
row
.
beforeRecharge
===
'-1'
?
'--'
:
scope
.
row
.
beforeRecharge
}}
</span>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -335,7 +331,7 @@
<el-table-column
label=
"充提后数量"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
afterRecharge
===
-
1
?
'--'
:
scope
.
row
.
afterRecharge
}}
</span>
<span>
{{
scope
.
row
.
afterRecharge
===
'-1'
?
'--'
:
scope
.
row
.
afterRecharge
}}
</span>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -739,7 +735,7 @@
this
.
recordsCountList
=
result
.
total
;
if
(
result
.
list
)
{
this
.
list1
=
result
.
list
.
map
(
item
=>
{
item
.
fee
=
item
.
fee
===
-
1
?
'--'
:
item
.
fee
+
item
.
coin
;
item
.
fee
=
item
.
fee
===
'-1'
?
'--'
:
item
.
fee
+
item
.
coin
;
item
.
opt
=
item
.
opt
===
"0"
?
"充币"
:
"提币"
;
item
.
status
=
item
.
status
===
"0"
?
"成功"
:
"失败"
;
return
item
;
...
...
@@ -848,10 +844,6 @@
}
},
watch
:
{
robotBankList
(
val
)
{
this
.
robotBankList
=
val
;
// console.log(this.robotBankList);
},
robotDetailInfo
()
{
this
.
init
();
},
...
...
src/views/overview.vue
View file @
aec032a0
...
...
@@ -98,17 +98,13 @@
<p
class=
"robot-name"
>
{{
item
.
tag
}}
</p>
<div
class=
"chart-box"
>
<p
class=
"title"
>
今日盈亏
</p>
<p
v-show=
"item.today_profit>0"
class=
"data gain"
>
+
{{
(
item
.
today_profit
*
100
).
toFixed
(
2
)
}}
%
</p>
<p
v-show=
"item.today_profit
<0
"
class=
"data lose"
>
-
{{
(
item
.
today_profit
*
100
).
toFixed
(
2
)
}}
%
</p>
<p
v-show=
"item.today_profit==0"
class=
"data none"
>
- -
</p>
<p
class=
"data"
:class=
"item.today_profit && item.today_profit.indexOf('-')!== -1 ? 'lose' : 'gain'"
>
{{
item
.
today_profit
}}
</p>
<div>
<p
v-show=
"item.status==='normal'"
class=
"type"
>
正在运行
</p>
<p
v-show=
"item.status==='stop'"
class=
"type"
>
停止运行
</p>
<p>
<span
class=
"result"
>
总盈亏
</span>
<span
v-show=
"item.all_profit>0"
class=
"data gain"
>
+
{{
(
item
.
all_profit
*
100
).
toFixed
(
2
)
}}
%
</span>
<span
v-show=
"item.all_profit
<0
"
class=
"data lose"
>
-
{{
(
item
.
all_profit
*
100
).
toFixed
(
2
)
}}
%
</span>
<span
v-show=
"item.all_profit==0"
class=
"data none"
>
- -
</span>
<span
class=
"data"
:class=
"item.all_profit && item.all_profit.indexOf('-')!== -1 ? 'lose' : 'gain'"
>
{{
item
.
all_profit
}}
</span>
</p>
</div>
</div>
...
...
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