Commit 8879184d authored by 张俊's avatar 张俊

用户充值

parent c9846c22
<template>
<div class="users_list">
<el-breadcrumb separator="/" slot="breadcrumb">
<el-breadcrumb-item to="/authority">权限管理</el-breadcrumb-item>
<el-breadcrumb-item to="/authority/users">用户管理</el-breadcrumb-item>
<el-breadcrumb-item>充值</el-breadcrumb-item>
</el-breadcrumb>
</div>
</template>
<script>
import apassDialog from "@/components/apass-dialog";
export default {
props: [],
components: {
apassDialog
},
data() {
return {
};
},
watch: {
},
computed: {
},
created() {
},
mounted() {
},
methods: {
},
};
</script>
<style scoped>
.users_list{
padding: 15px 20px;
}
</style>
......@@ -22,7 +22,11 @@
<el-table-column label="" width="40"></el-table-column>
<el-table-column label="账号" width="160">
<template slot-scope="scope">
<span v-text="scope.row.user_id"></span>
<div class="row_action">
<a class="btn" v-text="scope.row.user_id" @click="
$router.push(`/authority/users/detail/${scope.row.user_id}`)
"></a>
</div>
</template>
</el-table-column>
<el-table-column label="业务系统名称">
......@@ -62,19 +66,19 @@
<a
class="btn"
@click="
$router.push(`/authority/users/detail/${scope.row.user_id}`)
$router.push(`/authority/users/roles/${scope.row.user_id}`)
"
>
详情
分配角色
</a>
<span class="interval_line">|</span>
<a
class="btn"
:class="{btn:true,disabled:![3,4].includes(scope.row.is_admin)}"
@click="
$router.push(`/authority/users/roles/${scope.row.user_id}`)
goto_give_money(scope.row.user_id,scope.row.is_admin)
"
>
分配角色
充值
</a>
<span class="interval_line">|</span>
<a
......@@ -126,6 +130,11 @@ export default {
console.log(error);
});
},
goto_give_money(id,type){
if(type==3||type==4){
this.$router.push(`/authority/users/money/${id}`)
}
},
changeState(item) {
console.log(item);
......
......@@ -501,6 +501,12 @@ export default new Router({
component: () =>
import("@/pages/authority/user/organizationuser"),
},
{
path: "/authority/users/money/:id", // 用户管理-充值
name: "usersmoney",
component: () =>
import("@/pages/authority/user/money"),
},
{
path: "/authority/users/permission", // 用户管理页 - 权限审批
name: "users",
......
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