BUG修改

This commit is contained in:
a0049873 2022-06-24 20:20:17 +08:00
parent df7c0019f8
commit 4d11d0a84a
1 changed files with 17 additions and 12 deletions

View File

@ -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(