Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
bp
op-web-service
Commits
bc9d0910
Commit
bc9d0910
authored
Aug 12, 2021
by
pengyunqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:新增按钮
parent
b20dab63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
21 deletions
+23
-21
flowRecord.vue
src/pages/Withdrawal/walletAccount/flowRecord.vue
+23
-21
No files found.
src/pages/Withdrawal/walletAccount/flowRecord.vue
View file @
bc9d0910
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"creatRole"
>
<div
class=
"creatRole"
>
<el-form>
<el-form>
<el-form-item
label=
"用户Id"
>
<el-form-item
label=
"用户Id"
>
<span>
{{
user_id
}}
</span>
<span>
{{
user_id
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"交易类型"
>
<el-form-item
label=
"交易类型"
>
<el-select
v-model=
"type"
clearable
@
change=
"getRecordList"
>
<el-select
v-model=
"type"
clearable
@
change=
"getRecordList"
>
...
@@ -38,14 +38,14 @@
...
@@ -38,14 +38,14 @@
label=
"可用余额"
label=
"可用余额"
prop=
"balance"
prop=
"balance"
align=
"center"
align=
"center"
></el-table-column>
<el-table-column
label=
"交易类型"
prop=
"trade_type"
align=
"center"
>
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
{{
getTradeType
(
scope
.
row
.
trade_type
)
}}
{{
"¥ "
+
scope
.
row
.
balance
}}
</
template
>
</el-table-column>
<el-table-column
label=
"交易类型"
prop=
"trade_type"
align=
"center"
>
<
template
#
default=
"scope"
>
{{
getTradeType
(
scope
.
row
.
trade_type
)
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"状态"
width=
"200px"
prop=
"status"
align=
"center"
>
<el-table-column
label=
"状态"
width=
"200px"
prop=
"status"
align=
"center"
>
...
@@ -53,22 +53,23 @@
...
@@ -53,22 +53,23 @@
<el-table-column
label=
"说明"
align=
"center"
prop=
"third_order_desc"
>
<el-table-column
label=
"说明"
align=
"center"
prop=
"third_order_desc"
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<el-button
type=
"primary"
@
click=
"handleBack"
style=
"margin-top:50px;margin-left: 45%;"
>
返回
</el-button>
<page
:totalNum=
"totalNum"
@
update=
"update"
/>
<page
:totalNum=
"totalNum"
@
update=
"update"
/>
</el-card>
</el-card>
</template>
</template>
<
script
>
<
script
>
import
page
from
"../../../components/Pagination"
;
import
page
from
"../../../components/Pagination"
;
import
{
getRecordList
}
from
"@/service/Withdrawal/withdrawal"
;
import
{
getRecordList
}
from
"@/service/Withdrawal/withdrawal"
;
const
tradeType
=
{
1
:
"充值"
,
2
:
"提现"
,
3
:
"转账"
};
const
tradeType
=
{
1
:
"充值"
,
2
:
"提现"
,
3
:
"转账"
};
export
default
{
export
default
{
name
:
"flowRecord"
,
name
:
"flowRecord"
,
components
:
{
page
},
components
:
{
page
},
data
()
{
data
()
{
return
{
return
{
user_id
:
""
,
user_id
:
""
,
wallet_id
:
""
,
wallet_id
:
""
,
type
:
""
,
type
:
""
,
recordList
:
[],
recordList
:
[],
params
:
{
params
:
{
page
:
1
,
page
:
1
,
...
@@ -78,8 +79,8 @@ export default {
...
@@ -78,8 +79,8 @@ export default {
},
},
created
()
{
created
()
{
this
.
user_id
=
this
.
$route
.
query
.
user_id
this
.
user_id
=
this
.
$route
.
query
.
user_id
;
this
.
wallet_id
=
this
.
$route
.
query
.
wallet_id
this
.
wallet_id
=
this
.
$route
.
query
.
wallet_id
;
this
.
getRecordList
();
this
.
getRecordList
();
},
},
...
@@ -90,7 +91,7 @@ export default {
...
@@ -90,7 +91,7 @@ export default {
},
},
//获取账户流水列表
//获取账户流水列表
getRecordList
()
{
getRecordList
()
{
this
.
recordList
=
[];
this
.
recordList
=
[];
let
{
page
,
page_size
}
=
this
.
params
;
let
{
page
,
page_size
}
=
this
.
params
;
let
{
wallet_id
,
type
}
=
this
;
let
{
wallet_id
,
type
}
=
this
;
let
params_list
=
{
let
params_list
=
{
...
@@ -106,8 +107,12 @@ export default {
...
@@ -106,8 +107,12 @@ export default {
},
},
// 获取交易类型
// 获取交易类型
getTradeType
(
code
)
{
getTradeType
(
code
)
{
return
tradeType
[
code
]
return
tradeType
[
code
];
},
},
// 返回
handleBack
()
{
this
.
$router
.
back
()
}
},
},
};
};
</
script
>
</
script
>
...
@@ -120,7 +125,4 @@ return tradeType[code]
...
@@ -120,7 +125,4 @@ return tradeType[code]
.role_management {
.role_management {
padding: 20px;
padding: 20px;
}
}
.role_management .el-button {
margin: 0 2px;
}
</
style
>
</
style
>
\ No newline at end of file
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