feat:对接工单模块接口

This commit is contained in:
zjc
2025-01-01 12:59:32 +08:00
parent d2c0db5270
commit 0742c6fa93
19 changed files with 616 additions and 772 deletions

View File

@@ -209,9 +209,9 @@
)
})
const channelTotal = computed(() => {
return homeData.value?.userPortrait.channel.reduce(
(total, current) => Number(current.count) + total,
0
return (
homeData.value?.userPortrait?.channel ||
[].reduce((total, current) => Number(current.count) + total, 0)
)
})
</script>

View File

@@ -41,30 +41,32 @@
}
},
color: ['#F15A25', '#01FEFE', '#12B5FD'],
series: homeData.value?.userPortrait?.channel.map((item, index) => {
return {
name: item.name,
type: 'pie',
clockwise: false, //顺时加载
radius: [`${x * (index + 1)}%`, `${y + index * 15}%`],
center: ['50%', '40%'],
label: { show: false },
labelLine: { show: false },
emphasis: { show: false },
data: [
{
value: parseFloat(item.value),
name: item.name
},
{
value: 100,
itemStyle: {
color: '#07439C'
series:
homeData.value?.userPortrait?.channel ||
[].map((item, index) => {
return {
name: item.name,
type: 'pie',
clockwise: false, //顺时加载
radius: [`${x * (index + 1)}%`, `${y + index * 15}%`],
center: ['50%', '40%'],
label: { show: false },
labelLine: { show: false },
emphasis: { show: false },
data: [
{
value: parseFloat(item.value),
name: item.name
},
{
value: 100,
itemStyle: {
color: '#07439C'
}
}
}
]
}
})
]
}
})
})
}
)