@@ -112,7 +112,14 @@ | |||||
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | ||||
<view class="single"> | <view class="single"> | ||||
<view class="title" style="padding-right: 30rpx;"> | <view class="title" style="padding-right: 30rpx;"> | ||||
<view class="title1" style="flex: 1;">销讲能力</view> | |||||
<view class="title1" style="flex-grow: 1;">销讲能力</view> | |||||
<view class="title2" @click="showTemplates=true"> | |||||
<view class="title2-che" style="width: 220rpx;"> | |||||
{{ showBeTexts }} | |||||
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image> | |||||
</view> | |||||
</view> | |||||
</view> | </view> | ||||
<view class="uchaserbox" style="height: 70vh;"> | <view class="uchaserbox" style="height: 70vh;"> | ||||
<qiun-data-charts type="radar" :chartData="chartData" :canvas2d="true" | <qiun-data-charts type="radar" :chartData="chartData" :canvas2d="true" | ||||
@@ -156,6 +163,11 @@ | |||||
mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select> | mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select> | ||||
<!-- 销讲业务2 --> | |||||
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplates" | |||||
mode="single-column" :list="templateLists" @cancel="showTemplates = false" @confirm="templateConfirms"> | |||||
</u-select> | |||||
<!-- 加载组件 --> | <!-- 加载组件 --> | ||||
<loading v-model="LOADING"></loading> | <loading v-model="LOADING"></loading> | ||||
</view> | </view> | ||||
@@ -264,6 +276,13 @@ | |||||
templateList: [], // 销讲业务 | templateList: [], // 销讲业务 | ||||
showTemplate: false, // 展示选择销讲业务弹窗 | showTemplate: false, // 展示选择销讲业务弹窗 | ||||
marketingBusiness: '', // 选择的业务id | marketingBusiness: '', // 选择的业务id | ||||
showTemplates: false, // 展示选择销讲业务弹窗 | |||||
templateLists: [], // 销讲业务 | |||||
marketingBusinessId: '', // 选择的业务id | |||||
showBeTexts: '', // | |||||
}; | }; | ||||
}, | }, | ||||
@@ -299,11 +318,24 @@ | |||||
}, | }, | ||||
// 确认选择销讲业务 | |||||
templateConfirms(e) { | |||||
this.showTemplates = false; | |||||
this.marketingBusinessId = e[0].value | |||||
this.showBeTexts = e[0].label | |||||
this.getdata() | |||||
}, | |||||
// 获取销讲业务 | // 获取销讲业务 | ||||
getMarketingBusiness() { | getMarketingBusiness() { | ||||
this.$u.get('/customer/marketingBusiness', { | this.$u.get('/customer/marketingBusiness', { | ||||
houseId: uni.getStorageSync('buildingID').id, | houseId: uni.getStorageSync('buildingID').id, | ||||
}).then(res => { | }).then(res => { | ||||
this.templateLists = res.map(item => { | |||||
return item | |||||
}) | |||||
this.marketingBusinessId = res[0].id | |||||
this.showBeTexts = res[0].templateName | |||||
this.templateList = res | this.templateList = res | ||||
this.templateList.unshift({ | this.templateList.unshift({ | ||||
templateName: '全部业务', | templateName: '全部业务', | ||||
@@ -311,6 +343,9 @@ | |||||
}) | }) | ||||
}) | }) | ||||
}, | }, | ||||
//是否对比 | //是否对比 | ||||
checkboxChange() { | checkboxChange() { | ||||
this.timepickpickisshow = !this.timepickpickisshow; | this.timepickpickisshow = !this.timepickpickisshow; | ||||
@@ -539,7 +574,7 @@ | |||||
timeType: this.lastEndDate ? null : this.activeTotal + '', | timeType: this.lastEndDate ? null : this.activeTotal + '', | ||||
lastEndDate: this.lastEndDate, | lastEndDate: this.lastEndDate, | ||||
lastStartDate: this.lastStartDate, | lastStartDate: this.lastStartDate, | ||||
marketingBusiness: this.marketingBusiness, | |||||
marketingBusiness: this.marketingBusinessId, | |||||
}) | }) | ||||
.then(res => { | .then(res => { | ||||
this.LOADING = false | this.LOADING = false | ||||
@@ -1,8 +1,12 @@ | |||||
<template> | <template> | ||||
<view class="box"> | <view class="box"> | ||||
<view class="boxtittabs"> | <view class="boxtittabs"> | ||||
<div class="items" @tap="screenShow = true">{{ showTimeText }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon></div> | |||||
<div class="items" @tap="showTemplate = true">{{ showBeText }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon></div> | |||||
<div class="items" @tap="screenShow = true">{{ showTimeText }} | |||||
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon> | |||||
</div> | |||||
<div class="items" @tap="showTemplate = true">{{ showBeText }} | |||||
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon> | |||||
</div> | |||||
</view> | </view> | ||||
<view class="timepick"> | <view class="timepick"> | ||||
@@ -150,9 +154,14 @@ | |||||
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | ||||
<view class="single"> | <view class="single"> | ||||
<view class="title" style="padding-right: 30rpx;"> | <view class="title" style="padding-right: 30rpx;"> | ||||
<view class="title1" style="flex: 1;">销讲能力</view> | |||||
<view class="title2" style="flex: 1;justify-content: flex-end;" @click="goTeam"> | |||||
<view class="title2-che">团队 | |||||
<view class="title1" style="flex-grow: 1;">销讲能力</view> | |||||
<view class="title2" style="flex-grow: 1;justify-content: flex-end;"> | |||||
<view class="title2-che" @click="showTemplates=true" style="width: 220rpx;"> | |||||
{{ showBeTexts }} | |||||
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image> | |||||
</view> | |||||
<view class="title2-che" @click="goTeam">团队 | |||||
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image> | <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -204,6 +213,11 @@ | |||||
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplate" | <u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplate" | ||||
mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select> | mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select> | ||||
<!-- 销讲业务2 --> | |||||
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplates" | |||||
mode="single-column" :list="templateLists" @cancel="showTemplates = false" @confirm="templateConfirms"> | |||||
</u-select> | |||||
<!-- 加载组件 --> | <!-- 加载组件 --> | ||||
<loading v-model="LOADING"></loading> | <loading v-model="LOADING"></loading> | ||||
</view> | </view> | ||||
@@ -398,6 +412,11 @@ | |||||
showTemplate: false, // 展示选择销讲业务弹窗 | showTemplate: false, // 展示选择销讲业务弹窗 | ||||
marketingBusiness: '', // 选择的业务id | marketingBusiness: '', // 选择的业务id | ||||
showTemplates: false, // 展示选择销讲业务弹窗 | |||||
templateLists: [], // 销讲业务 | |||||
marketingBusinessId: '', // 选择的业务id | |||||
showBeTexts: '', // | |||||
}; | }; | ||||
}, | }, | ||||
@@ -418,6 +437,7 @@ | |||||
onLoad() { | onLoad() { | ||||
this.LOADING = true | this.LOADING = true | ||||
this.getMarketingBusiness() | |||||
let that = this | let that = this | ||||
uni.$on('update', function(data) { | uni.$on('update', function(data) { | ||||
// console.log(data) | // console.log(data) | ||||
@@ -430,11 +450,11 @@ | |||||
// this.buildingname = uni.getStorageSync('buildingID').name; | // this.buildingname = uni.getStorageSync('buildingID').name; | ||||
// 请求接口获取所有置业顾问员工的列表 | // 请求接口获取所有置业顾问员工的列表 | ||||
this.getSectionList() | this.getSectionList() | ||||
this.getMarketingBusiness() | |||||
}, | }, | ||||
onPullDownRefresh() { | onPullDownRefresh() { | ||||
let that = this | let that = this | ||||
this.getMarketingBusiness() | |||||
uni.$on('update', function(data) { | uni.$on('update', function(data) { | ||||
// console.log(data) | // console.log(data) | ||||
that.deptids = data.arr.join(',') | that.deptids = data.arr.join(',') | ||||
@@ -446,7 +466,6 @@ | |||||
// this.buildingname = uni.getStorageSync('buildingID').name; | // this.buildingname = uni.getStorageSync('buildingID').name; | ||||
// 请求接口获取所有置业顾问员工的列表 | // 请求接口获取所有置业顾问员工的列表 | ||||
this.getSectionList() | this.getSectionList() | ||||
this.getMarketingBusiness() | |||||
setTimeout(function() { | setTimeout(function() { | ||||
uni.stopPullDownRefresh(); | uni.stopPullDownRefresh(); | ||||
}, 1000); | }, 1000); | ||||
@@ -465,13 +484,27 @@ | |||||
this.showBeText = e[0].label | this.showBeText = e[0].label | ||||
this.getSectionList() | this.getSectionList() | ||||
}, | }, | ||||
// 确认选择销讲业务 | |||||
templateConfirms(e) { | |||||
this.showTemplates = false; | |||||
this.marketingBusinessId = e[0].value | |||||
this.showBeTexts = e[0].label | |||||
// 获取销奖能力 | |||||
this.getPowerList() | |||||
}, | |||||
// 获取销讲业务 | // 获取销讲业务 | ||||
getMarketingBusiness() { | getMarketingBusiness() { | ||||
this.$u.get('/customer/marketingBusiness', { | this.$u.get('/customer/marketingBusiness', { | ||||
houseId: uni.getStorageSync('buildingID').id, | houseId: uni.getStorageSync('buildingID').id, | ||||
}).then(res => { | }).then(res => { | ||||
this.templateLists = res.map(item => { | |||||
return item | |||||
}) | |||||
this.marketingBusinessId = res[0].id | |||||
this.showBeTexts = res[0].templateName | |||||
this.templateList = res | this.templateList = res | ||||
this.templateList.unshift({ | this.templateList.unshift({ | ||||
templateName: '全部业务', | templateName: '全部业务', | ||||
@@ -814,7 +847,7 @@ | |||||
timeType: this.lastEndDate ? null : this.activeTotal + '', | timeType: this.lastEndDate ? null : this.activeTotal + '', | ||||
lastEndDate: this.lastEndDate, | lastEndDate: this.lastEndDate, | ||||
lastStartDate: this.lastStartDate, | lastStartDate: this.lastStartDate, | ||||
marketingBusiness: this.marketingBusiness, | |||||
marketingBusiness: this.marketingBusinessId, | |||||
}) | }) | ||||
.then(res => { | .then(res => { | ||||
this.LOADING = false | this.LOADING = false | ||||
@@ -957,6 +990,7 @@ | |||||
width: 100%; | width: 100%; | ||||
flex-direction: column; | flex-direction: column; | ||||
border: none; | border: none; | ||||
.tabbox { | .tabbox { | ||||
width: 100%; | width: 100%; | ||||
} | } | ||||
@@ -528,9 +528,7 @@ | |||||
}, | }, | ||||
init() { | init() { | ||||
if (this.marketingBusiness) { | |||||
this.pamect.marketingBusiness = this.marketingBusiness | |||||
} | |||||
this.pamect.marketingBusiness = this.marketingBusiness | |||||
this.$u.post("/cusLvStatistics/lyAndcp", this.pamect).then(data => { | this.$u.post("/cusLvStatistics/lyAndcp", this.pamect).then(data => { | ||||
this.pamect.lastStartDate = data.lastStartDate; | this.pamect.lastStartDate = data.lastStartDate; | ||||
this.pamect.lastEndDate = data.lastEndDate; | this.pamect.lastEndDate = data.lastEndDate; | ||||
@@ -712,9 +710,14 @@ | |||||
//tab切换 | //tab切换 | ||||
tabxuanxiangtap(index) { | tabxuanxiangtap(index) { | ||||
if (index == 1 || index == 3 || index == 4) { | if (index == 1 || index == 3 || index == 4) { | ||||
this.marketingBusinessText = this.showMarketingList[1].templateName | |||||
this.marketingBusiness = this.showMarketingList[1].id | |||||
this.showMarketingList.shift() | |||||
this.marketingBusinessText = this.showMarketingList[0].templateName | |||||
this.marketingBusiness = this.showMarketingList[0].id | |||||
} else { | } else { | ||||
this.showMarketingList.unshift({ | |||||
templateName: '全部', | |||||
id: '' | |||||
}) | |||||
this.marketingBusiness = '' | this.marketingBusiness = '' | ||||
this.marketingBusinessText = '请选择销讲业务' | this.marketingBusinessText = '请选择销讲业务' | ||||
} | } | ||||
@@ -733,9 +736,7 @@ | |||||
series: [] | series: [] | ||||
}; | }; | ||||
this.linetype = "line"; | this.linetype = "line"; | ||||
if (this.marketingBusiness) { | |||||
this.pamect.marketingBusiness = this.marketingBusiness | |||||
} | |||||
this.pamect.marketingBusiness = this.marketingBusiness | |||||
this.$u.post("/cusLvStatistics/teamOrOneValueShow", this.pamect).then(data => { | this.$u.post("/cusLvStatistics/teamOrOneValueShow", this.pamect).then(data => { | ||||
if (this.pamect.showStatus == 0) { | if (this.pamect.showStatus == 0) { | ||||
that.lineOptsect = { | that.lineOptsect = { | ||||
@@ -802,9 +803,7 @@ | |||||
categories: [], | categories: [], | ||||
series: [] | series: [] | ||||
}; | }; | ||||
if (this.marketingBusiness) { | |||||
this.pamect.marketingBusiness = this.marketingBusiness | |||||
} | |||||
this.pamect.marketingBusiness = this.marketingBusiness | |||||
this.linetype = "radar"; | this.linetype = "radar"; | ||||
this.$u.post("/cusLvStatistics/accFirstLevelContrast", this.pamect).then(data => { | this.$u.post("/cusLvStatistics/accFirstLevelContrast", this.pamect).then(data => { | ||||
// return | // return | ||||
@@ -928,9 +927,7 @@ | |||||
categories: [], | categories: [], | ||||
series: [] | series: [] | ||||
}; | }; | ||||
if (this.marketingBusiness) { | |||||
this.pamect.marketingBusiness = this.marketingBusiness | |||||
} | |||||
this.pamect.marketingBusiness = this.marketingBusiness | |||||
this.$u.post("/cusLvStatistics/firstLevelContrast", this.pamect).then(data => { | this.$u.post("/cusLvStatistics/firstLevelContrast", this.pamect).then(data => { | ||||
if (data.length == 0) { | if (data.length == 0) { | ||||
return | return | ||||
@@ -972,9 +969,7 @@ | |||||
aboutEecondary() { | aboutEecondary() { | ||||
this.lineOptsect = {}; | this.lineOptsect = {}; | ||||
this.linetype = "line"; | this.linetype = "line"; | ||||
if (this.marketingBusiness) { | |||||
this.pamect.marketingBusiness = this.marketingBusiness | |||||
} | |||||
this.pamect.marketingBusiness = this.marketingBusiness | |||||
this.$u.post("/cusLvStatistics/level2Contrast", this.pamect).then(data => { | this.$u.post("/cusLvStatistics/level2Contrast", this.pamect).then(data => { | ||||
if (this.pamect.showStatus == 0) { | if (this.pamect.showStatus == 0) { | ||||
this.lineOptsect = { | this.lineOptsect = { | ||||
@@ -1185,9 +1180,7 @@ | |||||
}; | }; | ||||
this.linetype = "line"; | this.linetype = "line"; | ||||
this.$forceUpdate() | this.$forceUpdate() | ||||
if (this.marketingBusiness) { | |||||
this.pamect.marketingBusiness = this.marketingBusiness | |||||
} | |||||
this.pamect.marketingBusiness = this.marketingBusiness | |||||
this.$u.post("/cusLvStatistics/teamOrOneValueShowByDept", this.pamect).then(data => { | this.$u.post("/cusLvStatistics/teamOrOneValueShowByDept", this.pamect).then(data => { | ||||
if (this.Selecttuanduiobj.id == "") { | if (this.Selecttuanduiobj.id == "") { | ||||
var newlist = []; | var newlist = []; | ||||
@@ -1,8 +1,12 @@ | |||||
<template> | <template> | ||||
<view class="box"> | <view class="box"> | ||||
<view class="boxtittabs"> | <view class="boxtittabs"> | ||||
<div class="items" @tap="screenShow = true">{{ showTimeText }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon></div> | |||||
<div class="items" @tap="showTemplate = true">{{ showBeText }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon></div> | |||||
<view class="items" @tap="screenShow = true">{{ showTimeText }} | |||||
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon> | |||||
</view> | |||||
<view class="items" @tap="showTemplate = true">{{ showBeText }} | |||||
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon> | |||||
</view> | |||||
</view> | </view> | ||||
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | ||||
<view class="Piabodata-box"> | <view class="Piabodata-box"> | ||||
@@ -129,6 +133,12 @@ | |||||
<view class="single"> | <view class="single"> | ||||
<view class="title"> | <view class="title"> | ||||
<view class="title1">场景触达分析</view> | <view class="title1">场景触达分析</view> | ||||
<view class="title2" @click="showTemplates=true"> | |||||
<view class="title2-che" style="width: 220rpx;"> | |||||
{{ showBeTexts }} | |||||
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image> | |||||
</view> | |||||
</view> | |||||
</view> | </view> | ||||
<view style="width: 100%;height: 300rpx;text-align: center;line-height: 300rpx;" | <view style="width: 100%;height: 300rpx;text-align: center;line-height: 300rpx;" | ||||
v-if="newlisttabinfo.length==0">暂无数据</view> | v-if="newlisttabinfo.length==0">暂无数据</view> | ||||
@@ -204,10 +214,18 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</u-popup> | </u-popup> | ||||
<!-- 销讲业务 --> | <!-- 销讲业务 --> | ||||
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplate" | <u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplate" | ||||
mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select> | mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select> | ||||
<!-- 销讲业务2 --> | |||||
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplates" | |||||
mode="single-column" :list="templateLists" @cancel="showTemplates = false" @confirm="templateConfirms"> | |||||
</u-select> | |||||
<!-- 加载组件 --> | <!-- 加载组件 --> | ||||
<loading v-model="LOADING"></loading> | <loading v-model="LOADING"></loading> | ||||
</view> | </view> | ||||
@@ -359,6 +377,11 @@ | |||||
templateList: [], // 销讲业务 | templateList: [], // 销讲业务 | ||||
showTemplate: false, // 展示选择销讲业务弹窗 | showTemplate: false, // 展示选择销讲业务弹窗 | ||||
marketingBusiness: '', // 选择的业务id | marketingBusiness: '', // 选择的业务id | ||||
showTemplates: false, // 展示选择销讲业务弹窗 | |||||
templateLists: [], // 销讲业务 | |||||
marketingBusinessId: '', // 选择的业务id | |||||
showBeTexts: '', // | |||||
}; | }; | ||||
}, | }, | ||||
onShow() { | onShow() { | ||||
@@ -413,17 +436,33 @@ | |||||
this.getdata() | this.getdata() | ||||
}, | }, | ||||
// 确认选择销讲业务 | |||||
templateConfirms(e) { | |||||
this.showTemplates = false; | |||||
this.marketingBusinessId = e[0].value | |||||
this.showBeTexts = e[0].label | |||||
this.getdata() | |||||
}, | |||||
// 获取销讲业务 | // 获取销讲业务 | ||||
getMarketingBusiness() { | getMarketingBusiness() { | ||||
this.$u.get('/customer/marketingBusiness', { | this.$u.get('/customer/marketingBusiness', { | ||||
houseId: uni.getStorageSync('buildingID').id, | houseId: uni.getStorageSync('buildingID').id, | ||||
}).then(res => { | }).then(res => { | ||||
this.templateLists = res.map(item => { | |||||
return item | |||||
}) | |||||
this.marketingBusinessId = res[0].id | |||||
this.showBeTexts = res[0].templateName | |||||
this.templateList = res | this.templateList = res | ||||
this.templateList.unshift({ | this.templateList.unshift({ | ||||
templateName: '全部业务', | templateName: '全部业务', | ||||
id: '' | id: '' | ||||
}) | }) | ||||
// 获取维度 | |||||
this.getindexZxl() | |||||
}) | }) | ||||
}, | }, | ||||
@@ -496,7 +535,7 @@ | |||||
timeType: this.lastEndDate ? null : this.activeTotal, | timeType: this.lastEndDate ? null : this.activeTotal, | ||||
lastEndDate: this.lastEndDate, | lastEndDate: this.lastEndDate, | ||||
lastStartDate: this.lastStartDate, | lastStartDate: this.lastStartDate, | ||||
marketingBusiness: this.marketingBusiness, | |||||
marketingBusiness: this.marketingBusinessId, | |||||
}) | }) | ||||
.then(res => { | .then(res => { | ||||
this.LOADING = false | this.LOADING = false | ||||
@@ -138,6 +138,7 @@ | |||||
uni.setStorageSync("fendianindex", 0); //写入缓存 | uni.setStorageSync("fendianindex", 0); //写入缓存 | ||||
uni.setStorageSync("weapp_session_userInfo_data", data); //写入缓存 | uni.setStorageSync("weapp_session_userInfo_data", data); //写入缓存 | ||||
uni.setStorageSync("buildingID", lopan); //项目id写入缓存 | uni.setStorageSync("buildingID", lopan); //项目id写入缓存 | ||||
this.$u.post('/user/addLoginCount', { houseId: data.zkProperties[0].id}) | |||||
uni.switchTab({ | uni.switchTab({ | ||||
url: '/pages/index/index' | url: '/pages/index/index' | ||||
}); | }); | ||||