|
|
|
@ -5,7 +5,14 @@ |
|
|
|
|
<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> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<image class="banner" src="@/static/image/index/index1.png" mode="widthFix"></image> |
|
|
|
|
<view class="banner"> |
|
|
|
|
<image class="img" src="@/static/image/index/index1.png" mode="widthFix"></image> |
|
|
|
|
<view class="info"> |
|
|
|
|
<view class="title">城市合伙人招募中</view> |
|
|
|
|
<view class="text">携手共创教育信息化新未来,合伙共享产业互备份</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<ul class="entry"> |
|
|
|
|
<li @click="$util.to('../clients/clients')"> |
|
|
|
|
<image class="icon" src="@/static/image/index/index3.png" mode="widthFix"></image> |
|
|
|
@ -41,21 +48,21 @@ |
|
|
|
|
<view class="line"> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="name">本月新增客户</view> |
|
|
|
|
<view class="val">152</view> |
|
|
|
|
<view class="val">0</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="name">我的客户</view> |
|
|
|
|
<view class="val">23</view> |
|
|
|
|
<view class="val">0</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="line"> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="name">本月新增产品试用</view> |
|
|
|
|
<view class="val">152</view> |
|
|
|
|
<view class="val">0</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="name">试用客户</view> |
|
|
|
|
<view class="val">23</view> |
|
|
|
|
<view class="val">0</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -73,19 +80,19 @@ |
|
|
|
|
<view class="data second"> |
|
|
|
|
<view class="line"> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="val">12W</view> |
|
|
|
|
<view class="val">0</view> |
|
|
|
|
<view class="name">成交总额</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="val">0.9W</view> |
|
|
|
|
<view class="val">0</view> |
|
|
|
|
<view class="name">收益金额</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="val">8.3w</view> |
|
|
|
|
<view class="val">0</view> |
|
|
|
|
<view class="name">已到账</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="val">1.4w</view> |
|
|
|
|
<view class="val">0</view> |
|
|
|
|
<view class="name">未到账</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -95,12 +102,15 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { getTeamsByAccountId } from '@/apis/modules/client.js' |
|
|
|
|
import { getTeamsByAccountId, getTheBusinessManagerIdsUnderTheTeam } from '@/apis/modules/client.js' |
|
|
|
|
import { treeList } from '@/apis/modules/parner.js' |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
partnerId: this.$util.getBmId() || '', |
|
|
|
|
list: [], |
|
|
|
|
id: '', |
|
|
|
|
teamList: [] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onShow() { |
|
|
|
@ -110,17 +120,45 @@ |
|
|
|
|
// 获取团队 |
|
|
|
|
getInfo() { |
|
|
|
|
getTeamsByAccountId().then(({ data }) => { |
|
|
|
|
// 默认选择第一个团队 |
|
|
|
|
if (data.length) { |
|
|
|
|
// 全部分类 |
|
|
|
|
treeList().then(({ treeList }) => { |
|
|
|
|
this.teamList = treeList |
|
|
|
|
this.getId(treeList, '', data[0].teamId) |
|
|
|
|
data[0].teamId = this.id |
|
|
|
|
// 依据团队id查询团队下的全部商务经理(集合) |
|
|
|
|
getTheBusinessManagerIdsUnderTheTeam(this.id).then(res => { |
|
|
|
|
data[0].businessManagerIds = res |
|
|
|
|
// 默认选择第一个团队 |
|
|
|
|
this.partnerId = data[0].partnerId |
|
|
|
|
uni.setStorageSync('team', data[0]) |
|
|
|
|
}).catch(e => {}) |
|
|
|
|
}).catch(e => {}) |
|
|
|
|
} |
|
|
|
|
this.list = data |
|
|
|
|
}).catch(e => {}) |
|
|
|
|
}, |
|
|
|
|
// 查询返回的teamId所属的团队id |
|
|
|
|
getId(list, parentId, id) { |
|
|
|
|
list.map(e => { |
|
|
|
|
if (e.id === id) { |
|
|
|
|
this.id = e.isTeam ? id : parentId |
|
|
|
|
} else { |
|
|
|
|
this.getId(e.children, e.id, id) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 团队选择回调 |
|
|
|
|
teamChange() { |
|
|
|
|
uni.setStorageSync('partnerId', this.partnerId) |
|
|
|
|
const { partnerId } = this |
|
|
|
|
const e = this.list.find(e => e.partnerId == partnerId) |
|
|
|
|
this.getId(this.teamList, '', e.teamId) |
|
|
|
|
e.teamId = this.id |
|
|
|
|
|
|
|
|
|
getTheBusinessManagerIdsUnderTheTeam(this.id).then(res => { |
|
|
|
|
e.businessManagerIds = res |
|
|
|
|
uni.setStorageSync('team', e) |
|
|
|
|
}).catch(e => {}) |
|
|
|
|
}, |
|
|
|
|
// 提示暂未开放 |
|
|
|
|
toPanel(i) { |
|
|
|
@ -145,12 +183,31 @@ |
|
|
|
|
height: 100%; |
|
|
|
|
} |
|
|
|
|
.team { |
|
|
|
|
width: 200rpx; |
|
|
|
|
width: 300rpx; |
|
|
|
|
margin-bottom: 30rpx; |
|
|
|
|
} |
|
|
|
|
.banner { |
|
|
|
|
position: relative; |
|
|
|
|
.img { |
|
|
|
|
width: 100%; |
|
|
|
|
} |
|
|
|
|
.info { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 80rpx; |
|
|
|
|
left: 46rpx; |
|
|
|
|
} |
|
|
|
|
.title { |
|
|
|
|
margin-bottom: 15rpx; |
|
|
|
|
font-size: 36rpx; |
|
|
|
|
font-weight: 600; |
|
|
|
|
color: #001D67; |
|
|
|
|
} |
|
|
|
|
.text { |
|
|
|
|
font-size: 20rpx; |
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC; |
|
|
|
|
color: #001D67; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.entry { |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-around; |
|
|
|
|