|
@@ -114,7 +114,7 @@
|
|
|
<el-table-column label="绑定三方运力佣金比例" align="center" prop="bindingThirdCommission" />
|
|
|
<!-- <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>
|
|
@@ -184,7 +184,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>
|
|
@@ -257,6 +257,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: {
|
|
@@ -407,6 +408,10 @@ export default {
|
|
|
this.agentLevelList = response.data
|
|
|
})
|
|
|
},
|
|
|
+ // 判断权限
|
|
|
+ hasPermission(value) {
|
|
|
+ return checkPermi(value);
|
|
|
+ },
|
|
|
getMaxRate(){
|
|
|
this.$http
|
|
|
.get(`/module/agent/getMaxRete`)
|