From 4d11d0a84a10a46d7df10504fbcc8b430c45d909 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Fri, 24 Jun 2022 20:20:17 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ResourceAggregation.vue | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/front/src/views/abilityStatistics/components/ResourceAggregation.vue b/front/src/views/abilityStatistics/components/ResourceAggregation.vue index 4e0ce871..ffb04a83 100644 --- a/front/src/views/abilityStatistics/components/ResourceAggregation.vue +++ b/front/src/views/abilityStatistics/components/ResourceAggregation.vue @@ -68,13 +68,13 @@ title: '各类资源汇聚量', dataList: [], }) - let photo = ref([ - require('../../../assets/abilityStatistics/banner-jc.png'), - require('../../../assets/abilityStatistics/banner-sj.png'), - require('../../../assets/abilityStatistics/banner-zj.png'), - require('../../../assets/abilityStatistics/banner-yy.png'), - require('../../../assets/abilityStatistics/banner-zs.png'), - ]) + // let photo = ref([ + // require('../../../assets/abilityStatistics/banner-jc.png'), + // require('../../../assets/abilityStatistics/banner-sj.png'), + // require('../../../assets/abilityStatistics/banner-zj.png'), + // require('../../../assets/abilityStatistics/banner-yy.png'), + // require('../../../assets/abilityStatistics/banner-zs.png'), + // ]) // let name = ref([]) // 获取数据资源数据 // const findZywMessage = () => { @@ -99,15 +99,16 @@ // } selectTotal().then((res) => { console.log('selectTotal===============>', res.data.data) - res.data.data.map((item, index) => { - dataList.value.dataList[index].organization = '个' - dataList.value.dataList[index].photo = photo.value[index] - }) + // res.data.data.map((item, index) => { + // dataList.value.dataList[index].organization = '个' + // dataList.value.dataList[index].photo = photo.value[index] + // }) res.data.data.total.forEach((val) => { switch (val.type) { case '组件服务': dataList.value.dataList.push({ organization: '个', + type: '组件服务', photo: require('../../../assets/abilityStatistics/banner-zj.png'), amount: val.count, }) @@ -115,6 +116,7 @@ case '应用资源': dataList.value.dataList.push({ organization: '个', + type: '应用资源', photo: require('../../../assets/abilityStatistics/banner-yy.png'), amount: val.count, }) @@ -122,6 +124,7 @@ case '基础设施': dataList.value.dataList.push({ organization: '个', + type: '基础设施', photo: require('../../../assets/abilityStatistics/banner-jc.png'), amount: val.count, }) @@ -129,6 +132,7 @@ case '数据资源': dataList.value.dataList.push({ organization: '个', + type: '数据资源', photo: require('../../../assets/abilityStatistics/banner-sj.png'), amount: val.count, }) @@ -136,6 +140,7 @@ case '知识库': dataList.value.dataList.push({ organization: '个', + type: '知识库', photo: require('../../../assets/abilityStatistics/banner-zs.png'), amount: val.count, }) @@ -364,7 +369,7 @@ } onMounted(() => { // findZywMessage() - snum() + // snum() sourceDepartment() }) watch(