内勤人员不能使用增员分享问题处理 --提交人:白金岩

This commit is contained in:
bai.jinyan
2021-11-05 18:34:14 +08:00
parent 5602b18863
commit 4f31720f2e
2 changed files with 18 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
<!-- 导航 元素 -->
<template>
<!-- <div class="nav-item"> -->
<van-cell is-link class="relative" @click="rout(config)">
<van-cell is-link v-if="config.isShow" class="relative" @click="rout(config)">
<template slot="title">
<van-icon v-if="config.icon" color="#ee0a24" class="t-cell-icon" size="6.4vw" :name="config.icon" />
<img v-else class="t-cell-icon" :src="config.src" alt="config" />

View File

@@ -15,6 +15,7 @@ import record from '@/assets/images/u73803.png'
import { CellGroup, Cell, Button, Dialog, Field } from 'vant'
import { getTokenForUserModel } from '@/api/ebiz/manpower/manpower'
import CheckAgent from '@/components/common/CheckAgent'
import { getAgentInfo } from '@/api/ebiz/my/my'
export default {
name: 'Navigation',
@@ -37,17 +38,20 @@ export default {
icon: 'cluster-o',
path: '/',
share: true,
shareConfig: null
shareConfig: null,
isShow: ''
},
{
title: '增员审批',
icon: 'comment-o',
path: '/agentEenter/approve/ApproveList'
path: '/agentEenter/approve/ApproveList',
isShow: true
},
{
title: '审批记录',
src: record,
path: '/agentEenter/approve/recordList'
path: '/agentEenter/approve/recordList',
isShow: true
}
]
}
@@ -85,6 +89,16 @@ export default {
} else {
this.$toast(res.resultMessage)
}
const resAgent = await getAgentInfo({})
if (resAgent.result == 0) {
// res.branchType 以N打头的是内勤 其他是外勤
let isInner = /^N{1}/.test(resAgent.branchType)
// 内勤不展示 增员分享
this.navList[0].isShow = !isInner
} else {
return this.$toast(res.resultMessage)
}
}
}
}