Commit c647741d authored by pengyunqian's avatar pengyunqian

feat:账户列表

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