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

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> <template>
<!-- <div class="nav-item"> --> <!-- <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"> <template slot="title">
<van-icon v-if="config.icon" color="#ee0a24" class="t-cell-icon" size="6.4vw" :name="config.icon" /> <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" /> <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 { CellGroup, Cell, Button, Dialog, Field } from 'vant'
import { getTokenForUserModel } from '@/api/ebiz/manpower/manpower' import { getTokenForUserModel } from '@/api/ebiz/manpower/manpower'
import CheckAgent from '@/components/common/CheckAgent' import CheckAgent from '@/components/common/CheckAgent'
import { getAgentInfo } from '@/api/ebiz/my/my'
export default { export default {
name: 'Navigation', name: 'Navigation',
@@ -37,17 +38,20 @@ export default {
icon: 'cluster-o', icon: 'cluster-o',
path: '/', path: '/',
share: true, share: true,
shareConfig: null shareConfig: null,
isShow: ''
}, },
{ {
title: '增员审批', title: '增员审批',
icon: 'comment-o', icon: 'comment-o',
path: '/agentEenter/approve/ApproveList' path: '/agentEenter/approve/ApproveList',
isShow: true
}, },
{ {
title: '审批记录', title: '审批记录',
src: record, src: record,
path: '/agentEenter/approve/recordList' path: '/agentEenter/approve/recordList',
isShow: true
} }
] ]
} }
@@ -85,6 +89,16 @@ export default {
} else { } else {
this.$toast(res.resultMessage) 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)
}
} }
} }
} }