|
@@ -443,9 +443,10 @@ export default {
|
|
|
let total = 0
|
|
|
let backString = ``
|
|
|
params.map((item, index) => {
|
|
|
- total = (total + item.value).fixed(2)
|
|
|
+ total = total + item.value
|
|
|
backString = backString + `<span style="color: ${colorArr[index] || ''}">${item.seriesName}</span>:${item.value}%</br>`
|
|
|
})
|
|
|
+ total = total.toFixed(2)
|
|
|
backString = backString + `<span style="color: #F04864">总和</span>:${total}%`
|
|
|
return backString
|
|
|
}
|
|
@@ -469,6 +470,7 @@ export default {
|
|
|
total = total + item.value
|
|
|
backString = backString + `<span style="color: ${colorArr[index] || ''}">${item.seriesName}</span>:${item.value}%</br>`
|
|
|
})
|
|
|
+ total = total.toFixed(2)
|
|
|
backString = backString + `<span style="color: #F04864">总和</span>:${total}%`
|
|
|
return backString
|
|
|
}
|