From 11938b224ccb3a998501c46b978aa29813262261 Mon Sep 17 00:00:00 2001 From: woody Date: Wed, 3 Sep 2025 13:55:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(performaceEchart):=20=E6=9C=88=E5=BA=A6?= =?UTF-8?q?=E4=B8=9A=E7=BB=A9=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6=EF=BC=8C?= =?UTF-8?q?=E4=B8=B4=E6=97=B6=E9=9A=90=E8=97=8F=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../distribution/performanceDistribution.vue | 1 - pages/performanceEchart/index.vue | 48 ++++++++++++------- 2 files changed, 31 insertions(+), 18 deletions(-) diff --git a/components/distribution/performanceDistribution.vue b/components/distribution/performanceDistribution.vue index 45de658..3cd2a94 100644 --- a/components/distribution/performanceDistribution.vue +++ b/components/distribution/performanceDistribution.vue @@ -275,7 +275,6 @@ export default { } const res = await getMonthAchieve(params) - console.log(res, '....res') if (res.code === 200) { const { total, rows } = res this.total = total diff --git a/pages/performanceEchart/index.vue b/pages/performanceEchart/index.vue index 359bbc9..d692c87 100644 --- a/pages/performanceEchart/index.vue +++ b/pages/performanceEchart/index.vue @@ -3,18 +3,17 @@ {{ item.name }} @@ -32,6 +31,7 @@ import * as api from '@/config/login.js' import * as apis from '@/config/market.js' import { setToken } from '@/config/auth.js' +import { MEMBER_SIGN } from '@/util/common' import store from '@/store' import placement from '@/components/distribution/placement.vue' import placementPerformance from '@/components/distribution/placementPerformance.vue' @@ -86,11 +86,13 @@ export default { // name: '月度业绩', // menuKey: '', // value: 'ConsanguinityCheck', + // index: 0 // }, { name: '推荐列表', menuKey: '', value: 'recommendList', + index: 1, }, // { @@ -122,16 +124,16 @@ export default { this.query.startDate = this.getStartTime() this.ifDetail = val.ifDetail || '0' // this.query.endDate = this.getEndTime() - this.getMenuLists() + // this.getMenuLists() }, async onPullDownRefresh() { - if (this.navIndex == 1) { + if (this.navIndex === 1) { this.$refs.sgsyData.refresh() } this.$refs.performanceRef.refresh() }, async onReachBottom() { - if (this.navIndex == 1) { + if (this.navIndex === 1) { this.$refs.sgsyData.nextPageQuery() } this.$refs.performanceRef.nextPage() @@ -188,18 +190,30 @@ export default { this.ifDetail = '0' }, getMenuLists() { - api.menuList().then(res => { - res.data.forEach(item => { - this.navList.forEach(items => { - if (item.menuKey == items.value) { - items.menuKey = item.menuKey - } + this.$store.dispatch('GetInfo').then(user => { + this.userInfo = user || null + if (user.memberSign === MEMBER_SIGN.V5_LEVEL) { + this.navList.unshift({ + name: '月度业绩', + menuKey: '', + value: 'ConsanguinityCheck', + index: 0, }) - if (this.marketList[0].name == item.menuKey) { - this.marketList[0].isShow = true - } - }) + this.navIndex = 0 + } }) + // api.menuList().then(res => { + // res.data.forEach(item => { + // this.navList.forEach(items => { + // if (item.menuKey == items.value) { + // items.menuKey = item.menuKey + // } + // }) + // if (this.marketList[0].name == item.menuKey) { + // this.marketList[0].isShow = true + // } + // }) + // }) }, }, }