From e40973680e8842a0797ca2e1cd45ec5e6bf0f3d8 Mon Sep 17 00:00:00 2001 From: xiejun <xj@2023> Date: 星期三, 18 十月 2023 13:47:44 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/views/wel/Statistic.vue | 46 +++++++++++++++++++++++++--------------------- 1 files changed, 25 insertions(+), 21 deletions(-) diff --git a/Source/UBCS-WEB/src/views/wel/Statistic.vue b/Source/UBCS-WEB/src/views/wel/Statistic.vue index f9f822f..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: { @@ -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(){ @@ -77,26 +81,26 @@ handleItemDClick() { this.$router.push({ path: '/MasterData/items?id=gongyingshang@@name=渚涘簲鍟嗕富鏁版嵁'} ); }, - 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 - }; - }); - }, + // 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