|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
<!-- 筛选条件 -->
|
|
<!-- 筛选条件 -->
|
|
- <div class="screen-container">
|
|
|
|
|
|
+ <div class="screen-container" v-if="!!~[2].indexOf(userType)">
|
|
<div class="top clearfix">
|
|
<div class="top clearfix">
|
|
<div class="title fl">条件筛选</div>
|
|
<div class="title fl">条件筛选</div>
|
|
</div>
|
|
</div>
|
|
@@ -47,7 +47,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="mymain-container">
|
|
<div class="mymain-container">
|
|
- <div class="btn-group clearfix">
|
|
|
|
|
|
+ <div class="btn-group clearfix" v-if="!!~[2].indexOf(userType)">
|
|
<div class="fl">
|
|
<div class="fl">
|
|
<el-button size="small" type="primary" @click="toCreate()">开通账号</el-button>
|
|
<el-button size="small" type="primary" @click="toCreate()">开通账号</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -61,13 +61,15 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button type="text" @click="toDetail(scope.row.adminUserId, 1)">详情</el-button>
|
|
<el-button type="text" @click="toDetail(scope.row.adminUserId, 1)">详情</el-button>
|
|
<el-button type="text" @click="toDetail(scope.row.adminUserId, 2)">商城配置</el-button>
|
|
<el-button type="text" @click="toDetail(scope.row.adminUserId, 2)">商城配置</el-button>
|
|
- <el-button type="text" @click="toDetail(scope.row.adminUserId, 3)">微信配置</el-button>
|
|
|
|
- <el-popconfirm v-if="scope.row.status" style="margin-left: 10px;" title="确定冻结吗?" @confirm="changeStatus(scope.row.adminUserId, 0)" >
|
|
|
|
- <el-button slot="reference" type="text">冻结</el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- <el-popconfirm v-else style="margin-left: 10px;" title="确定恢复吗?" @confirm="changeStatus(scope.row.adminUserId, 1)" >
|
|
|
|
- <el-button slot="reference" type="text">恢复</el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
|
|
+ <template v-if="!!~[2].indexOf(userType)">
|
|
|
|
+ <el-button type="text" @click="toDetail(scope.row.adminUserId, 3)">微信配置</el-button>
|
|
|
|
+ <el-popconfirm v-if="scope.row.status" style="margin-left: 10px;" title="确定冻结吗?" @confirm="changeStatus(scope.row.adminUserId, 0)" >
|
|
|
|
+ <el-button slot="reference" type="text">冻结</el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ <el-popconfirm v-else style="margin-left: 10px;" title="确定恢复吗?" @confirm="changeStatus(scope.row.adminUserId, 1)" >
|
|
|
|
+ <el-button slot="reference" type="text">恢复</el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ </template>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center" label="商户账号" prop="userName" min-width="100" show-overflow-tooltip>
|
|
<el-table-column align="center" label="商户账号" prop="userName" min-width="100" show-overflow-tooltip>
|
|
@@ -79,7 +81,7 @@
|
|
<el-table-column align="center" label="负责人" prop="linkName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="负责人" prop="linkName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="角色" prop="roleName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="角色" prop="roleName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="联系电话" prop="linkPhone" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="联系电话" prop="linkPhone" min-width="160" show-overflow-tooltip></el-table-column>
|
|
- <el-table-column align="center" label="到期时间" prop="expireTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
+ <el-table-column align="center" label="到期时间" prop="expireTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="电子邮箱" prop="email" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="电子邮箱" prop="email" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="地址" prop="address" min-width="200" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="地址" prop="address" min-width="200" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="状态" class-name="status-col">
|
|
<el-table-column align="center" label="状态" class-name="status-col">
|
|
@@ -132,6 +134,11 @@ export default {
|
|
],
|
|
],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ userType() {
|
|
|
|
+ return JSON.parse(localStorage.getItem('greemall_user')).type
|
|
|
|
+ },
|
|
|
|
+ },
|
|
created() {
|
|
created() {
|
|
this.getListfun();
|
|
this.getListfun();
|
|
},
|
|
},
|