Pārlūkot izejas kodu

需求挖掘功能

yun
corala pirms 2 gadiem
vecāks
revīzija
8e1bc8d804
5 mainītis faili ar 86 papildinājumiem un 23 dzēšanām
  1. +79
    -18
      pages/center/Piabodata/requireminingAnalysis.vue
  2. +1
    -0
      pages/center/records/index.vue
  3. +2
    -0
      pages/index/index.vue
  4. +2
    -2
      pages/login/index.vue
  5. +2
    -3
      utils/domain.js

+ 79
- 18
pages/center/Piabodata/requireminingAnalysis.vue Parādīt failu

@@ -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;


+ 1
- 0
pages/center/records/index.vue Parādīt failu

@@ -435,6 +435,7 @@
this.$u.post("/customer/lifeTrackDefineList", {
houseId: this.buildingID
}).then(res => {
this.LOADING = false
let tempArr = []
res.forEach(item => {
let tempObj = {}


+ 2
- 0
pages/index/index.vue Parādīt failu

@@ -533,6 +533,7 @@
avgDuration: Math.floor(data.data.data.avgDuration / 60) || 0,
tagCustomer: data.data.data.tagCustomer,
fraction: data.data.data.fraction,
wordFraction: data.data.data.wordFraction,
receptionCount: data.data.data.receptionCount
}
}
@@ -564,6 +565,7 @@
avgDuration: Math.floor(data.data.data.avgDuration / 60) || 0,
tagCustomer: data.data.data.tagCustomer,
fraction: data.data.data.fraction,
wordFraction: data.data.data.wordFraction,
receptionCount: data.data.data.receptionCount
}
}


+ 2
- 2
pages/login/index.vue Parādīt failu

@@ -41,9 +41,9 @@
export default {
data() {
return {
username: '18831048327',//18831048327 ,18888888800
username: '',//18831048327 ,18888888800
//获取到的用户名的值
password: '123456',//123456
password: '',//123456
//获取到的密码栏中的值
passwordType: true,
agreeChecked: true


+ 2
- 3
utils/domain.js Parādīt failu

@@ -1,7 +1,7 @@
// http.js使用域名
// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试
const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试
// const baseUrl = 'http://127.0.0.1:8080/autoSR/api'; // 本地
const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙
// const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙
// const baseUrl = 'http://192.168.31.90:8080/api'; // 盛浩
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://hfju.com/api'; // 数智正式
@@ -16,7 +16,6 @@ const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙
// const host = 'http://192.168.31.57:8080/autoSR/api';// 本地
const host = baseUrl; // 测试站
// const host = 'http://192.168.31.167:8080/autoSR/api'; // 长龙
// const host = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪
// const host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
// const host = 'https://zkgj.quhouse.com/api'; // 质控正式
// const host = 'https://hfju.com/api'; // 数智正式


Notiek ielāde…
Atcelt
Saglabāt