修改地图

dev
夜笙歌 1 year ago
parent 8ffacff93b
commit 42ae266a56

@ -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,

Loading…
Cancel
Save