From c8f0ae592ad05abf1c0d3e936d3c4b80afa288de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Sat, 19 Aug 2023 21:49:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E8=A7=A3=E4=BB=A3=E7=A0=81=E6=94=BE?= =?UTF-8?q?=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/index.vue b/src/pages/index.vue index cb1c956..a9bb59f 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -527,14 +527,14 @@ export default { return 0; }, init() { - // this.$api.project.groupByProjectCategory(datas=>{ - // this.projectCategory=datas; - // this.prjPrcessTotal=this.getPrjCateCount(0); - // let item=this.projectCategory.length>0?this.projectCategory[0]:null; - // this.prjPrcessData[0].value=item && item.length>0?item[0].cnt:0; - // this.prjPrcessData[1].value=item && item.length>1?item[1].cnt:0; - // this.elKey++; - // }); + this.$api.project.groupByProjectCategory(datas=>{ + this.projectCategory=datas; + this.prjPrcessTotal=this.getPrjCateCount(0); + let item=this.projectCategory.length>0?this.projectCategory[0]:null; + this.prjPrcessData[0].value=item && item.length>0?item[0].cnt:0; + this.prjPrcessData[1].value=item && item.length>1?item[1].cnt:0; + this.elKey++; + }); this.localStorage = JSON.parse(localStorage.getItem("data1"))