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 = [];