From 495b81623636b49b88d51020dd2eb2d3e6281cf1 Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Tue, 2 Aug 2022 10:15:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E6=8C=96=E6=8E=98=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 8 ++- .../Piabodata/requireminingAnalysis.vue | 57 +++++++++---------- 2 files changed, 34 insertions(+), 31 deletions(-) diff --git a/manifest.json b/manifest.json index 4735546..bb483e3 100644 --- a/manifest.json +++ b/manifest.json @@ -96,10 +96,14 @@ "urlCheck" : false, "es6" : true, "postcss" : true, - "minified" : false + "minified" : true }, "usingComponents" : true, - "permission" : {}, + "permission" : { + "scope.userLocation" : { + "desc" : "获取地址信息" + } + }, "requiredBackgroundModes" : [ "audio" ], "plugins" : { "WechatSI" : { diff --git a/pages/center/Piabodata/requireminingAnalysis.vue b/pages/center/Piabodata/requireminingAnalysis.vue index a5e1d0d..9f315c8 100644 --- a/pages/center/Piabodata/requireminingAnalysis.vue +++ b/pages/center/Piabodata/requireminingAnalysis.vue @@ -56,7 +56,7 @@ + :ontouch="true" canvasId="wangxiaohuaerlingilingwuyiba2" :canvas2d="true" /> @@ -69,7 +69,7 @@ type="ring" :chartData="ringChartData" :canvas2d="true" - :canvasId="ChartBoxIdwangxiaohuaerlingilingwuyiba1" + canvasId="ChartBoxIdwangxiaohuaerlingilingwuyiba1" :opts='opts' background="none" /> @@ -87,7 +87,7 @@ 操作 暂无数据 - + @@ -150,7 +150,7 @@ guwen: '顾问', huashu: '业务话术', showDesc: false, - sortList: [],//排名列表 + rankList: [],//排名列表 ringChartData: { }, // ring图 分布图 @@ -236,8 +236,7 @@ },{ "name": "对比时间", "data": [] - } - ] + }] }, lineOpts: { yAxis: { @@ -250,14 +249,13 @@ }; }, onShow() { - // this.LOADING = true // 获取项目id - // this.houseId = uni.getStorageSync('buildingID').id; - // // 获取员工 - // this.getStaffList() - // // 获取团队 - // this.getSectionList() - // this.getdata() + this.houseId = uni.getStorageSync('buildingID').id; + // 获取员工 + this.getStaffList() + // 获取团队 + this.getSectionList() + this.getdata() }, onReady: function(){ // 获取项目id @@ -267,19 +265,15 @@ // 获取团队 this.getSectionList() this.getdata() - // this.getRingData() - // this.getwordMiningAnalyzePercentage() - }, - onPullDownRefresh() { }, methods: { getdata(){ // 需求挖掘分析-简报 this.wordMiningAnalyze() - // 挖掘趋势图 - this.getwordMiningAnalyzePercentage() //需求挖掘排行 this.getwordMiningRank() + // 挖掘趋势图 + this.getwordMiningAnalyzePercentage() // 需求挖掘f分布图 this.getRingData() }, @@ -294,9 +288,9 @@ "firstEndDate":!this.activeTotal?this.endDate:'' }) .then(res => { - console.log(res) + // console.log(res) if(res.length){ - this.sortList = res.map(item=>{ + this.rankList = res.map(item=>{ return { name: item.name, id: item.id, @@ -304,6 +298,8 @@ selected: item.selected } }) + }else{ + this.rankList = [] } }) }, @@ -318,7 +314,7 @@ "dateType":this.activeTotal }) .then(res => { - console.log(res) + // console.log(res) this.ringChartData = { series: [ { data: [ @@ -382,6 +378,9 @@ }, // 需求挖掘率趋势图 getwordMiningAnalyzePercentage() { + let categories1 = [] + let categories2 = [] + let categories3 = [] this.$u.post('/cusLvStatistics/wordMiningAnalyzePercentage', { "houseId": this.houseId, "deptId": this.deptVal, @@ -391,25 +390,25 @@ "firstEndDate":!this.activeTotal?this.endDate:'' }) .then(res => { - let categories1 = [] - let categories2 = [] if(res.first&&res.first.length){ categories1 = res.first.map(item=> item.statDate.substring(0,10)) this.lineOptsect.series[0].data=res.first.map(item=> item.wordFraction) }else{ categories1= [] - this.lineOptsect.series[0] = [] + this.lineOptsect.series[0].data = [] } if(res.end&&res.end.length){ this.lineOptsect.series[1].data=res.end.map(item=> item.wordFraction) categories2 = res.end.map(item => item.statDate.substring(0,10)) }else{ categories2 = [] + this.lineOptsect.series[1].data = [] } - let categories3 = [] + for(let i=0;i