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

This commit is contained in:
bai.jinyan
2021-11-05 19:19:38 +08:00
parent 386aba84e3
commit efdb63533b
2 changed files with 6 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
<!-- 导航 元素 --> <!-- 导航 元素 -->
<template> <template>
<!-- <div class="nav-item"> --> <!-- <div class="nav-item"> -->
<van-cell is-link v-if="config.isShow" class="relative" @click="rout(config)"> <van-cell is-link v-if="!config.isNotShow" 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

@@ -39,19 +39,17 @@ export default {
path: '/', path: '/',
share: true, share: true,
shareConfig: null, shareConfig: null,
isShow: '' isNotShow: ''
}, },
{ {
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
} }
] ]
} }
@@ -93,8 +91,8 @@ export default {
if (resAgent.result == 0) { if (resAgent.result == 0) {
// res.branchType 以N打头的是内勤 其他是外勤 // res.branchType 以N打头的是内勤 其他是外勤
let isInner = /^N{1}/.test(resAgent.branchType) let isInner = /^N{1}/.test(resAgent.branchType)
// 内勤不展示 增员分享 // 内勤人员不展示 增员分享
this.navList[0].isShow = !isInner this.navList[0].isNotShow = isInner
} else { } else {
return this.$toast(res.resultMessage) return this.$toast(res.resultMessage)