mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 17:56:43 +08:00
内勤人员不能使用增员分享问题处理 --提交人:白金岩
This commit is contained in:
@@ -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" />
|
||||||
|
|||||||
@@ -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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user