|
|
@@ -26,9 +26,16 @@ |
|
|
|
<view class="boxzonglan" style="min-height: 400rpx;"> |
|
|
|
<view class="zonglantitle">简报 <text @click="showDesc=true">统计说明</text></view> |
|
|
|
<view class="zonglanbox"> |
|
|
|
<view class="grid" v-for="(item,index) in numlist" :key="index"> |
|
|
|
<view class="grid" style="height: auto;" v-for="(item,index) in numlist" :key="index"> |
|
|
|
<view class="audonum">{{item.name}}</view> |
|
|
|
<view class="num">{{item.num}}</view> |
|
|
|
<view class="num">{{item.firstnum||0}}</view> |
|
|
|
<view class="bottom"> |
|
|
|
<view class="leftnum">对比:{{item.endnum||0}}</view> |
|
|
|
<view class="rightnum" :class="item.duibinum>0?'red':'green'">{{item.duibinum||0}} |
|
|
|
<image v-if="item.duibinum>0" src="https://static.quhouse.com/c4145f84cc3c49769ee2ec11465c085b.png" mode="" /> |
|
|
|
<image v-else src="https://static.quhouse.com/c5dbf780e09a4da0b0bab2d7fa58accd.png" mode="" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@@ -50,10 +57,10 @@ |
|
|
|
<view class="title"> |
|
|
|
<view class="title1">平均需求挖掘率趋势</view> |
|
|
|
</view> |
|
|
|
<view class="uchaserbox"> |
|
|
|
<!-- <view class="uchaserbox"> |
|
|
|
<qiun-data-charts type="line" :chartData="lineOptsect" :opts="lineOpts" background="none" |
|
|
|
:ontouch="true" canvasId="wangxiaohuaerlingilingwuyiba1" :canvas2d="true" /> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> |
|
|
|
<view class="single"> |
|
|
@@ -196,21 +203,29 @@ |
|
|
|
activeTab: 0, |
|
|
|
numlist: [{ |
|
|
|
name: '平均需求挖掘率', |
|
|
|
num: '', |
|
|
|
firstnum: '', |
|
|
|
endnum: '', |
|
|
|
duibinum: '', |
|
|
|
setName: 'wordFraction' |
|
|
|
}, { |
|
|
|
name: '未挖掘需求', |
|
|
|
num: '', |
|
|
|
firstnum: '', |
|
|
|
endnum: '', |
|
|
|
duibinum: '', |
|
|
|
setName: 'noFinishWord' |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: '有效接待', |
|
|
|
num: '', |
|
|
|
firstnum: '', |
|
|
|
endnum: '', |
|
|
|
duibinum: '', |
|
|
|
setName: 'activeCustomer' |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: '未标记', |
|
|
|
num: '', |
|
|
|
firstnum: '', |
|
|
|
endnum: '', |
|
|
|
duibinum: '', |
|
|
|
setName: 'markAdvisor' |
|
|
|
}, |
|
|
|
], |
|
|
@@ -249,7 +264,7 @@ |
|
|
|
this.getdata() |
|
|
|
}, |
|
|
|
onReady: function(){ |
|
|
|
this.getRingData() |
|
|
|
// this.getRingData() |
|
|
|
}, |
|
|
|
onPullDownRefresh() { |
|
|
|
}, |
|
|
@@ -258,14 +273,18 @@ |
|
|
|
// 需求挖掘分析-简报 |
|
|
|
this.wordMiningAnalyze() |
|
|
|
// 挖掘趋势图 |
|
|
|
this.getwordMiningAnalyzePercentage() |
|
|
|
//需求挖掘排行 |
|
|
|
this.getwordMiningRank() |
|
|
|
// this.getwordMiningAnalyzePercentage() |
|
|
|
// //需求挖掘排行 |
|
|
|
// this.getwordMiningRank() |
|
|
|
// // 需求挖掘f分布图 |
|
|
|
// this.getRingData() |
|
|
|
}, |
|
|
|
// 需求挖掘排行 |
|
|
|
getwordMiningRank(){ |
|
|
|
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:'' |
|
|
@@ -288,6 +307,8 @@ |
|
|
|
getRingData(){ |
|
|
|
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 |
|
|
@@ -316,17 +337,19 @@ |
|
|
|
wordMiningAnalyze() { |
|
|
|
let params = { |
|
|
|
"houseId":this.houseId, |
|
|
|
"deptId":this.deptVal, |
|
|
|
"userId":this.guwenVal, |
|
|
|
deptId: this.deptVal, |
|
|
|
createUser: this.guwenVal, |
|
|
|
"dateType": this.activeTotal, |
|
|
|
"firstStartDate":!this.activeTotal?this.startDate:'', |
|
|
|
"firstEndDate":!this.activeTotal?this.endDate:'' |
|
|
|
} |
|
|
|
this.$u.post("/cusLvStatistics/wordMiningAnalyze",params).then(res => { |
|
|
|
console.log(res.contrast) |
|
|
|
// console.log(res.contrast) |
|
|
|
res.contrast.wordFraction = (res.contrast.fraction || 0) + '%' |
|
|
|
this.numlist.forEach(item => { |
|
|
|
item.num = res.contrast[item.setName] |
|
|
|
item.duibinum = res.contrast[item.setName] |
|
|
|
item.endnum = res.end[item.setName] |
|
|
|
item.firstnum = res.first[item.setName] |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
@@ -351,6 +374,8 @@ |
|
|
|
getwordMiningAnalyzePercentage() { |
|
|
|
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:'' |
|
|
@@ -408,9 +433,9 @@ |
|
|
|
this.endDate = '' |
|
|
|
this.startDate = '' |
|
|
|
this.time = text |
|
|
|
this.getdata() |
|
|
|
} |
|
|
|
this.timeshow = false |
|
|
|
this.getdata() |
|
|
|
}, |
|
|
|
staffSelectCallback(e, idx) { |
|
|
|
if (idx == 0) { |
|
|
@@ -517,7 +542,7 @@ |
|
|
|
font-weight: bold; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.grid:nth-child(1) { |
|
|
|
border-right: none; |
|
|
|
border-bottom: none; |
|
|
@@ -530,6 +555,42 @@ |
|
|
|
.grid:nth-child(3) { |
|
|
|
border-right: none; |
|
|
|
} |
|
|
|
.grid .bottom{ |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
padding-left: 20rpx; |
|
|
|
margin: 10rpx 0 20rpx; |
|
|
|
.leftnum{ |
|
|
|
height: 36rpx; |
|
|
|
font-size: 26rpx; |
|
|
|
font-family: PingFangSC-Regular, PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|
color: #666666; |
|
|
|
line-height: 36rpx; |
|
|
|
margin-right: 20rpx; |
|
|
|
} |
|
|
|
.rightnum{ |
|
|
|
height: 36rpx; |
|
|
|
font-size: 26rpx; |
|
|
|
font-family: PingFangSC-Semibold, PingFang SC; |
|
|
|
font-weight: 600; |
|
|
|
color: #666; |
|
|
|
line-height: 36rpx; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
&.red{ |
|
|
|
color: #E6273A; |
|
|
|
} |
|
|
|
&.green{ |
|
|
|
color: #43CD80; |
|
|
|
} |
|
|
|
image{ |
|
|
|
width: 18rpx; |
|
|
|
height: 14rpx; |
|
|
|
margin-left: 6rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.zonglantitle{ |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|