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
ad481c16
Commit
ad481c16
authored
Aug 08, 2018
by
汪晓凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取机器人配置并展示
parent
47532b5e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
api-config.js
src/config/api-config.js
+4
-0
account.vue
src/views/account.vue
+39
-1
No files found.
src/config/api-config.js
View file @
ad481c16
...
@@ -17,6 +17,10 @@ const Api = {
...
@@ -17,6 +17,10 @@ const Api = {
Excle
:
originUrl
+
'/recordsExcle'
,
//导出充提记录
Excle
:
originUrl
+
'/recordsExcle'
,
//导出充提记录
GetCountCoin
:
originUrl
+
'/countCoin'
,
//币种充提统计查询
GetCountCoin
:
originUrl
+
'/countCoin'
,
//币种充提统计查询
countCoinExcle
:
originUrl
+
'/countCoinExcle'
,
//币种充提统计导出
countCoinExcle
:
originUrl
+
'/countCoinExcle'
,
//币种充提统计导出
GetBankConfig
:
originUrl
+
'/getBankConfig'
,
//获取银行配置
UpdateBankConfig
:
originUrl
+
'/updateBankConfig'
,
//修改银行配置
GetRobotConfig
:
originUrl
+
'/getRobotConfig'
,
//获取机器人配置
UpdateRobotConfig
:
originUrl
+
'updateRobotConfig'
,
//修改机器人配置接口
}
}
export
default
Api
;
export
default
Api
;
src/views/account.vue
View file @
ad481c16
...
@@ -51,7 +51,25 @@
...
@@ -51,7 +51,25 @@
<el-table-column
<el-table-column
label=
"充值总计"
>
label=
"充值总计"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
records
}}
</span>
<span>
{{
scope
.
row
.
records
||
0
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"配置最低值"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
min_amount
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"自动充值金额"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
recharge_amount
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"自动充值限制(次/日)"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
max_recharge_times
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -297,6 +315,22 @@
...
@@ -297,6 +315,22 @@
})
})
this
.
checkedCoins
=
this
.
coinList
=
[...
new
Set
(
this
.
coinList
)];
this
.
checkedCoins
=
this
.
coinList
=
[...
new
Set
(
this
.
coinList
)];
this
.
getRecords
(
'1'
,
'init'
);
this
.
getRecords
(
'1'
,
'init'
);
this
.
getBankConfig
();
})
},
/*获取银行配置*/
getBankConfig
()
{
axios
.
post
(
ApiConfig
.
GetBankConfig
,{
account
:
this
.
bankId
}).
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
)
{
const
configList
=
res
.
data
.
data
;
this
.
walletInfo
=
[...
this
.
walletInfo
.
map
(
item
=>
{
const
coin
=
item
.
coin
;
item
.
min_amount
=
configList
[
item
.
coin
]
?
configList
[
item
.
coin
].
min_amount
:
'--'
;
item
.
recharge_amount
=
configList
[
item
.
coin
]
?
configList
[
item
.
coin
].
recharge_amount
:
'--'
;
item
.
max_recharge_times
=
configList
[
item
.
coin
]
?
configList
[
item
.
coin
].
max_recharge_times
:
'--'
;
return
item
;
})]
}
})
})
},
},
/*查询操作记录*/
/*查询操作记录*/
...
@@ -440,6 +474,10 @@
...
@@ -440,6 +474,10 @@
},
},
},
},
watch
:
{
watch
:
{
//切换银行账户
bankId
(
val
)
{
this
.
init
();
},
//操作记录时间筛选
//操作记录时间筛选
transactionTime
(
val
)
{
transactionTime
(
val
)
{
this
.
getRecords
();
this
.
getRecords
();
...
...
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