Browse Source

需求挖掘功能及合并代码

yun
corala 1 year ago
parent
commit
dd5e85cf53
2 changed files with 66 additions and 40 deletions
  1. +62
    -40
      pages/center/Piabodata/requireminingAnalysis.vue
  2. +4
    -0
      pages/center/consumer/index.vue

+ 62
- 40
pages/center/Piabodata/requireminingAnalysis.vue View File

@@ -14,13 +14,10 @@
{{ guwen}} {{ guwen}}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
</view> </view>
<!-- <view class="tabbox" @click="taptimetuisshow">
<view class="tabbox" @click="huashushow=true">
{{ huashu}} {{ huashu}}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
</view> -->
<!-- <view class="tabbox" @click="screenshow">
更多筛选<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
</view> -->
</view>
</view> </view>
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
<view class="boxzonglan" style="min-height: 400rpx;"> <view class="boxzonglan" style="min-height: 400rpx;">
@@ -117,9 +114,11 @@
自定义</view> 自定义</view>
</u-popup> </u-popup>
<u-calendar v-model="calendarShow" mode="range" @change="calendarTimeChange"></u-calendar> <u-calendar v-model="calendarShow" mode="range" @change="calendarTimeChange"></u-calendar>
<u-select v-model="guwenshow" :list="staffList" @confirm="staffSelectCallback($event,0)"
<u-select v-model="guwenshow" :list="staffList" @confirm="guwenCallback"
:default-value='selindex'></u-select>
<u-select v-model="deptshow" :list="teamList" @confirm="deptCallback"
:default-value='selindex'></u-select> :default-value='selindex'></u-select>
<u-select v-model="deptshow" :list="teamList" @confirm="staffSelectCallback($event,1)"
<u-select v-model="hushushow" :list="hushuList" @confirm="huashuCallback"
:default-value='selindex'></u-select> :default-value='selindex'></u-select>
<!-- 加载组件 --> <!-- 加载组件 -->
<loading v-model="LOADING"></loading> <loading v-model="LOADING"></loading>
@@ -137,19 +136,21 @@
data() { data() {
return { return {
selindex: '', selindex: '',
huashushow: false,
guwenshow: false, guwenshow: false,
timeshow: false, timeshow: false,
selectshow: false, selectshow: false,
deptshow: false, deptshow: false,
deptVal: '', deptVal: '',
huashuVal: '',
guwenVal: '', guwenVal: '',
// 筛选文字展示 // 筛选文字展示
time: '近7天', time: '近7天',
dept: '部门', dept: '部门',
guwen: '顾问', guwen: '顾问',
huashu: '话术',
huashu: '业务话术',
showDesc: false, showDesc: false,
sortList: [],
sortList: [],//排名列表
ringChartData: { ringChartData: {
}, },
// ring图 分布图 // ring图 分布图
@@ -189,10 +190,9 @@
}, },
activeTotal: 4, activeTotal: 4,
houseId: '', houseId: '',
// 员工列表
staffList: [],
// 团队列表
teamList: [],
hushuList: [],// 业务话术
staffList: [],// 员工列表
teamList: [],// 团队列表
team: { team: {
value: '', value: '',
label: '' label: ''
@@ -200,7 +200,6 @@
startDate: '', startDate: '',
endDate: '', endDate: '',
calendarShow: false, calendarShow: false,
activeTab: 0,
numlist: [{ numlist: [{
name: '平均需求挖掘率', name: '平均需求挖掘率',
firstnum: '', firstnum: '',
@@ -240,9 +239,6 @@
} }
] ]
}, },
Theteamcomparedisshow: false,
Groupcontrastisshow: false,
allList: [],
lineOpts: { lineOpts: {
yAxis: { yAxis: {
data: [{ data: [{
@@ -255,6 +251,15 @@
}, },
onShow() { onShow() {
// this.LOADING = true // this.LOADING = true
// 获取项目id
// this.houseId = uni.getStorageSync('buildingID').id;
// // 获取员工
// this.getStaffList()
// // 获取团队
// this.getSectionList()
// this.getdata()
},
onReady: function(){
// 获取项目id // 获取项目id
this.houseId = uni.getStorageSync('buildingID').id; this.houseId = uni.getStorageSync('buildingID').id;
// 获取员工 // 获取员工
@@ -262,9 +267,8 @@
// 获取团队 // 获取团队
this.getSectionList() this.getSectionList()
this.getdata() this.getdata()
},
onReady: function(){
this.getRingData()
// this.getRingData()
// this.getwordMiningAnalyzePercentage()
}, },
onPullDownRefresh() { onPullDownRefresh() {
}, },
@@ -282,9 +286,9 @@
// 需求挖掘排行 // 需求挖掘排行
getwordMiningRank(){ getwordMiningRank(){
this.$u.post('/cusLvStatistics/wordMiningRank', { this.$u.post('/cusLvStatistics/wordMiningRank', {
houseId: this.houseId,
deptId: this.deptVal,
createUser: this.guwenVal,
"houseId": this.houseId,
"deptId": this.deptVal,
"createUser": this.guwenVal,
"dateType":this.activeTotal, "dateType":this.activeTotal,
"firstStartDate":!this.activeTotal?this.startDate:'', "firstStartDate":!this.activeTotal?this.startDate:'',
"firstEndDate":!this.activeTotal?this.endDate:'' "firstEndDate":!this.activeTotal?this.endDate:''
@@ -306,9 +310,9 @@
// 需求挖掘分布图 // 需求挖掘分布图
getRingData(){ getRingData(){
this.$u.post('/cusLvStatistics/wordMiningAnalyzeFenbu', { this.$u.post('/cusLvStatistics/wordMiningAnalyzeFenbu', {
houseId: this.houseId,
deptId: this.deptVal,
createUser: this.guwenVal,
"houseId": this.houseId,
"deptId": this.deptVal,
"createUser": this.guwenVal,
"firstStartDate":!this.activeTotal?this.startDate:'', "firstStartDate":!this.activeTotal?this.startDate:'',
"firstEndDate":!this.activeTotal?this.endDate:'', "firstEndDate":!this.activeTotal?this.endDate:'',
"dateType":this.activeTotal "dateType":this.activeTotal
@@ -337,8 +341,8 @@
wordMiningAnalyze() { wordMiningAnalyze() {
let params = { let params = {
"houseId":this.houseId, "houseId":this.houseId,
deptId: this.deptVal,
userId: this.guwenVal,
"deptId": this.deptVal,
"userId": this.guwenVal,
"dateType": this.activeTotal, "dateType": this.activeTotal,
"firstStartDate":!this.activeTotal?this.startDate:'', "firstStartDate":!this.activeTotal?this.startDate:'',
"firstEndDate":!this.activeTotal?this.endDate:'' "firstEndDate":!this.activeTotal?this.endDate:''
@@ -369,15 +373,19 @@
value: item.accountId value: item.accountId
} }
}) })
this.staffList.unshift({
label: '全部',
value: ''
})
} }
}) })
}, },
// 需求挖掘率趋势图 // 需求挖掘率趋势图
getwordMiningAnalyzePercentage() { getwordMiningAnalyzePercentage() {
this.$u.post('/cusLvStatistics/wordMiningAnalyzePercentage', { this.$u.post('/cusLvStatistics/wordMiningAnalyzePercentage', {
houseId: this.houseId,
deptId: this.deptVal,
createUser: this.guwenVal,
"houseId": this.houseId,
"deptId": this.deptVal,
"createUser": this.guwenVal,
"dateType": this.activeTotal, "dateType": this.activeTotal,
"firstStartDate":!this.activeTotal?this.startDate:'', "firstStartDate":!this.activeTotal?this.startDate:'',
"firstEndDate":!this.activeTotal?this.endDate:'' "firstEndDate":!this.activeTotal?this.endDate:''
@@ -419,6 +427,10 @@
value: item.deptId value: item.deptId
} }
}) })
this.teamList.unshift({
label: '全部',
value: ''
})
} }
}) })
}, },
@@ -436,16 +448,26 @@
} }
this.timeshow = false this.timeshow = false
}, },
staffSelectCallback(e, idx) {
if (idx == 0) {
this.guwenVal = e[0].value
this.guwen = e[0].label
} else { // 部门
this.dept = e[0].label
this.deptVal = e[0].value
}
// 顾问选择
guwenCallback(e){
console.log(e)
this.guwenVal = e[0].value
this.guwen = e[0].label
this.getdata()
},
// 部门选择
deptCallback(e){
console.log(e)
this.deptVal = e[0].value
this.dept = e[0].label
this.getdata()
},
// 话术选择
huashuCallback(e){
console.log(e)
this.huashuVal = e[0].value
this.huashu = e[0].label
this.getdata() this.getdata()

}, },
//自定义时间 //自定义时间
calendarTimeChange(e) { calendarTimeChange(e) {


+ 4
- 0
pages/center/consumer/index.vue View File

@@ -1086,6 +1086,10 @@ export default {
item.label = item.name; item.label = item.name;
item.value = item.accountId; item.value = item.accountId;
}); });
this.freeList.unshift({
label: '全部',
value: '',
})
}); });
}, },
// 获取客户阶段数据 // 获取客户阶段数据


Loading…
Cancel
Save