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
6fe7e40e
Commit
6fe7e40e
authored
Apr 15, 2019
by
xiedong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加一个外部版本
parent
39b65f8f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
13 deletions
+33
-13
index.js
config/index.js
+1
-0
navLeft.vue
src/components/navLeft.vue
+4
-3
Login.vue
src/views/Login.vue
+2
-0
RobotDetails.vue
src/views/RobotDetails.vue
+14
-5
overview.vue
src/views/overview.vue
+12
-5
No files found.
config/index.js
View file @
6fe7e40e
...
@@ -13,6 +13,7 @@ module.exports = {
...
@@ -13,6 +13,7 @@ module.exports = {
'/asset_monitor'
:
{
'/asset_monitor'
:
{
// target: 'http://13.70.1.145:4567', //正式
// target: 'http://13.70.1.145:4567', //正式
target
:
'http://172.16.100.22:46656'
,
// 测试
target
:
'http://172.16.100.22:46656'
,
// 测试
// target: 'http://172.16.100.22:46657', // 测试
// secure: false, // 如果是https接口,需要配置这个参数
// secure: false, // 如果是https接口,需要配置这个参数
changeOrigin
:
true
,
// 如果接口跨域,需要进行这个参数配置
changeOrigin
:
true
,
// 如果接口跨域,需要进行这个参数配置
pathRewrite
:
{
pathRewrite
:
{
...
...
src/components/navLeft.vue
View file @
6fe7e40e
...
@@ -18,10 +18,10 @@
...
@@ -18,10 +18,10 @@
<el-menu-item
index=
"/monitor/BTY"
>
BTY
</el-menu-item>
<el-menu-item
index=
"/monitor/BTY"
>
BTY
</el-menu-item>
<el-menu-item
index=
"/monitor/YCC"
>
YCC
</el-menu-item>
<el-menu-item
index=
"/monitor/YCC"
>
YCC
</el-menu-item>
</el-submenu>
</el-submenu>
<el-menu-item
index=
"/monitor/account"
>
<el-menu-item
index=
"/monitor/account"
v-if=
"environment=='inside'"
>
<span
slot=
"title"
>
银行账户
</span>
<span
slot=
"title"
>
银行账户
</span>
</el-menu-item>
</el-menu-item>
<el-menu-item
index=
"/monitor/coinRecharge"
>
<el-menu-item
index=
"/monitor/coinRecharge"
v-if=
"environment=='inside'"
>
<span
slot=
"title"
>
币种充提统计
</span>
<span
slot=
"title"
>
币种充提统计
</span>
</el-menu-item>
</el-menu-item>
</el-menu>
</el-menu>
...
@@ -33,7 +33,8 @@
...
@@ -33,7 +33,8 @@
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
active
:
''
active
:
''
,
environment
:
sessionStorage
.
getItem
(
'environment'
),
}
}
},
},
props
:
[
'platInfo'
],
props
:
[
'platInfo'
],
...
...
src/views/Login.vue
View file @
6fe7e40e
...
@@ -255,6 +255,8 @@ export default {
...
@@ -255,6 +255,8 @@ export default {
localStorage
[
"password"
]
=
this
.
isSaveLoginInfo
?
password
:
""
;
localStorage
[
"password"
]
=
this
.
isSaveLoginInfo
?
password
:
""
;
localStorage
[
"username"
]
=
this
.
loginEmail
;
localStorage
[
"username"
]
=
this
.
loginEmail
;
sessionStorage
.
setItem
(
"isLogin"
,
true
);
sessionStorage
.
setItem
(
"isLogin"
,
true
);
console
.
log
(
res
)
sessionStorage
.
setItem
(
"environment"
,
res
.
data
.
data
.
class
);
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/monitor/home'
path
:
'/monitor/home'
})
})
...
...
src/views/RobotDetails.vue
View file @
6fe7e40e
...
@@ -18,14 +18,16 @@
...
@@ -18,14 +18,16 @@
<div
class=
"dashboard"
<div
class=
"dashboard"
:class=
"[(robotDetailInfo.base_status==='abnormal' ||robotDetailInfo.coin_status==='abnormal' || robotDetailInfo.profit_status === 'abnormal') ? 'abnormal' : robotDetailInfo.status || 'normal']"
>
:class=
"[(robotDetailInfo.base_status==='abnormal' ||robotDetailInfo.coin_status==='abnormal' || robotDetailInfo.profit_status === 'abnormal') ? 'abnormal' : robotDetailInfo.status || 'normal']"
>
<div
class=
"chart-box"
>
<div
class=
"chart-box"
>
<p
class=
"title"
>
今日盈亏
</p>
<p
class=
"title"
v-if=
"environment=='inside'"
>
今日盈亏
</p>
<p
class=
"data"
<p
class=
"data"
:class=
"robotInfo.today_profit && robotInfo.today_profit.indexOf('-')!== -1 ? 'lose' : 'gain'"
>
:class=
"robotInfo.today_profit && robotInfo.today_profit.indexOf('-')!== -1 ? 'lose' : 'gain'"
v-if=
"environment=='inside'"
>
{{
robotInfo
.
today_profit
}}
</p>
{{
robotInfo
.
today_profit
}}
</p>
<div
class=
"type-box"
>
<div
class=
"type-box"
>
<p
v-show=
"robotInfo.status==='normal'"
class=
"type"
>
正在运行
</p>
<p
v-show=
"robotInfo.status==='normal'"
class=
"type"
:class=
"
{'inside':environment=='inside','outside':environment=='outside'}"
>正在运行
</p>
<p
v-show=
"robotInfo.status==='stop'"
class=
"type"
>
停止运行
</p>
<p
v-show=
"robotInfo.status==='stop'"
class=
"type"
:class=
"
{'inside':environment=='inside','outside':environment=='outside'}"
>停止运行
</p>
<p>
<p
v-if=
"environment=='inside'"
>
<span
class=
"result"
>
总盈亏
</span>
<span
class=
"result"
>
总盈亏
</span>
<span
class=
"data"
<span
class=
"data"
:class=
"robotInfo.all_profit && robotInfo.all_profit.indexOf('-')!== -1 ? 'lose' : 'gain'"
>
{{
robotInfo
.
all_profit
}}
</span>
:class=
"robotInfo.all_profit && robotInfo.all_profit.indexOf('-')!== -1 ? 'lose' : 'gain'"
>
{{
robotInfo
.
all_profit
}}
</span>
...
@@ -595,6 +597,7 @@
...
@@ -595,6 +597,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
environment
:
sessionStorage
.
getItem
(
'environment'
),
robotBankList
:
JSON
.
parse
(
sessionStorage
.
getItem
(
'robotBankList'
)),
robotBankList
:
JSON
.
parse
(
sessionStorage
.
getItem
(
'robotBankList'
)),
robotDetailInfo
:
JSON
.
parse
(
sessionStorage
.
getItem
(
'robotDetailInfo'
)),
robotDetailInfo
:
JSON
.
parse
(
sessionStorage
.
getItem
(
'robotDetailInfo'
)),
robotInfo
:
{},
robotInfo
:
{},
...
@@ -1259,8 +1262,14 @@
...
@@ -1259,8 +1262,14 @@
font-size
:
14px
;
font-size
:
14px
;
/*color:rgba(76,171,115,1);*/
/*color:rgba(76,171,115,1);*/
line-height
:
20px
;
line-height
:
20px
;
/* margin: -10px 0 4px 0; */
}
.inside
{
margin
:
-10px
0
4px
0
;
margin
:
-10px
0
4px
0
;
}
}
.outside
{
margin
:
-50px
0
4px
0
;
}
.result
{
.result
{
font-size
:
12px
;
font-size
:
12px
;
color
:
rgba
(
128
,
128
,
128
,
1
);
color
:
rgba
(
128
,
128
,
128
,
1
);
...
...
src/views/overview.vue
View file @
6fe7e40e
...
@@ -102,12 +102,12 @@
...
@@ -102,12 +102,12 @@
</div>
</div>
<p
class=
"robot-name"
>
{{
item
.
tag
}}
</p>
<p
class=
"robot-name"
>
{{
item
.
tag
}}
</p>
<div
class=
"chart-box"
>
<div
class=
"chart-box"
>
<p
class=
"title"
>
今日盈亏
</p>
<p
v-if=
"environment=='inside'"
class=
"title"
>
今日盈亏
</p>
<p
class=
"data"
:class=
"item.today_profit && item.today_profit.indexOf('-')!== -1 ? 'lose' : 'gain'"
>
{{
item
.
today_profit
}}
</p>
<p
v-if=
"environment=='inside'"
class=
"data"
:class=
"item.today_profit && item.today_profit.indexOf('-')!== -1 ? 'lose' : 'gain'"
>
{{
item
.
today_profit
}}
</p>
<div>
<div>
<p
v-show=
"item.status==='normal'"
class=
"type"
>
正在运行
</p>
<p
v-show=
"item.status==='normal'"
class=
"type"
:class=
"
{'inside':environment=='inside','outside':environment=='outside'}"
>正在运行
</p>
<p
v-show=
"item.status==='stop'"
class=
"type"
>
停止运行
</p>
<p
v-show=
"item.status==='stop'"
class=
"type"
:class=
"
{'inside':environment=='inside','outside':environment=='outside'}"
>停止运行
</p>
<p>
<p
v-if=
"environment=='inside'"
>
<span
class=
"result"
>
总盈亏
</span>
<span
class=
"result"
>
总盈亏
</span>
<span
class=
"data"
:class=
"item.all_profit && item.all_profit.indexOf('-')!== -1 ? 'lose' : 'gain'"
>
{{
item
.
all_profit
}}
</span>
<span
class=
"data"
:class=
"item.all_profit && item.all_profit.indexOf('-')!== -1 ? 'lose' : 'gain'"
>
{{
item
.
all_profit
}}
</span>
</p>
</p>
...
@@ -144,6 +144,7 @@
...
@@ -144,6 +144,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
environment
:
sessionStorage
.
getItem
(
'environment'
),
robotAccount
:
''
,
//通过机器人账户搜索
robotAccount
:
''
,
//通过机器人账户搜索
_robotAccount
:
''
,
//说明通过机器人账户搜索成功
_robotAccount
:
''
,
//说明通过机器人账户搜索成功
platform
:
''
,
//导航选中的交易所
platform
:
''
,
//导航选中的交易所
...
@@ -732,8 +733,14 @@
...
@@ -732,8 +733,14 @@
.type
{
.type
{
font-size
:
14px
;
font-size
:
14px
;
line-height
:
20px
;
line-height
:
20px
;
/* margin: -10px 0 4px 0; */
}
.inside
{
margin
:
-10px
0
4px
0
;
margin
:
-10px
0
4px
0
;
}
}
.outside
{
margin
:
-50px
0
4px
0
;
}
.result
{
.result
{
font-size
:
12px
;
font-size
:
12px
;
color
:
rgba
(
128
,
128
,
128
,
1
);
color
:
rgba
(
128
,
128
,
128
,
1
);
...
...
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