From 2f01e976dc3ad3310110347ddea3360aa812d435 Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Wed, 17 Aug 2022 18:13:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/center/Piabodata/index.vue | 4 +- .../Piabodata/requireminingAnalysis.vue | 2 +- pages/center/records/index.vue | 66 ++++++++++++------- pages/index/index.vue | 2 +- pages/learning/Keywordsearch.vue | 16 ++--- pages/mine/details2.vue | 30 +++++---- 6 files changed, 72 insertions(+), 48 deletions(-) diff --git a/pages/center/Piabodata/index.vue b/pages/center/Piabodata/index.vue index 8d26f7b..3016aca 100644 --- a/pages/center/Piabodata/index.vue +++ b/pages/center/Piabodata/index.vue @@ -46,12 +46,12 @@ 集团对比 - + diff --git a/pages/center/Piabodata/requireminingAnalysis.vue b/pages/center/Piabodata/requireminingAnalysis.vue index af74bc5..24f4c81 100644 --- a/pages/center/Piabodata/requireminingAnalysis.vue +++ b/pages/center/Piabodata/requireminingAnalysis.vue @@ -343,7 +343,7 @@ //跳转到接待记录 Toview(item,i){ uni.navigateTo({ - url: '/pages/center/records/index?refresh=refresh&activeTotal='+this.activeTotal+'&staTime='+ this.startDate + '&endTime='+this.endDate+'&validInvalid=0'+'&keywordsId='+item.keywordsId + url: '/pages/center/records/index?refresh=refresh&activeTotal='+this.activeTotal+'&staTime='+ this.startDate + '&endTime='+this.endDate+'&validInvalid=0'+'&keywordsId='+item.keywordsId+'&source=wajue' }); }, // 需求挖掘分析-简报 diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index 2f2794b..de36d57 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -453,12 +453,16 @@ sortFilter: '排序', arriveFilter: '接待时间', counselorName: '接待顾问', + source: ''//从挖掘分析页跳转来的 } }, onLoad(options) { this.LOADING = true this.isnorefresh = options.refresh; - + + if (options.source) { + this.source = options.source + } if (options.activeTotal) { this.activeTotal = Number(options.activeTotal) } @@ -478,6 +482,9 @@ this.staTime = options.staTime; this.endTime = options.endtime; } + if(this.keywordsName){ + + } }, onShow() { this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); @@ -571,6 +578,20 @@ }) return } else { + // if(this.source=='wajue'){ + // let parames1 = { + // marketingId: this.keywordsId, + // customerId: item.id, + // type: '1' + // } + // this.$u.post("/corpus/pinWordMatching", parames1).then(res => { + // let items = JSON.parse(res[0].transferContent) + // uni.setStorageSync("searchobj", items); //写入缓存 + // }).catch(e => { + + // }) + // } + const parames = { pageNum: 1, pageSize: 100, @@ -578,12 +599,13 @@ customerId: item.id, } } - var item = { + var item1 = { bg: 0, customerId: item.id, wordFraction: item.wordFraction } - uni.setStorageSync("searchobj", item); //写入缓存 + + uni.setStorageSync("searchobj", item1); //写入缓存 uni.setStorageSync("entrance", 1); //写入缓存 this.$u.post("/corpus/findByPage", parames).then(res => { if (res == null) { @@ -645,25 +667,25 @@ if(i.isShow) this.screen.xiaojiangVal.push(i.value) }) var parames = { - pageNum: this.nextPage, - pageSize: 10, - query: { - projectId: this.buildingID, - keywordsId: this.keywordsId, - staTime: this.staTime,// 接待时间 - endTime: this.endTime,// 接待时间 - agentId: this.screen.agentId, // 顾问ID - visitRecordNum: this.screen.visitRecord.length?this.screen.visitRecord.join(','):'',//到访次数 - wordFractions: this.screen.wajueVal.length?this.screen.wajueVal.join(','):'',//挖掘 - duractionNums: this.screen.jiedaiVal.length?this.screen.jiedaiVal.join(','):'',//接待时长 - fractions: this.screen.xiaojiangVal.length?this.screen.xiaojiangVal.join(','):'',//销讲 - markAdvisor: this.screen.markAdvisor,//标记顾问 - dateType: dateType,//时间类型 - orderBy: this.screen.orderBy==''?'':this.screen.orderBy,//排序 - validInvalid: this.screen.validInvalid,//录音标识 - clientStage: this.screen.clientStage,// 客户阶段 - recording: this.screen.validInvalid == 2 ? 0 : null // 录音 - } + pageNum: this.nextPage, + pageSize: 10, + query: { + projectId: this.buildingID, + keywordsId: this.keywordsId, + staTime: this.staTime,// 接待时间 + endTime: this.endTime,// 接待时间 + agentId: this.screen.agentId, // 顾问ID + visitRecordNum: this.screen.visitRecord.length?this.screen.visitRecord.join(','):'',//到访次数 + wordFractions: this.screen.wajueVal.length?this.screen.wajueVal.join(','):'',//挖掘 + duractionNums: this.screen.jiedaiVal.length?this.screen.jiedaiVal.join(','):'',//接待时长 + fractions: this.screen.xiaojiangVal.length?this.screen.xiaojiangVal.join(','):'',//销讲 + markAdvisor: this.screen.markAdvisor,//标记顾问 + dateType: dateType,//时间类型 + orderBy: this.screen.orderBy==''?'':this.screen.orderBy,//排序 + validInvalid: this.screen.validInvalid,//录音标识 + clientStage: this.screen.clientStage,// 客户阶段 + recording: this.screen.validInvalid == 2 ? 0 : null // 录音 + } }; if (this.screen.agentId) { parames.query.agentId = this.screen.agentId diff --git a/pages/index/index.vue b/pages/index/index.vue index 8b8eff3..76ac267 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -150,7 +150,7 @@ 有效接待 - {{Thisweekobj.fraction || 0}}% + {{Thisweekobj.fraction>100?100:(Thisweekobj.fraction||0)}}% 平均执行率 diff --git a/pages/learning/Keywordsearch.vue b/pages/learning/Keywordsearch.vue index 010ec01..aa6ee40 100644 --- a/pages/learning/Keywordsearch.vue +++ b/pages/learning/Keywordsearch.vue @@ -65,19 +65,19 @@ if(this.keyword.length==0){ return }else{ - let parames={ - keyword:this.keyword, - customerId:this.customerId - } - this.$u.post("/corpus/keyWordsMatching", parames).then(res => { - res.forEach(item=>{ - item.Content=JSON.parse(item.transferContent) + let parames={ + keyword:this.keyword, + customerId:this.customerId + } + this.$u.post("/corpus/keyWordsMatching", parames).then(res => { + res.forEach(item=>{ + item.Content=JSON.parse(item.transferContent) }) res.forEach(cet=>{ cet.Content.time=this.formatTime(cet.Content.bg/1000) cet.Content.text=this.brightKeyword(cet.Content.onebest) }) - this.listarr=res; + this.listarr=res; }) } }, diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 71c9765..e3d562e 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -242,7 +242,7 @@ - +