Commit c647741d authored by pengyunqian's avatar pengyunqian

feat:账户列表

parent cfbfb108
......@@ -70,6 +70,17 @@ exports.getApplyDetail = async ctx => {
}
ctx.body = await req(ctx, opts)
}
// 提现审核迭代
// 获取钱包账户列表
exports.getAccountList = async ctx => {
const url = `${WITHDRAWAL_URI}/wallet/background/account_list`;
const opts = {
url,
method: "GET",
qs: ctx.request.query
}
ctx.body = await req(ctx, opts)
}
const getUserPermission = async (ctx) => {
const url = `${WITHDRAWAL_URI}/merchant/authority/get_role_list`;
......
......@@ -81,11 +81,13 @@ router.get(`${API_VERSION}/order/background/order_item_list`, groupmeal.orderIte
router.get(`${API_VERSION}/order/background/order_refund_reject`, groupmeal.orderRefundReject);
router.post(`${API_VERSION}/order/background/order_refund`, groupmeal.orderRefund);
// 钱包提现审核 wallet/background/apply_detail
// 钱包提现审核
router.get(`${API_VERSION}/get_withdrawal_apply_list`, withdrawal.getApplyList)
router.post(`${API_VERSION}/get_withdrawal_black_list`, withdrawal.getBlackList)
router.post(`${API_VERSION}/get_withdraw_audit`, withdrawal.getWithdrawAudit)
router.post(`${API_VERSION}/get_freezing_fund`, withdrawal.getFreezingFund)
router.get(`${API_VERSION}/get_apply_detail`, withdrawal.getApplyDetail)
// 钱包账户
router.get(`${API_VERSION}/get_account_list`, withdrawal.getAccountList)
module.exports = router;
......@@ -49,21 +49,21 @@
<el-table-column
label="账户状态"
width="200px"
:formatter="type"
prop="status"
align="center"
>
</el-table-column>
<el-table-column label="操作" align="center">
<template #default="scope">
<el-button
v-show="scope.row.type == 2"
v-show="scope.row.is_black == 0"
@click.stop="handleBlackList(scope.row)"
type="text"
size="mini"
>黑名单</el-button
>
<el-button
v-show="scope.row.type == 1"
v-show="scope.row.is_black == 1"
@click.stop="handelDelete(scope.row)"
size="mini"
type="text"
......@@ -83,6 +83,9 @@
</template>
<script>
import page from "../../../components/Pagination";
import {
getAccountList
} from "@/service/Withdrawal/withdrawal";
export default {
name: "walletAccount",
props:["flowRecord"],
......@@ -124,11 +127,11 @@ export default {
currentRolePrivilege: [],
};
},
// mounted() {
// this.getGetRole_list();
created() {
this.getAccountList();
// this.getPermissionsAll();
// },
// methods: {
},
methods: {
// hasStatusFormat(row) {
// let statusText = ["正常", "禁用", "删除"];
// return statusText[row.role_status - 1];
......@@ -148,20 +151,20 @@ export default {
// query: { roleId: row.role_id },
// });
// },
// //获取角色列表
// getGetRole_list() {
// let { page, page_size } = this.params;
// let paramsRole_list = {
// page,
// page_size,
// type: this.searchProps.type,
// user_id: this.searchProps.user_id,
// };
// reqGetRole_list(paramsRole_list, this.appId).then((res) => {
// this.accountList = res.result;
// this.totalNum = res.count;
// });
// },
//获取账户列表
getAccountList() {
let { user_id, type, page, page_size } = this.params;
let params_list = {
page,
page_size,
type,
user_id: user_id || undefined
};
getAccountList(params_list).then((res) => {
this.accountList = res.result.list;
this.totalNum = res.result.count;
});
},
// //查询
// onSearchSubmit() {
// this.getGetRole_list();
......@@ -171,12 +174,12 @@ export default {
// (this.searchProps.user_id = ""), (this.searchProps.type = "");
// this.getGetRole_list();
// },
// //列表分页
// update(obj) {
// Object.assign(this.params, obj);
// let { page, page_size } = this.params;
// this.getGetRole_list(page, page_size);
// },
//列表分页
update(obj) {
Object.assign(this.params, obj);
let { page, page_size } = this.params;
this.getAccountList(page, page_size);
},
// //弹框提示
// openBounced(type, role_id) {
// this.$confirm(`${this.dialogText}是否继续?`, "提示", {
......@@ -379,7 +382,7 @@ export default {
// this.currentRolePrivilege = newData;
// this.currenPermissionsUpdate = newData;
// },
// },
},
}
</script>
<style lang="less" scoped>
......
......@@ -49,7 +49,6 @@ export async function getRolesForUser(user_email) {
}
// 迭代---钱包账户
// 获取账户列表
// 获取提现审核列表
export async function getAccountList(params) {
const res = await axios.get("/api/v1/get_account_list", {
params: getParams(params)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment