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