From 183d42f844828c854c5bdc247ed110ccfcafc218 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Wed, 8 Feb 2023 15:16:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../center/Piabodata/Employeesstatistics.vue | 126 ++++++- pages/center/Piabodata/StaffAnalysis.vue | 207 ++++++++--- pages/center/Piabodata/Theteamcompared.vue | 272 +++++++++++--- pages/center/Piabodata/TrendAnalysis.vue | 143 ++++++-- pages/center/Piabodata/Userinsightinto.vue | 345 ++++++++++++------ pages/center/Piabodata/index.vue | 13 +- pages/center/records/index.vue | 5 +- pages/index/consumer/index.vue | 3 +- 8 files changed, 844 insertions(+), 270 deletions(-) diff --git a/pages/center/Piabodata/Employeesstatistics.vue b/pages/center/Piabodata/Employeesstatistics.vue index b864ec6..db3cdba 100644 --- a/pages/center/Piabodata/Employeesstatistics.vue +++ b/pages/center/Piabodata/Employeesstatistics.vue @@ -1,19 +1,18 @@ @@ -285,6 +303,14 @@ total: '', result: [], }, + + + screenShow: false, // 时间筛选弹窗 + showTimeText: '近一周', // 展示文字 + showBeText: '全部业务', // + templateList: [], // 销讲业务 + showTemplate: false, // 展示选择销讲业务弹窗 + marketingBusiness: '', // 选择的业务id }; }, onLoad() { @@ -292,6 +318,7 @@ // 获取项目id this.houseId = uni.getStorageSync('buildingID').id; this.init() + this.getMarketingBusiness() }, computed: { @@ -302,7 +329,33 @@ uni.stopPullDownRefresh(); }, 1000); }, - methods: { + methods: { // 销讲业务方法 + templateCancel() { + this.showTemplate = false; + }, + + // 确认选择销讲业务 + templateConfirm(e) { + this.showTemplate = false; + this.marketingBusiness = e[0].value + this.showBeText = e[0].label + this.init() + }, + + + // 获取销讲业务 + getMarketingBusiness() { + this.$u.get('/customer/marketingBusiness', { + houseId: uni.getStorageSync('buildingID').id, + }).then(res => { + this.templateList = res + this.templateList.unshift({ + templateName: '全部业务', + id: '' + }) + }) + }, + getPercent(num, type) { if (this.newlisttabinfo1.result && this.newlisttabinfo1.result.length && type == 1) { let index0 = this.newlisttabinfo1.result[0] @@ -461,17 +514,22 @@ //自定义时间 totalTimeChange(e) { + this.screenShow = false + this.showTimeText = `${e.startDate}-${e.endDate}` this.activeTotal = 3; this.lastEndDate = e.endDate this.lastStartDate = e.startDate this.init() }, //时间切换 - tabtimetap(index) { - this.activeTotal = index; + tabtimetap(index, text) { if (index == 3) { this.totalTimeShow = true; + this.screenShow = false } else { + this.screenShow = false + this.showTimeText = text + this.activeTotal = index; this.lastEndDate = ''; this.lastStartDate = ''; this.init() @@ -493,6 +551,40 @@ }; diff --git a/pages/center/Piabodata/TrendAnalysis.vue b/pages/center/Piabodata/TrendAnalysis.vue index 7127516..af2e6be 100644 --- a/pages/center/Piabodata/TrendAnalysis.vue +++ b/pages/center/Piabodata/TrendAnalysis.vue @@ -63,25 +63,6 @@ {{(item.num2*1) > 0 ? '↑' : '↓'}} - @@ -104,11 +85,19 @@ - - {{lopanobj.name}} - + + + + {{ marketingBusinessText }} + + + + + {{lopanobj.name}} + + @@ -122,12 +111,6 @@ - @@ -230,9 +213,12 @@ + + - + diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index 0438dfe..86454f1 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -527,7 +527,7 @@ this.isRefresh = false; this.getMyCustom() this.getFreeList(); - // this.getMarketingBusiness() + this.getMarketingBusiness() this.isnorefresh = ''; } }, @@ -565,6 +565,7 @@ isShow: false, } }) + console.log(this.templateList, 'this.templateList') }) }, @@ -717,7 +718,7 @@ }) // 销讲业务 this.templateList.forEach(i => { - if (i.isShow) this.screen.marketingBusiness.push(i.value) + if (i.isShow) this.screen.marketingBusiness.push(i.id) }) var parames = { pageNum: this.nextPage, diff --git a/pages/index/consumer/index.vue b/pages/index/consumer/index.vue index 50894ea..1dde35d 100644 --- a/pages/index/consumer/index.vue +++ b/pages/index/consumer/index.vue @@ -633,7 +633,7 @@ this.getWordMiningList(); this.getCustomPhase(); this.getFromSource(); - // this.getMarketingBusiness();// 销讲业务 + this.getMarketingBusiness();// 销讲业务 this.isRefresh = false; this.isnorefresh = 'refresh'; uni.setStorageSync('updatebuildingID', ''); @@ -655,6 +655,7 @@ } }, methods: { + // 获取客户阶段数据 getCustomPhase() { this.phaseList = [];