|
@@ -8,18 +8,18 @@
|
|
|
<edit :data="scope.data"
|
|
|
@updataList="updataList"
|
|
|
:arealist="arealist"
|
|
|
- v-if="scope.data.data.status == '待跟进' || scope.data.data.status == '跟进中' && tool.checkAuth($route.name,'update')"></edit>
|
|
|
+ v-if="userInfo.isAuth == 0 || userInfo.name == scope.data.data.leadername && scope.data.data.status == '待跟进' || scope.data.data.status == '跟进中'"></edit>
|
|
|
</template>
|
|
|
<template v-slot:goUp="scope">
|
|
|
<follow :data="scope.data"
|
|
|
@updataList="updataList"
|
|
|
- v-if="scope.data.data.status == '待跟进' || scope.data.data.status == '跟进中' && tool.checkAuth($route.name,'follow')"></follow>
|
|
|
+ v-if="userInfo.isAuth == 0 || userInfo.name == scope.data.data.leadername && scope.data.data.status == '待跟进' || scope.data.data.status == '跟进中'"></follow>
|
|
|
</template>
|
|
|
<template v-slot:move="scope">
|
|
|
<move :data="[scope.data.data.sat_orderclueid]"
|
|
|
@updataList="updataList"
|
|
|
- :teamList="teamList"
|
|
|
- v-if="scope.data.data.status == '待跟进' || scope.data.data.status == '跟进中' && tool.checkAuth($route.name,'handleMove')"></move>
|
|
|
+ :teamList="teamList"
|
|
|
+ v-if="userInfo.isAuth == 1 && scope.data.data.status == '待跟进' || scope.data.data.status == '跟进中'"></move>
|
|
|
</template>
|
|
|
</list>
|
|
|
</div>
|
|
@@ -39,7 +39,8 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
teamList:[],
|
|
|
- arealist:[]
|
|
|
+ arealist:[],
|
|
|
+ userInfo: ''
|
|
|
};
|
|
|
},
|
|
|
provide() {
|
|
@@ -55,6 +56,7 @@ export default {
|
|
|
created() {
|
|
|
this.getTeamList()
|
|
|
this.query_arealist()
|
|
|
+ this.queryUserInfo()
|
|
|
},
|
|
|
methods: {
|
|
|
detail(data) {
|
|
@@ -93,6 +95,30 @@ export default {
|
|
|
console.log(res.data);
|
|
|
|
|
|
this.arealist = this.tool.createMenu(res.data)
|
|
|
+ },
|
|
|
+ async queryUserInfo() {
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "classname": "common.usercenter.usercenter",
|
|
|
+ "method": "queryUserMsg",
|
|
|
+ "content": {
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.userInfo = {
|
|
|
+ isAuth : res.data.agenthr.isleader,
|
|
|
+ name: res.data.name
|
|
|
+ }
|
|
|
+ console.log(this.userInfo.isAuth);
|
|
|
+
|
|
|
+ },
|
|
|
+ //操作权限
|
|
|
+ handlePower(role) {
|
|
|
+ if(role == '员工') {
|
|
|
+ console.log(this.userInfo.isAuth == 0);
|
|
|
+
|
|
|
+ return this.userInfo.isAuth == 0
|
|
|
+ } else {
|
|
|
+ return this.userInfo.isAuth == 1
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
};
|