Commit 48531bfb authored by 郭铭瑶's avatar 郭铭瑶 🤘

解决有求必应里环图的bug

parent 1bab2f2a
......@@ -237,45 +237,48 @@ export default defineComponent({
},
]
})
const pieSeries = pieData.value.map((item, i) => {
const rate = Math.round((pieData.value.length - i) * fontSize.value) + 10
const borderWidth = fontSize.value * 0.6
return {
type: 'pie',
name: item.name,
clockwise: false, //顺时加载
radius: [rate, rate],
label: {
show: false,
},
itemStyle: {
borderWidth,
borderColor: item.color,
},
data: [
item,
{
value: 100 - item.value,
name: '',
tooltip: { show: false },
label: {
show: false,
},
itemStyle: {
color: 'transparent',
borderColor: item.color,
opacity: 0.1,
},
const pieSeries = computed(() => {
return pieData.value.map((item, i) => {
const rate =
Math.round((pieData.value.length - i) * fontSize.value) + 10
const borderWidth = fontSize.value * 0.6
return {
type: 'pie',
name: item.name,
clockwise: false, //顺时加载
radius: [rate, rate],
label: {
show: false,
},
],
}
itemStyle: {
borderWidth,
borderColor: item.color,
},
data: [
item,
{
value: 100 - item.value,
name: '',
tooltip: { show: false },
label: {
show: false,
},
itemStyle: {
color: 'transparent',
borderColor: item.color,
opacity: 0.1,
},
},
],
}
})
})
const pieOption = ref({
const pieOption = computed(() => ({
legend: {
show: false,
},
series: pieSeries,
})
series: pieSeries.value,
}))
const steps = ref(['发现', '立案', '派遣', '处置', '核查', '结案'])
const searchCase = (key: string) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment