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"))