From c958ebb34b91f17e52bcc9ca5de11e8087affda5 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期三, 18 十月 2023 11:17:37 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/views/wel/Statistic.vue | 56 +++++++++++++++++++++++++++++++------------------------- 1 files changed, 31 insertions(+), 25 deletions(-) diff --git a/Source/UBCS-WEB/src/views/wel/Statistic.vue b/Source/UBCS-WEB/src/views/wel/Statistic.vue index 81a37cc..918d584 100644 --- a/Source/UBCS-WEB/src/views/wel/Statistic.vue +++ b/Source/UBCS-WEB/src/views/wel/Statistic.vue @@ -13,6 +13,7 @@ name: "Statistic", data(){ return { + userId:'', countByServer:true, // listMyTask:[] option: { @@ -21,7 +22,7 @@ { click: this.handleItemAClick, title: '鐗╁搧涓绘暟鎹�', - count: 0, + count: 1723, icon: 'iconfont iconicon_doc', color: 'rgb(49, 180, 141)', uiUrl: "/MasterData/items?id=wupin@name=鐗╁搧涓绘暟鎹�", @@ -30,7 +31,7 @@ { click: this.handleItemBClick, title: '浜哄憳涓绘暟鎹�', - count: 0, + count: 1225, icon: 'iconfont iconicon_dispose', color: 'rgb(56, 161, 242)', uiUrl:'/MasterData/items?id=renyuan@@name=浜哄憳涓绘暟鎹�', @@ -38,11 +39,11 @@ }, { click: this.handleItemCClick, - title: '涓婚搴撳畾涔�', - count: 0, + title: 'Part', + count: 523, icon: 'el-icon-setting', color: 'rgb(117, 56, 199)', - uiUrl:'/modeling/classifyTree', + uiUrl:'/MasterData/items?id=10@@name=Part', countUrl:'priceIndexController/countNeedFeedbackPlan' }, { @@ -59,7 +60,10 @@ } }, created() { - // this.getList(); + this.userId=sessionStorage.userId + getList('/api/ubcs-code/mdmCount/getMdmCounts',{id:this.userId}).then(res=>{ + console.log(res) + }) }, computed(){ @@ -72,29 +76,31 @@ this.$router.push({ path: '/MasterData/items?id=renyuan@@name=浜哄憳涓绘暟鎹�'} ); }, handleItemCClick() { - this.$router.push({ path: '/modeling/classifyTree'} ); + this.$router.push({ path: '/MasterData/items?id=10@@name=Part'} ); }, handleItemDClick() { this.$router.push({ path: '/MasterData/items?id=gongyingshang@@name=渚涘簲鍟嗕富鏁版嵁'} ); }, - getList() { - Object.values(this.option.data).map(record => { - record.count = record.count || 0; - if (!this.countByServer) { - // 鏄墠绔煡璇� - getList(record.countUrl, {}).then(res => { - if (res.data.data.success) { - record.count = res.data.data.obj; - } else { - record.count = 0; - } - }); - } - return { - ...record - }; - }); - }, + // getList() { + // // debugger + // Object.values(this.option.data).map(record => { + // record.count = record.count || 0; + // if (!this.countByServer) { + // // 鏄墠绔煡璇� + // getList(record.countUrl, {}).then(res => { + // // console.log('res',res) + // if (res.data.data.success) { + // record.count = res.data.data.obj; + // } else { + // record.count = 0; + // } + // }); + // } + // return { + // ...record + // }; + // }); + // }, } } </script> -- Gitblit v1.9.3