|
|
|
@ -158,7 +158,9 @@ export default {
|
|
|
|
|
return {
|
|
|
|
|
centerNum: {},
|
|
|
|
|
chart1Option: {
|
|
|
|
|
tooltip: {},
|
|
|
|
|
tooltip: {
|
|
|
|
|
formatter: "{b} : {c}%",
|
|
|
|
|
},
|
|
|
|
|
angleAxis: {
|
|
|
|
|
max: 100,
|
|
|
|
|
clockwise: true,
|
|
|
|
@ -295,12 +297,14 @@ export default {
|
|
|
|
|
methods: {
|
|
|
|
|
async setChart1() {
|
|
|
|
|
const {rows: data} = await monitorPercentage()
|
|
|
|
|
let data1 = data.slice(0, 4)
|
|
|
|
|
data1.reverse()
|
|
|
|
|
let option1 = {
|
|
|
|
|
...this.chart1Option,
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
type: "bar",
|
|
|
|
|
data: data.slice(0, 4).map((e, i) => {
|
|
|
|
|
data: data1.map((e, i) => {
|
|
|
|
|
return {
|
|
|
|
|
value: parseFloat(e.percentage),
|
|
|
|
|
name: e.sceneName,
|
|
|
|
|