|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
<view class="page"> |
|
|
|
|
<image class="bg" src="@/static/image/index/index2.png" mode="widthFix"></image> |
|
|
|
|
<view class="team"> |
|
|
|
|
<uni-data-picker class="picker-input" placeholder="切换团队" popup-title="切换团队" preload :clear-icon="false" :localdata="list" :map="{text: 'partnerClassificationName', value: 'partnerId'}" v-model="partnerId" @change="teamChange"></uni-data-picker> |
|
|
|
|
<uni-data-picker class="picker-input" placeholder="切换团队" popup-title="切换团队" preload :clear-icon="false" :localdata="list" :map="{text: 'partnerClassificationName', value: 'teamId'}" v-model="teamId" @change="teamChange"></uni-data-picker> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="banner"> |
|
|
|
@ -107,7 +107,7 @@ |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
partnerId: this.$util.getBmId() || '', |
|
|
|
|
teamId: uni.getStorageSync('team').teamId || '', |
|
|
|
|
list: [], |
|
|
|
|
id: '', |
|
|
|
|
teamList: [] |
|
|
|
@ -125,12 +125,11 @@ |
|
|
|
|
treeList().then(({ treeList }) => { |
|
|
|
|
this.teamList = treeList |
|
|
|
|
this.getId(treeList, '', data[0].teamId) |
|
|
|
|
data[0].teamId = this.id |
|
|
|
|
// 依据团队id查询团队下的全部商务经理(集合) |
|
|
|
|
getTheBusinessManagerIdsUnderTheTeam(this.id).then(res => { |
|
|
|
|
this.id && getTheBusinessManagerIdsUnderTheTeam(this.id).then(res => { |
|
|
|
|
data[0].businessManagerIds = res |
|
|
|
|
// 默认选择第一个团队 |
|
|
|
|
this.partnerId = data[0].partnerId |
|
|
|
|
this.teamId = data[0].teamId |
|
|
|
|
uni.setStorageSync('team', data[0]) |
|
|
|
|
}).catch(e => {}) |
|
|
|
|
}).catch(e => {}) |
|
|
|
@ -150,15 +149,15 @@ |
|
|
|
|
}, |
|
|
|
|
// 团队选择回调 |
|
|
|
|
teamChange() { |
|
|
|
|
const { partnerId } = this |
|
|
|
|
const e = this.list.find(e => e.partnerId == partnerId) |
|
|
|
|
const { teamId } = this |
|
|
|
|
const e = this.list.find(e => e.teamId == teamId) |
|
|
|
|
if (e) { |
|
|
|
|
this.getId(this.teamList, '', e.teamId) |
|
|
|
|
e.teamId = this.id |
|
|
|
|
|
|
|
|
|
getTheBusinessManagerIdsUnderTheTeam(this.id).then(res => { |
|
|
|
|
this.id && getTheBusinessManagerIdsUnderTheTeam(this.id).then(res => { |
|
|
|
|
e.businessManagerIds = res |
|
|
|
|
uni.setStorageSync('team', e) |
|
|
|
|
}).catch(e => {}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 提示暂未开放 |
|
|
|
|
toPanel(i) { |
|
|
|
@ -173,6 +172,7 @@ |
|
|
|
|
position: relative; |
|
|
|
|
min-height: 100%; |
|
|
|
|
padding: 30rpx 22rpx; |
|
|
|
|
box-sizing: border-box; |
|
|
|
|
} |
|
|
|
|
.bg { |
|
|
|
|
z-index: -1; |
|
|
|
|