|
@@ -121,7 +121,7 @@
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column label="佣金比率(%)" align="center" prop="commissionRate" /> -->
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
- <el-table-column label="状态" align="center" prop="status">
|
|
|
+ <el-table-column label="状态" align="center" prop="status" v-if="hasPermission(['module:agent:status'])">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch @change="updateAgentStatus(scope.row.id,scope.row.status)" :active-value="1" :inactive-value="0"
|
|
|
v-model="scope.row.status" active-color="#13ce66" inactive-color="#ff4949"></el-switch>
|
|
@@ -191,7 +191,7 @@
|
|
|
<span>{{scope.row.contactName}} / {{scope.row.mobile}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="状态" align="center" prop="status">
|
|
|
+ <el-table-column label="状态" align="center" prop="status" v-if="hasPermission(['module:merchant:status'])">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch @change="updateStatus(scope.row.id,scope.row.status)" :active-value="2" :inactive-value="0"
|
|
|
v-model="scope.row.status" active-color="#13ce66" inactive-color="#ff4949"></el-switch>
|
|
@@ -296,6 +296,7 @@
|
|
|
import { listAgent, getAgent, delAgent, addAgent, updateAgent, exportAgent,listMerchant } from "@/api/module/agent";
|
|
|
import { getAgentLevelList } from "@/api/module/agentLevel";
|
|
|
import Area from '@/components/area'
|
|
|
+import {checkPermi} from '@/utils/permission'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -481,6 +482,10 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 判断权限
|
|
|
+ hasPermission(value) {
|
|
|
+ return checkPermi(value);
|
|
|
+ },
|
|
|
gotoInfo(id){
|
|
|
this.$router.push({ path: '/agent/agent/agent', query: { id: id } })
|
|
|
},
|