|
|
@@ -97,19 +97,17 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u-popup v-model="timeshow" mode="bottom"> |
|
|
|
<view class="timeview" :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }" |
|
|
|
@click="tabtimetap(5, '接待时间')"> |
|
|
|
全部</view> |
|
|
|
<view class="timeview" :style="{ color: activeTotal == 2 ? '#2B6EFF' : '#333333' }" |
|
|
|
@click="tabtimetap(2, '近7天')"> |
|
|
|
近7天</view> |
|
|
|
<view class="timeview" :style="{ color: activeTotal == 3 ? '#2B6EFF' : '#333333' }" |
|
|
|
@click="tabtimetap(3, '近15天')"> |
|
|
|
<view class="timeview" :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }" |
|
|
|
@click="tabtimetap(5, '近15天')"> |
|
|
|
近15天</view> |
|
|
|
<view class="timeview" :style="{ color: activeTotal == 6 ? '#2B6EFF' : '#333333' }" |
|
|
|
@click="tabtimetap(6, '近30天')"> |
|
|
|
近30天</view> |
|
|
|
<view class="timeview" :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(4,'自定义')"> |
|
|
|
<view class="timeview" :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }" |
|
|
|
@click="tabtimetap(4,'自定义')"> |
|
|
|
自定义</view> |
|
|
|
</u-popup> |
|
|
|
<u-calendar v-model="calendarShow" mode="range" @change="calendarTimeChange"></u-calendar> |
|
|
@@ -141,7 +139,7 @@ |
|
|
|
huashuVal: '', |
|
|
|
guwenVal: '', |
|
|
|
// 筛选文字展示 |
|
|
|
time: '近7天', |
|
|
|
time: '接待时间', |
|
|
|
dept: '部门', |
|
|
|
guwen: '顾问', |
|
|
|
huashu: '业务话术', |
|
|
@@ -184,7 +182,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
activeTotal: 5, |
|
|
|
activeTotal: 2, |
|
|
|
houseId: '', |
|
|
|
// hushuList: [],// 业务话术 |
|
|
|
staffList: [],// 员工列表 |
|
|
@@ -275,13 +273,21 @@ |
|
|
|
}, |
|
|
|
// 需求挖掘排行 |
|
|
|
getwordMiningRank(){ |
|
|
|
let dateType = 0; |
|
|
|
if (this.activeTotal == 4) {// 选择全部和自定义 |
|
|
|
dateType = null; |
|
|
|
}else { |
|
|
|
dateType = this.activeTotal; |
|
|
|
this.startDate = '' |
|
|
|
this.endDate = '' |
|
|
|
} |
|
|
|
this.$u.post('/cusLvStatistics/wordMiningRank', { |
|
|
|
"houseId": this.houseId, |
|
|
|
"deptId": this.deptVal, |
|
|
|
"createUser": this.guwenVal, |
|
|
|
"dateType":this.activeTotal, |
|
|
|
"firstStartDate":!this.activeTotal?this.startDate:'', |
|
|
|
"firstEndDate":!this.activeTotal?this.endDate:'' |
|
|
|
"dateType":dateType, |
|
|
|
"firstStartDate":this.startDate, |
|
|
|
"firstEndDate":this.endDate |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
// console.log(res) |
|
|
@@ -301,13 +307,21 @@ |
|
|
|
}, |
|
|
|
// 需求挖掘分布图 |
|
|
|
getRingData(){ |
|
|
|
let dateType = 0; |
|
|
|
if (this.activeTotal == 4) {// 选择自定义 |
|
|
|
dateType = null; |
|
|
|
}else { |
|
|
|
dateType = this.activeTotal; |
|
|
|
this.startDate = '' |
|
|
|
this.endDate = '' |
|
|
|
} |
|
|
|
this.$u.post('/cusLvStatistics/wordMiningAnalyzeFenbu', { |
|
|
|
"houseId": this.houseId, |
|
|
|
"deptId": this.deptVal, |
|
|
|
"createUser": this.guwenVal, |
|
|
|
"firstStartDate":!this.activeTotal?this.startDate:'', |
|
|
|
"firstEndDate":!this.activeTotal?this.endDate:'', |
|
|
|
"dateType":this.activeTotal |
|
|
|
"dateType":dateType, |
|
|
|
"firstStartDate":this.startDate, |
|
|
|
"firstEndDate":this.endDate |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
// console.log(res) |
|
|
@@ -331,13 +345,21 @@ |
|
|
|
}, |
|
|
|
// 需求挖掘分析-简报 |
|
|
|
wordMiningAnalyze() { |
|
|
|
let dateType = 0; |
|
|
|
if (this.activeTotal == 4) {// 选择全部和自定义 |
|
|
|
dateType = null; |
|
|
|
}else { |
|
|
|
dateType = this.activeTotal; |
|
|
|
this.startDate = '' |
|
|
|
this.endDate = '' |
|
|
|
} |
|
|
|
let params = { |
|
|
|
"houseId":this.houseId, |
|
|
|
"deptId": this.deptVal, |
|
|
|
"userId": this.guwenVal, |
|
|
|
"dateType": this.activeTotal, |
|
|
|
"firstStartDate":!this.activeTotal?this.startDate:'', |
|
|
|
"firstEndDate":!this.activeTotal?this.endDate:'' |
|
|
|
"houseId": this.houseId, |
|
|
|
"deptId": this.deptVal, |
|
|
|
"createUser": this.guwenVal, |
|
|
|
"dateType":dateType, |
|
|
|
"firstStartDate":this.startDate, |
|
|
|
"firstEndDate":this.endDate |
|
|
|
} |
|
|
|
this.$u.post("/cusLvStatistics/wordMiningAnalyze",params).then(res => { |
|
|
|
// console.log(res.contrast) |
|
|
@@ -377,13 +399,21 @@ |
|
|
|
let categories1 = [] |
|
|
|
let categories2 = [] |
|
|
|
let categories3 = [] |
|
|
|
let dateType = 0; |
|
|
|
if (this.activeTotal == 4) {// 选择全部和自定义 |
|
|
|
dateType = null; |
|
|
|
}else { |
|
|
|
dateType = this.activeTotal; |
|
|
|
this.startDate = '' |
|
|
|
this.endDate = '' |
|
|
|
} |
|
|
|
this.$u.post('/cusLvStatistics/wordMiningAnalyzePercentage', { |
|
|
|
"houseId": this.houseId, |
|
|
|
"deptId": this.deptVal, |
|
|
|
"createUser": this.guwenVal, |
|
|
|
"dateType": this.activeTotal, |
|
|
|
"firstStartDate":!this.activeTotal?this.startDate:'', |
|
|
|
"firstEndDate":!this.activeTotal?this.endDate:'' |
|
|
|
"dateType":dateType, |
|
|
|
"firstStartDate":this.startDate, |
|
|
|
"firstEndDate":this.endDate |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
if(res.first&&res.first.length){ |
|
|
@@ -431,16 +461,15 @@ |
|
|
|
}, |
|
|
|
//时间切换 |
|
|
|
tabtimetap(index, text) { |
|
|
|
if (index == 3) { |
|
|
|
if (index == 4) { |
|
|
|
this.calendarShow = true; |
|
|
|
this.activeTotal = null |
|
|
|
} else { |
|
|
|
this.activeTotal = index; |
|
|
|
this.endDate = '' |
|
|
|
this.startDate = '' |
|
|
|
this.time = text |
|
|
|
this.getdata() |
|
|
|
} |
|
|
|
this.activeTotal = index; |
|
|
|
this.timeshow = false |
|
|
|
}, |
|
|
|
// 顾问选择 |
|
|
@@ -466,8 +495,6 @@ |
|
|
|
}, |
|
|
|
//自定义时间 |
|
|
|
calendarTimeChange(e) { |
|
|
|
// console.log(e.startDate, e.endDate) |
|
|
|
this.activeTotal = null; |
|
|
|
this.endDate = e.endDate |
|
|
|
this.startDate = e.startDate |
|
|
|
this.time = '自定义' |
|
|
|