巡检路线
This commit is contained in:
@@ -115,7 +115,6 @@ async function fetchOrderTyper() {
|
||||
const totalQuantity = board.value.satisfactionChartList.reduce((sum, item) => {
|
||||
return sum + Number(item.quantity || 0);
|
||||
}, 0);
|
||||
console.log(seriesData.value)
|
||||
renderOrderTyper({
|
||||
title: {text: '工单类型分类占比',left: '18px',top: '18px'},
|
||||
tooltip: {
|
||||
@@ -127,7 +126,13 @@ async function fetchOrderTyper() {
|
||||
orient: 'vertical',
|
||||
icon: 'circle',
|
||||
itemWidth: 8,
|
||||
itemHeight: 8
|
||||
itemHeight: 8,
|
||||
formatter: (name) => {
|
||||
const dataItem = seriesData.value.find(item => item.name === name);
|
||||
const value = dataItem?.value || 0;
|
||||
const percentage = totalQuantity ? ((value / totalQuantity) * 100).toFixed(1) : 0;
|
||||
return `${name} ${percentage}% ${value}个`;
|
||||
},
|
||||
},
|
||||
series: [
|
||||
{
|
||||
|
Reference in New Issue
Block a user