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
1c4a69e3
Commit
1c4a69e3
authored
Aug 02, 2018
by
wxk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
银行账户充值统计位置调整
parent
f5877023
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
account.vue
src/views/account.vue
+14
-14
No files found.
src/views/account.vue
View file @
1c4a69e3
...
@@ -49,9 +49,9 @@
...
@@ -49,9 +49,9 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"
总资产
"
>
label=
"
充值总计
"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
amount
}}
</span>
<span>
{{
scope
.
row
.
records
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
end-placeholder=
"结束日期"
>
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
<div
class=
"count-box"
>
<
!--<
div class="count-box">
<span class="fl title">总计: </span>
<span class="fl title">总计: </span>
<ul class="fl">
<ul class="fl">
<li class="fl" v-for="(value,key) in recordsCountList">
<li class="fl" v-for="(value,key) in recordsCountList">
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
<span>{{value}}</span>
<span>{{value}}</span>
</li>
</li>
</ul>
</ul>
</div>
</div>
-->
<el-table
<el-table
v-loading=
"transactionLoading"
v-loading=
"transactionLoading"
:data=
"recordsList"
:data=
"recordsList"
...
@@ -229,12 +229,6 @@
...
@@ -229,12 +229,6 @@
disable-transitions
>
{{
scope
.
row
.
status
===
'0'
?
'充值成功'
:
'充值失败'
}}
</el-tag>
disable-transitions
>
{{
scope
.
row
.
status
===
'0'
?
'充值成功'
:
'充值失败'
}}
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!-- <el-table-column
label="来源">
<template slot-scope="scope">
<span>{{ scope.row.from_account }}</span>
</template>
</el-table-column>-->
</el-table>
</el-table>
<el-pagination
<el-pagination
@
size-change=
"handleSizeChange"
@
size-change=
"handleSizeChange"
...
@@ -262,7 +256,7 @@
...
@@ -262,7 +256,7 @@
walletInfo
:
[],
//资产信息列表
walletInfo
:
[],
//资产信息列表
coinList
:
[],
//资产信息包含的币种
coinList
:
[],
//资产信息包含的币种
recordsList
:
[],
//操作记录总计
recordsList
:
[],
//操作记录总计
recordsCountList
:
[]
,
//操作记录总计列表
recordsCountList
:
{}
,
//操作记录总计列表
recordsCount
:
0
,
//操作记录总条数
recordsCount
:
0
,
//操作记录总条数
currentPage
:
1
,
//操作记录页码
currentPage
:
1
,
//操作记录页码
pageSize
:
10
,
pageSize
:
10
,
...
@@ -289,7 +283,6 @@
...
@@ -289,7 +283,6 @@
/*页面初始化*/
/*页面初始化*/
init
()
{
init
()
{
this
.
getWalletInfo
(
this
.
bankId
);
this
.
getWalletInfo
(
this
.
bankId
);
this
.
getRecords
();
},
},
/*获取资产信息*/
/*获取资产信息*/
getWalletInfo
(
params
)
{
getWalletInfo
(
params
)
{
...
@@ -303,10 +296,11 @@
...
@@ -303,10 +296,11 @@
this
.
coinList
.
push
(
item
.
coin
);
this
.
coinList
.
push
(
item
.
coin
);
})
})
this
.
coinList
=
[...
new
Set
(
this
.
coinList
)];
this
.
coinList
=
[...
new
Set
(
this
.
coinList
)];
this
.
getRecords
(
'1'
,
'init'
);
})
})
},
},
/*查询操作记录*/
/*查询操作记录*/
getRecords
(
page
)
{
getRecords
(
page
,
type
)
{
this
.
transactionLoading
=
true
;
this
.
transactionLoading
=
true
;
let
recordParams
=
{
let
recordParams
=
{
account
:
this
.
bankId
,
account
:
this
.
bankId
,
...
@@ -321,7 +315,13 @@
...
@@ -321,7 +315,13 @@
this
.
transactionLoading
=
false
;
this
.
transactionLoading
=
false
;
this
.
recordsList
=
res
.
data
.
data
.
list
;
this
.
recordsList
=
res
.
data
.
data
.
list
;
this
.
recordsCount
=
res
.
data
.
data
.
count
;
this
.
recordsCount
=
res
.
data
.
data
.
count
;
this
.
recordsCountList
=
res
.
data
.
data
.
total
;
if
(
type
===
'init'
)
{
this
.
recordsCountList
=
res
.
data
.
data
.
total
;
this
.
walletInfo
=
[...
this
.
walletInfo
.
map
(
item
=>
{
item
.
records
=
this
.
recordsCountList
[
item
.
coin
]
return
item
;
})]
}
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
this
.
transactionLoading
=
false
;
this
.
transactionLoading
=
false
;
this
.
$notify
({
this
.
$notify
({
...
...
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