From c098eed24cf2aaf4af51709190f5d9a54d748f61 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 21 Jan 2022 09:55:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E5=8A=9B=E7=BD=91=E6=A0=BC=E6=81=A2?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/visual/heart/index.vue | 75 +++++++++++------------- 1 file changed, 33 insertions(+), 42 deletions(-) diff --git a/src/views/modules/visual/heart/index.vue b/src/views/modules/visual/heart/index.vue index 5089af17..c22f2dda 100644 --- a/src/views/modules/visual/heart/index.vue +++ b/src/views/modules/visual/heart/index.vue @@ -2,14 +2,12 @@
时间: - +
@@ -22,13 +20,11 @@
- +
@@ -41,13 +37,11 @@
- +
@@ -60,13 +54,11 @@
- +
@@ -84,7 +76,7 @@ import dateFormat from "dai-js/tools/dateFormat"; export default { name: "heart", - data() { + data () { return { agencyId: this.$store.state.user.agencyId, areaCode: "", @@ -187,33 +179,33 @@ export default { }, watch: { - monthId() { + monthId () { this.getApiData(); }, }, - async mounted() { + async mounted () { this.userId = this.uid; await nextTick(100); this.getApiData(); }, methods: { - handleSearch() {}, + handleSearch () { }, - async getApiData() { + async getApiData () { //await this.getAgencyInfo(); this.getTb1(); this.getTb2(); this.getTb3(); }, - toUserInfo(uid) { + toUserInfo (uid) { this.$router.push({ path: `/main-shuju/visual-basicinfo-people/${uid}` }); }, // 获取当前组织信息 - async getAgencyInfo() { + async getAgencyInfo () { const { data, code, msg } = await requestPost( "/data/report/screen/agency/agencydetail-multic", { @@ -227,10 +219,9 @@ export default { }, //加载组织数据 - async getTb1() { + async getTb1 () { const { agencyId, areaCode } = this; - //const url = "/data/report/screen/index/advancedbranchrank"; - const url = "/data/report/screen/index/advancedbranchrank-shibei"; + const url = "/data/report/screen/index/advancedbranchrank"; let params = { agencyId, areaCode, @@ -244,7 +235,7 @@ export default { if (code === 0) { this.tb1.list = data.map((item) => { - return [{ type: "index" }, item.name, item.score]; + return [{ type: "index" }, item.name, item.scroe]; }); this.tb1.srcList = data; } else { @@ -253,7 +244,7 @@ export default { }, //加载组织数据 - async getTb2() { + async getTb2 () { const { agencyId, areaCode } = this; const url = "/data/report/screen/user/partypointrank"; let params = { @@ -283,7 +274,7 @@ export default { }, //加载组织数据 - async getTb3() { + async getTb3 () { const { agencyId, areaCode } = this; const url = "/data/report/screen/user/userpointrank/withoutpartymember"; let params = {