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
a0daee39
Commit
a0daee39
authored
Aug 11, 2021
by
pengyunqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:钱包账户
parent
833daa67
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
498 additions
and
0 deletions
+498
-0
config.js
src/pages/Withdrawal/components/PageHeader/config.js
+4
-0
flowRecord.vue
src/pages/Withdrawal/walletAccount/flowRecord.vue
+85
-0
index.vue
src/pages/Withdrawal/walletAccount/index.vue
+396
-0
index.js
src/router/Withdrawal/index.js
+13
-0
No files found.
src/pages/Withdrawal/components/PageHeader/config.js
View file @
a0daee39
...
...
@@ -3,6 +3,10 @@ const headerConfig = [
name
:
"提现审核"
,
path
:
"/op/withdrawal/examine"
},
{
name
:
"钱包账户"
,
path
:
"/op/withdrawal/walletaccount"
},
{
path
:
"/op/withdrawal/roleManageRole"
,
name
:
"角色管理"
,
...
...
src/pages/Withdrawal/walletAccount/flowRecord.vue
0 → 100644
View file @
a0daee39
<
template
>
<el-card
class=
"role_management"
>
<!-- 检索区域 -->
<div
class=
"creatRole"
>
<el-form
:model=
"searchForm"
>
<el-form-item
label=
"用户Id"
>
<span></span>
</el-form-item>
<el-form-item
label=
"交易类型"
>
<el-select
v-model=
"searchForm"
>
<el-option
label=
"提现"
:value=
"1"
></el-option>
<el-option
label=
"转账"
:value=
"2"
></el-option>
<el-option
label=
"退款"
:value=
"2"
></el-option>
</el-select>
</el-form-item>
</el-form>
</div>
<!-- 用户搜索列表 -->
<el-table
border
:data=
"managementList"
>
<el-table-column
label=
"流水号"
width=
"200px"
prop=
"role_id"
align=
"center"
></el-table-column>
<el-table-column
label=
"更新时间"
prop=
"role_name"
align=
"center"
></el-table-column>
<el-table-column
label=
"金额"
prop=
"update_time"
align=
"center"
></el-table-column>
<el-table-column
label=
"可用余额"
prop=
"update_user_name"
align=
"center"
></el-table-column>
<el-table-column
label=
"交易类型"
prop=
"update_user_name"
align=
"center"
></el-table-column>
<el-table-column
label=
"状态"
width=
"200px"
:formatter=
"hasStatusFormat"
align=
"center"
>
</el-table-column>
<el-table-column
label=
"说明"
align=
"center"
>
</el-table-column>
</el-table>
<page
:totalNum=
"totalNum"
@
update=
"update"
/>
</el-card>
</
template
>
<
script
>
export
default
{
name
:
"flowRecord"
,
data
()
{
return
{};
},
mounted
()
{},
methods
:
{},
};
</
script
>
<
style
lang=
"less"
scoped
>
.creatRole {
display: flex;
justify-content: space-between;
}
.role_management {
padding: 20px;
}
.role_management .el-button {
margin: 0 2px;
}
</
style
>
\ No newline at end of file
src/pages/Withdrawal/walletAccount/index.vue
0 → 100644
View file @
a0daee39
<
template
>
<el-card
class=
"role_management"
>
<!-- 检索区域 -->
<div
class=
"creatRole"
>
<el-form
inline
:model=
"searchForm"
>
<el-form-item
label=
"用户Id"
>
<el-input
v-model=
"searchForm.roleName"
></el-input>
</el-form-item>
<el-form-item
label=
"账户状态"
>
<el-select
v-model=
"searchForm.roleStatus"
>
<el-option
label=
"黑名单"
:value=
"1"
></el-option>
<el-option
label=
"正常用户"
:value=
"2"
></el-option>
</el-select>
</el-form-item>
<el-button
type=
"primary"
style=
"margin-left: 30px; margin-bottom: 22px"
@
click=
"findProducts"
>
查询
</el-button
>
</el-form>
</div>
<!-- 用户搜索列表 -->
<el-table
border
:data=
"managementList"
>
<el-table-column
label=
"用户id"
prop=
"role_name"
align=
"center"
></el-table-column>
<el-table-column
label=
"账户可用金额"
prop=
"update_time"
align=
"center"
></el-table-column>
<el-table-column
label=
"账户冻结金额"
prop=
"update_user_name"
align=
"center"
></el-table-column>
<el-table-column
label=
"历史提现金额"
prop=
"update_user_name"
align=
"center"
></el-table-column>
<el-table-column
label=
"账户状态"
width=
"200px"
:formatter=
"hasStatusFormat"
align=
"center"
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
>
<template
#
default=
"scope"
>
<el-button
v-show=
"scope.row.role_status == 2"
@
click
.
stop=
"handleBlackList(scope.row)"
type=
"text"
size=
"mini"
>
黑名单
</el-button
>
<el-button
v-show=
"scope.row.role_status == 1"
@
click
.
stop=
"handelDelete(scope.row)"
size=
"mini"
type=
"text"
>
释放
</el-button
>
<el-button
@
click
.
stop=
"handelRecord(scope.row)"
size=
"mini"
type=
"text"
>
流水记录
</el-button
>
</
template
>
</el-table-column>
</el-table>
<page
:totalNum=
"totalNum"
@
update=
"update"
/>
</el-card>
</template>
<
script
>
import
page
from
"../../../components/Pagination"
;
export
default
{
name
:
"walletAccount"
,
props
:[
"flowRecord"
],
components
:
{
page
,
},
data
()
{
return
{
searchForm
:
{
roleName
:
""
,
roleStatus
:
""
,
},
formLabelWidth
:
"120px"
,
params
:
{
page
:
1
,
page_size
:
20
,
},
totalNum
:
null
,
roleTitle
:
""
,
roleName
:
""
,
edit
:
true
,
props
:
{
multiple
:
true
,
//设置为多选
value
:
"id"
,
//value值和哪个值绑定
label
:
"desc"
,
//label值和哪个值绑定
children
:
"sub_permissions"
,
//children值和哪个值绑定
},
selectedOptions
:
[],
dialogVisible
:
false
,
dialogText
:
""
,
managementList
:
[],
role_info_detail
:
{
//详情非编辑项
role_id
:
""
,
role_name
:
""
,
},
permissionsAll
:
[],
currenPermissionsUpdate
:
[],
currentRolePrivilege
:
[],
};
},
// mounted() {
// this.getGetRole_list();
// this.getPermissionsAll();
// },
// methods: {
// hasStatusFormat(row) {
// let statusText = ["正常", "禁用", "删除"];
// return statusText[row.role_status - 1];
// },
// onCreateRole() {
// this.roleTitle = "新增角色";
// this.getPermissionsAll();
// this.edit = false;
// this.dialogVisible = true;
// this.roleName = "";
// this.selectedOptions = [];
// // this.$router.push({ name: 'AddRole' });
// },
// toRoleDetail(row) {
// this.$router.push({
// path: this.detailPath,
// query: { roleId: row.role_id },
// });
// },
// //获取角色列表
// getGetRole_list() {
// let { page, page_size } = this.params;
// let paramsRole_list = {
// page,
// page_size,
// role_status: this.searchForm.roleStatus,
// role_name: this.searchForm.roleName,
// };
// reqGetRole_list(paramsRole_list, this.appId).then((res) => {
// this.managementList = res.result;
// this.totalNum = res.count;
// });
// },
// //查询
// onSearchSubmit() {
// this.getGetRole_list();
// },
// //重置
// onReset() {
// (this.searchForm.roleName = ""), (this.searchForm.roleStatus = "");
// this.getGetRole_list();
// },
// //列表分页
// update(obj) {
// Object.assign(this.params, obj);
// let { page, page_size } = this.params;
// this.getGetRole_list(page, page_size);
// },
// //弹框提示
// openBounced(type, role_id) {
// this.$confirm(`${this.dialogText}是否继续?`, "提示", {
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning",
// })
// .then(() => {
// if (type === "disable") {
// this.getRole_info_detail("disable", role_id);
// } else {
// this.delete(role_id);
// }
// })
// .catch(() => {
// this.$message({
// type: "info",
// message: "已取消",
// });
// });
// },
// //删除
// delete(role_id) {
// reqGetDelete_role(role_id, this.appId).then((res) => {
// if (res.status == "success") this.getGetRole_list();
// });
// },
// //角色详情数据
// getRole_info_detail(type, role_id) {
// reqGet_role_info(role_id, this.appId).then((res) => {
// const { role_id, role_name, permissions } = res.result;
// this.role_info_detail = {
// role_id,
// role_name,
// };
// this.roleName = role_name;
// // this.permissionsUpdate = permissions
// let role_status;
// if (type === "disable") {
// role_status = 2;
// } else if (type === "enable") {
// role_status = 1;
// } else if (type === "modify") {
// this.currentRolePrivilege = permissions;
// this.editEchoData(permissions);
// } else {
// role_status = "";
// }
// if (type !== "modify") {
// this.getUpdate_role(role_name, role_id, role_status, permissions);
// }
// });
// },
// //遍历回显值selectedOptions
// editEchoData(permissions) {
// let selectData = [];
// permissions.map((item) => {
// let one = { id: item.id };
// if (item.sub_permissions) {
// item.sub_permissions.map((info) => {
// let selectId = [one.id, info.id];
// selectData.push(selectId);
// });
// }
// });
// this.selectedOptions = selectData;
// },
// //启用
// handelEnable(row) {
// if (row.role_status == 1) {
// this.$message({
// type: "info",
// message: "该条数据已启用",
// });
// return false;
// }
// this.getRole_info_detail("enable", row.role_id);
// },
// //流水记录
handelRecord
()
{
this
.
$router
.
push
({
path
:
this
.
flowRecord
,
})
},
// //编辑列表操作
// getUpdate_role(role_name, role_id, role_status, permissions) {
// let paramsUpdate_role = {
// role_name: role_name,
// role_id,
// role_status,
// permissions,
// };
// reqGetUpdate_role(paramsUpdate_role, this.appId).then((res) => {
// if (res.status === "success") {
// this.dialogVisible = false;
// this.getGetRole_list();
// } else {
// this.dialogVisible = false;
// this.$message({
// type: "info",
// message: `${res.reason}`,
// });
// }
// });
// },
// //删除
// handelDelete(row) {
// this.dialogText = "删除后不可恢复,拥有此角色用户将受影响";
// this.openBounced("del", row.role_id);
// },
// //修改
// async handleBlackList(row) {
// this.edit = true;
// this.roleTitle = "修改角色";
// await this.getPermissionsAll();
// this.dialogVisible = true;
// this.getRole_info_detail("modify", row.role_id);
// },
// //确认修改
// confirm() {
// let checkRolePrivilege = [];
// this.edit
// ? (checkRolePrivilege = this.currentRolePrivilege)
// : (checkRolePrivilege = this.currenPermissionsUpdate)
// if (!(this.roleName && checkRolePrivilege.length > 0)) {
// this.$message({
// type: "error",
// message: "请完善信息",
// });
// return false;
// }
// if (this.edit) {
// this.getEditRole();
// } else {
// this.getAdd_role();
// }
// },
// //编辑提交的数据
// getEditRole() {
// let { role_id } = this.role_info_detail;
// let role_status = "";
// this.getUpdate_role(
// this.roleName,
// role_id,
// role_status,
// this.currentRolePrivilege
// );
// },
// //新增角色
// getAdd_role() {
// let paramsAdd_role = {
// role_name: this.roleName,
// permissions: this.currenPermissionsUpdate,
// };
// reqGetAdd_role(paramsAdd_role, this.appId).then((res) => {
// this.dialogVisible = false;
// if (res.status === "success") {
// this.getGetRole_list();
// } else {
// this.$message({
// type: "info",
// message: `${res.reason}`,
// });
// }
// });
// },
// parentCateChange(id) {
// this.getSelectedOptions(id);
// },
// getSelectedOptions(selectedOptions) {
// let oldDataRule = [];
// selectedOptions.forEach((el) => {
// let oldObj = {
// id: el[0],
// sub_permissions: [],
// };
// let btnObj = {
// id: el[1],
// };
// oldObj.sub_permissions.push(btnObj);
// oldDataRule.push(oldObj);
// });
// let newData = [];
// let newObj = {};
// oldDataRule.forEach((el, i) => {
// if (!newObj[el.id]) {
// newData.push(el);
// newObj[el.id] = true;
// } else {
// newData.forEach((el) => {
// if (el.id === oldDataRule[i].id) {
// el.sub_permissions = [
// ...el.sub_permissions,
// ...oldDataRule[i].sub_permissions,
// ];
// }
// });
// }
// });
// this.currentRolePrivilege = newData;
// this.currenPermissionsUpdate = newData;
// },
// },
}
</
script
>
<
style
lang=
"less"
scoped
>
.creatRole {
display: flex;
justify-content: space-between;
}
.role_management {
padding: 20px;
}
.role_management .el-button {
margin: 0 2px;
}
</
style
>
src/router/Withdrawal/index.js
View file @
a0daee39
...
...
@@ -10,6 +10,19 @@ const withdrawalRoutes = [
component
:
()
=>
import
(
/* webpackChunkName: "Withdrawal" */
"@/pages/Withdrawal/Examine"
)
},
// 钱包账户
{
path
:
"/op/withdrawal/walletaccount"
,
name
:
"walletAccount"
,
component
:
()
=>
import
(
/* webpackChunkName: "Withdrawal" */
"@/pages/Withdrawal/walletAccount"
)
},
{
path
:
"/op/withdrawal/flowrecord"
,
name
:
"flowRecord"
,
component
:
()
=>
import
(
/* webpackChunkName: "Withdrawal" */
"@/pages/Withdrawal/walletAccount/flowRecord"
)
},
//用户管理
{
path
:
"/op/withdrawal/user"
,
...
...
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