Browse Source

合并主分支

yun
corala 2 years ago
parent
commit
2d34178fc5
3 changed files with 37 additions and 33 deletions
  1. +13
    -17
      pages/center/Piabodata/requireminingAnalysis.vue
  2. +2
    -0
      pages/center/consumer/index.vue
  3. +22
    -16
      pages/center/records/index.vue

+ 13
- 17
pages/center/Piabodata/requireminingAnalysis.vue View File

@@ -2,15 +2,15 @@
<view class="box"> <view class="box">
<!-- 选择器 --> <!-- 选择器 -->
<view class="boxtittab"> <view class="boxtittab">
<view class="tabbox" @click="timeshow=true">
<view class="tabbox" @click="timeshow=true" style="color:#409eff">
{{ time }} {{ time }}
<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="deptshow=true">
<view class="tabbox" @click="deptshow=true" :style="dept=='部门'?'color:#666':'color:#409eff'">
{{ dept}} {{ dept}}
<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="guwenshow=true">
<view class="tabbox" @click="guwenshow=true" :style="guwen=='顾问'?'color:#666':'color:#409eff'">
{{ 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>
@@ -139,10 +139,9 @@
huashuVal: '', huashuVal: '',
guwenVal: '', guwenVal: '',
// 筛选文字展示 // 筛选文字展示
time: '接待时间',
time: '近7天',
dept: '部门', dept: '部门',
guwen: '顾问', guwen: '顾问',
huashu: '业务话术',
showDesc: false, showDesc: false,
rankList: [],//排名列表 rankList: [],//排名列表
ringChartData: { ringChartData: {
@@ -233,6 +232,9 @@
}] }]
}, },
lineOpts: { lineOpts: {
// xAxis: {
// rotateLabel: true
// },
yAxis: { yAxis: {
data: [{ data: [{
max: 100, max: 100,
@@ -297,7 +299,8 @@
name: item.name, name: item.name,
id: item.id, id: item.id,
fraction: item.fraction, fraction: item.fraction,
selected: item.selected
selected: item.selected,
keywordsId: item.keywordsId
} }
}) })
}else{ }else{
@@ -338,9 +341,9 @@
}) })
}, },
//跳转到接待记录 //跳转到接待记录
Toview(){
Toview(item,i){
uni.navigateTo({ uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal='+this.activeTotal+'&staTime='+ this.startDate + '&endTime'+this.endDate+'&validInvalid=0'
url: '/pages/center/records/index?refresh=refresh&activeTotal='+this.activeTotal+'&staTime='+ this.startDate + '&endTime='+this.endDate+'&validInvalid=0'+'&keywordsId='+item.keywordsId
}); });
}, },
// 需求挖掘分析-简报 // 需求挖掘分析-简报
@@ -417,7 +420,7 @@
}) })
.then(res => { .then(res => {
if(res.first&&res.first.length){ if(res.first&&res.first.length){
categories1 = res.first.map(item=> item.statDate.substring(0,10))
categories1 = res.first.map(item=> item.statDate.substring(5,10))
this.lineOptsect.series[0].data=res.first.map(item=> item.wordFraction) this.lineOptsect.series[0].data=res.first.map(item=> item.wordFraction)
}else{ }else{
categories1= [] categories1= []
@@ -425,7 +428,7 @@
} }
if(res.end&&res.end.length){ if(res.end&&res.end.length){
this.lineOptsect.series[1].data=res.end.map(item=> item.wordFraction) this.lineOptsect.series[1].data=res.end.map(item=> item.wordFraction)
categories2 = res.end.map(item => item.statDate.substring(0,10))
categories2 = res.end.map(item => item.statDate.substring(5,10))
}else{ }else{
categories2 = [] categories2 = []
this.lineOptsect.series[1].data = [] this.lineOptsect.series[1].data = []
@@ -486,13 +489,6 @@
this.dept = e[0].label this.dept = e[0].label
this.getdata() this.getdata()
}, },
// 话术选择
huashuCallback(e){
// console.log(e)
this.huashuVal = e[0].value
this.huashu = e[0].label
this.getdata()
},
//自定义时间 //自定义时间
calendarTimeChange(e) { calendarTimeChange(e) {
this.endDate = e.endDate this.endDate = e.endDate


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

@@ -1343,6 +1343,8 @@ export default {
margin-top: 11rpx; margin-top: 11rpx;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
font-size: 30rpx;
font-family: PingFangSC-Medium, PingFang SC;
} }
} }




+ 22
- 16
pages/center/records/index.vue View File

@@ -15,17 +15,17 @@
<!-- 选择器 --> <!-- 选择器 -->
<view class="boxtittab"> <view class="boxtittab">
<!-- 排序 --> <!-- 排序 -->
<view class="tabbox" @click="soltishow = true">
<view class="tabbox" @click="soltishow = true" :style="sortFilter=='排序'?'color:#666':'color:#409eff'">
{{ sortFilter }} {{ sortFilter }}
<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="timeshow = true">
<view class="tabbox" @click="timeshow = true" :style="arriveFilter=='接待时间'?'color:#666':'color:#409eff'">
{{ arriveFilter }} {{ arriveFilter }}
<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="selectshow = true">
<!-- //接待顾问 -->
<view class="tabbox" @click="selectshow = true" :style="counselorName=='接待顾问'?'color:#666':'color:#409eff'">
{{ counselorName }} {{ counselorName }}
<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>
@@ -97,9 +97,9 @@
</view> </view>
</view> </view>
<!-- 更多筛选 --> <!-- 更多筛选 -->
<u-popup v-model="screenShow" mode="top" height="850">
<u-popup v-model="screenShow" mode="top" height="900">
<view class="screen"> <view class="screen">
<scroll-view scroll-y="true" style="height: 700rpx;">
<scroll-view scroll-y="true" style="height: 750rpx;">
<!-- 咨询业务 --> <!-- 咨询业务 -->
<!-- <view class="screen-record"> <!-- <view class="screen-record">
<view class="screen-record-text" @click="zixunArrow=!zixunArrow"> <view class="screen-record-text" @click="zixunArrow=!zixunArrow">
@@ -447,6 +447,7 @@
methodsisshow: false, methodsisshow: false,
userInfo: {}, userInfo: {},
totalRecords: '', totalRecords: '',
keywordsId: '',
isRefresh: false, isRefresh: false,
// 筛选文字展示 // 筛选文字展示
sortFilter: '排序', sortFilter: '排序',
@@ -469,6 +470,9 @@
if (options.validInvalid) { if (options.validInvalid) {
this.screen.validInvalid = Number(options.validInvalid) this.screen.validInvalid = Number(options.validInvalid)
} }
if (options.keywordsId) {
this.keywordsId = Number(options.keywordsId)
}
if (options.staTime) { if (options.staTime) {
this.staTime = options.staTime; this.staTime = options.staTime;
@@ -488,7 +492,7 @@
this.recordList = []; this.recordList = [];
this.nextPage = 1; this.nextPage = 1;
this.isRefresh = false; this.isRefresh = false;
this.getMyCustom()
this.getRecordsList()
this.getFreeList(); this.getFreeList();
this.isnorefresh = ''; this.isnorefresh = '';
} }
@@ -496,7 +500,7 @@
onPullDownRefresh() { onPullDownRefresh() {
this.isRefresh = true; this.isRefresh = true;
this.nextPage = 1; this.nextPage = 1;
this.getMyCustom()
this.getRecordsList()
setTimeout(function() { setTimeout(function() {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
}, 1000); }, 1000);
@@ -511,7 +515,7 @@
return return
} else { } else {
this.nextPage += 1; this.nextPage += 1;
this.getMyCustom();
this.getRecordsList();
this.isRefresh = false; this.isRefresh = false;
} }
}, },
@@ -526,7 +530,7 @@
this.nextPage = 1; this.nextPage = 1;
this.recordList = []; this.recordList = [];
this.isRefresh = false; this.isRefresh = false;
this.getMyCustom();
this.getRecordsList();
}, },
//时间选择 -到访-接待时间 //时间选择 -到访-接待时间
tabtimetap(index, text) { tabtimetap(index, text) {
@@ -539,7 +543,7 @@
this.nextPage = 1; this.nextPage = 1;
this.recordList = []; this.recordList = [];
this.isRefresh = false; this.isRefresh = false;
this.getMyCustom();
this.getRecordsList();
} }
}, },
//自定义时间 //自定义时间
@@ -550,7 +554,7 @@
this.nextPage = 1; this.nextPage = 1;
this.recordList = []; this.recordList = [];
this.isRefresh = false; this.isRefresh = false;
this.getMyCustom();
this.getRecordsList();
}, },
tapThevisiting(item) { tapThevisiting(item) {
uni.showLoading({ uni.showLoading({
@@ -611,7 +615,7 @@


}, },
// 获取接待记录列表 // 获取接待记录列表
getMyCustom() {
getRecordsList() {
this.screen.visitRecord = [] this.screen.visitRecord = []
this.screen.jiedaiVal = [] this.screen.jiedaiVal = []
this.screen.wajueVal = [] this.screen.wajueVal = []
@@ -645,6 +649,7 @@
pageSize: 10, pageSize: 10,
query: { query: {
projectId: this.buildingID, projectId: this.buildingID,
keywordsId: this.keywordsId,
staTime: this.staTime,// 接待时间 staTime: this.staTime,// 接待时间
endTime: this.endTime,// 接待时间 endTime: this.endTime,// 接待时间
agentId: this.screen.agentId, // 顾问ID agentId: this.screen.agentId, // 顾问ID
@@ -710,7 +715,7 @@
this.recordList = []; this.recordList = [];
this.nextPage = 1; this.nextPage = 1;
this.isRefresh = false; this.isRefresh = false;
this.getMyCustom();
this.getRecordsList();
}, },
reset() { reset() {
this.screen.agentId ='' this.screen.agentId =''
@@ -740,7 +745,7 @@
}) })
this.nextPage = 1; this.nextPage = 1;
this.recordList = []; this.recordList = [];
this.getMyCustom();
this.getRecordsList();
}, },
//标记顾问 //标记顾问
screenvisitRecord(i) { screenvisitRecord(i) {
@@ -765,7 +770,7 @@
this.recordList = []; this.recordList = [];
this.nextPage = 1; this.nextPage = 1;
this.isRefresh = false; this.isRefresh = false;
this.getMyCustom();
this.getRecordsList();
}, },
goSearch() { goSearch() {
uni.navigateTo({ uni.navigateTo({
@@ -912,6 +917,7 @@
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
margin-right: 10rpx; margin-right: 10rpx;
font-size: 30rpx;
} }


.status { .status {


Loading…
Cancel
Save