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
c1db7246
Commit
c1db7246
authored
Aug 15, 2018
by
汪晓凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
筛选条件默认为空
parent
e3549f1d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
35 deletions
+34
-35
RobotDetails.vue
src/views/RobotDetails.vue
+12
-13
account.vue
src/views/account.vue
+2
-2
coinRecharge.vue
src/views/coinRecharge.vue
+3
-3
container.vue
src/views/container.vue
+3
-1
overview.vue
src/views/overview.vue
+14
-16
No files found.
src/views/RobotDetails.vue
View file @
c1db7246
...
...
@@ -598,8 +598,8 @@
total
:
0
,
//记录总条数
list
:
[],
//表格数据
isIndeterminate
:
true
,
checkAll
:
tru
e
,
checkedOptions
:
[
'0'
,
'1'
],
checkAll
:
fals
e
,
checkedOptions
:
[],
options
:
[
"买入"
,
"卖出"
],
/*充提记录参数*/
transactionTime1
:
null
,
// 时间筛选
...
...
@@ -609,15 +609,15 @@
list1
:
[],
//表格数据
recordsCountList
:
[],
//充提记录统计
isIndeterminate2
:
true
,
checkAll2
:
tru
e
,
checkedOptions1
:
[
'0'
,
'1'
],
checkAll2
:
fals
e
,
checkedOptions1
:
[],
options1
:
[
"充币"
,
"提币"
],
isIndeterminate3
:
true
,
checkAll3
:
false
,
checkedStates1
:
[
'0'
],
states1
:
[
"成功"
,
"失败"
],
isIndeterminate4
:
true
,
//币种筛选
checkAll4
:
tru
e
,
checkAll4
:
fals
e
,
checkedCoins
:
[],
coins
:
[],
Loading
:
false
,
//充提币后数据加载标志
...
...
@@ -638,7 +638,7 @@
//页面初始化
init
()
{
this
.
robotDetailInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'robotDetailInfo'
));
this
.
c
heckedCoins
=
this
.
c
oins
=
[
this
.
robotDetailInfo
.
coin
,
this
.
robotDetailInfo
.
base
];
this
.
coins
=
[
this
.
robotDetailInfo
.
coin
,
this
.
robotDetailInfo
.
base
];
this
.
getWalletInfo
();
this
.
getTransaction
();
this
.
getRecords
();
...
...
@@ -862,10 +862,9 @@
//查询充提记录
getRecords
(
params
)
{
this
.
recordsLoading
=
true
;
const
Coin
=
this
.
checkedCoins
.
length
!==
0
?
this
.
checkedCoins
:
this
.
coins
;
const
baseParams
=
{
account
:
this
.
robotDetailInfo
.
account
,
coin
:
Coin
,
coin
:
this
.
checkedCoins
,
page
:
"1"
,
size
:
this
.
pageSize1
+
''
,
opt
:
this
.
checkedOptions1
,
...
...
@@ -1065,8 +1064,8 @@
this
.
total
=
0
;
//记录总条数
this
.
list
=
[];
//表格数据
this
.
isIndeterminate
=
true
;
this
.
checkAll
=
tru
e
;
this
.
checkedOptions
=
[
'0'
,
'1'
];
this
.
checkAll
=
fals
e
;
this
.
checkedOptions
=
[];
/*充提记录参数*/
this
.
transactionTime1
=
null
;
// 时间筛选
this
.
pageSize1
=
10
;
//表格每页的条数
...
...
@@ -1075,13 +1074,13 @@
this
.
list1
=
[];
//表格数据
this
.
recordsCountList
=
[];
//充提记录统计
this
.
isIndeterminate2
=
true
;
this
.
checkAll2
=
tru
e
;
this
.
checkedOptions1
=
[
'0'
,
'1'
];
this
.
checkAll2
=
fals
e
;
this
.
checkedOptions1
=
[];
this
.
isIndeterminate3
=
true
;
this
.
checkAll3
=
false
;
this
.
checkedStates1
=
[
'0'
];
this
.
isIndeterminate4
=
true
;
//币种筛选
this
.
checkAll4
=
tru
e
;
this
.
checkAll4
=
fals
e
;
this
.
checkedCoins
=
[];
this
.
coins
=
[];
this
.
Loading
=
false
;
//充提币后数据加载标志
...
...
src/views/account.vue
View file @
c1db7246
...
...
@@ -337,7 +337,7 @@
pageSize
:
10
,
transactionTime
:
''
,
//操作记录时间筛选
isIndeterminate
:
true
,
checkAll
:
tru
e
,
checkAll
:
fals
e
,
checkedCoins
:
[],
transactionLoading
:
false
,
//操作记录表格刷新标志
foldBar
:
true
,
...
...
@@ -379,7 +379,7 @@
this
.
walletInfo
.
forEach
(
item
=>
{
this
.
coinList
.
push
(
item
.
coin
);
})
this
.
c
heckedCoins
=
this
.
c
oinList
=
[...
new
Set
(
this
.
coinList
)];
this
.
coinList
=
[...
new
Set
(
this
.
coinList
)];
this
.
getRecords
(
'1'
,
'init'
);
this
.
getBankConfig
();
})
...
...
src/views/coinRecharge.vue
View file @
c1db7246
...
...
@@ -111,7 +111,7 @@
Loading
:
false
,
checkedWeb
:
''
,
webs
:
[],
checkAll0
:
tru
e
,
//币种筛选
checkAll0
:
fals
e
,
//币种筛选
checkedCurrencies
:
[],
currencies
:
[],
//符合交易所条件的所有币种
isIndeterminate0
:
true
,
...
...
@@ -135,7 +135,7 @@
this
.
checkedWeb
=
this
.
webs
[
0
];
for
(
let
item
of
JSON
.
parse
(
sessionStorage
.
getItem
(
'platInfo'
)))
{
if
(
item
.
platform
===
this
.
checkedWeb
)
{
this
.
c
heckedCurrencies
=
this
.
c
urrencies
=
item
.
coin
;
this
.
currencies
=
item
.
coin
;
}
}
this
.
getRechargeList
();
...
...
@@ -145,7 +145,7 @@
this
.
checkedWeb
=
val
;
for
(
let
item
of
JSON
.
parse
(
sessionStorage
.
getItem
(
'platInfo'
)))
{
if
(
item
.
platform
===
this
.
checkedWeb
)
{
this
.
c
heckedCurrencies
=
this
.
c
urrencies
=
item
.
coin
;
this
.
currencies
=
item
.
coin
;
}
}
this
.
getRechargeList
();
...
...
src/views/container.vue
View file @
c1db7246
...
...
@@ -6,7 +6,9 @@
<nav-left
:platInfo=
"platInfo"
></nav-left>
</div>
<div
class=
"main"
ref=
"mainBox"
>
<router-view
:platInfo=
"platInfo"
></router-view>
<keep-alive>
<router-view
:platInfo=
"platInfo"
></router-view>
</keep-alive>
</div>
</div>
</div>
...
...
src/views/overview.vue
View file @
c1db7246
...
...
@@ -161,18 +161,18 @@
robotList
:
[],
//符合条件的机器人列表
robotDetailInfo
:
''
,
subtitle
:
'所有机器人'
,
//副标题
checkAll
:
tru
e
,
//交易所筛选
checkAll
:
fals
e
,
//交易所筛选
checkedWebs
:
[],
webs
:
[],
isIndeterminate
:
true
,
foldExchange
:
true
,
checkAll0
:
tru
e
,
//币种筛选
checkAll0
:
fals
e
,
//币种筛选
checkedCurrencies
:
[],
allCurrencies
:
[],
//所有币种
currencies
:
[],
//符合交易所条件的所有币种
isIndeterminate0
:
true
,
foldExchange0
:
true
,
checkAll1
:
tru
e
,
//交易对筛选
checkAll1
:
fals
e
,
//交易对筛选
checkedPairs
:
[],
pairs
:
[],
isIndeterminate1
:
true
,
...
...
@@ -193,23 +193,23 @@
ClickOutside
},
created
()
{
this
.
checkedWebs
=
this
.
webs
=
this
.
webs
.
length
===
0
&&
sessionStorage
.
getItem
(
'webs'
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'webs'
))
:
this
.
webs
;
this
.
c
heckedCurrencies
=
this
.
c
urrencies
=
this
.
currencies
.
length
===
0
&&
sessionStorage
.
getItem
(
'currencies'
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'currencies'
))
:
this
.
currencies
;
this
.
webs
=
this
.
webs
.
length
===
0
&&
sessionStorage
.
getItem
(
'webs'
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'webs'
))
:
this
.
webs
;
this
.
currencies
=
this
.
currencies
.
length
===
0
&&
sessionStorage
.
getItem
(
'currencies'
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'currencies'
))
:
this
.
currencies
;
this
.
init
();
Bus
.
$on
(
'refresh'
,
()
=>
{
this
.
robotAccount
=
this
.
_robotAccount
=
''
;
this
.
checkAll
=
tru
e
;
this
.
checkAll
=
fals
e
;
this
.
isIndeterminate
=
true
;
this
.
foldExchange
=
true
;
this
.
checkAll0
=
tru
e
;
this
.
checkAll0
=
fals
e
;
this
.
isIndeterminate0
=
true
;
this
.
foldExchange0
=
true
;
this
.
checkAll1
=
tru
e
;
this
.
checkAll1
=
fals
e
;
this
.
isIndeterminate1
=
true
;
this
.
foldExchange1
=
true
;
this
.
checkedWebs
=
this
.
webs
;
this
.
checkedCurrencies
=
this
.
currencies
;
this
.
checkedPairs
=
this
.
pairs
;
this
.
checkedWebs
=
[]
;
this
.
checkedCurrencies
=
[]
;
this
.
checkedPairs
=
[]
;
this
.
robotStatus
=
''
,
//机器人状态
this
.
subtitle
=
'所有机器人'
;
this
.
init
();
...
...
@@ -253,7 +253,7 @@
var
index
=
+
RouteParam
;
this
.
pairs
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'platInfo'
))[
index
].
symbol
;
if
(
type
!==
'back'
)
{
this
.
checkedPairs
=
this
.
pairs
;
this
.
checkedPairs
=
[]
;
}
this
.
platform
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'platInfo'
))[
index
].
platform
;
StatusParams
.
platform
=
this
.
platform
;
...
...
@@ -321,8 +321,8 @@
this
.
isIndeterminate
=
false
;
this
.
currencies
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'currencies'
));
// console.log(this.allCurrencies);
this
.
checkedCurrencies
=
this
.
currencies
;
this
.
checkAll0
=
tru
e
;
this
.
checkedCurrencies
=
[]
;
this
.
checkAll0
=
fals
e
;
let
ListParams
=
this
.
RobotListParams
;
ListParams
.
platform
=
[];
const
RoutePath
=
this
.
$route
.
params
.
name
;
...
...
@@ -502,8 +502,6 @@
sessionStorage
.
setItem
(
'webs'
,
JSON
.
stringify
(
this
.
webs
));
sessionStorage
.
setItem
(
'currencies'
,
JSON
.
stringify
(
this
.
currencies
));
}
this
.
checkedWebs
=
this
.
webs
;
this
.
checkedCurrencies
=
this
.
allCurrencies
;
}
}
};
...
...
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