修改bug
This commit is contained in:
@@ -1,16 +1,10 @@
|
||||
<!--
|
||||
* @Author: zhp
|
||||
* @Date: 2024-04-28 13:42:51
|
||||
* @LastEditTime: 2024-05-31 16:14:09
|
||||
* @LastEditTime: 2024-06-03 08:55:42
|
||||
* @LastEditors: zhp
|
||||
* @Description:
|
||||
-->
|
||||
<!--
|
||||
filename: Bipv.vue
|
||||
author: liubin
|
||||
date: 2024-04-10 15:39:54
|
||||
description:
|
||||
-->
|
||||
|
||||
<template>
|
||||
<right-chart-base
|
||||
@@ -31,7 +25,7 @@ export default {
|
||||
data() {
|
||||
const year = new Date().getFullYear();
|
||||
// 城市数组的顺序必须是固定的
|
||||
const cities = ["瑞昌", "邯郸",
|
||||
const cities = [ "邯郸",
|
||||
// "株洲", "佳木斯", "成都", "凯盛", "蚌埠"
|
||||
|
||||
];
|
||||
@@ -80,15 +74,15 @@ export default {
|
||||
return [
|
||||
{
|
||||
name: `${new Date().getFullYear()}年目标值`,
|
||||
data: bipvOutput.target,
|
||||
data: bipvOutput.target.splice(0, 1),
|
||||
},
|
||||
{
|
||||
name: `${new Date().getFullYear() - 1}年`,
|
||||
data: bipvOutput.previous,
|
||||
data: bipvOutput.previous.splice(0, 1)
|
||||
},
|
||||
{
|
||||
name: `${new Date().getFullYear()}年`,
|
||||
data: bipvOutput.current,
|
||||
data: bipvOutput.current.splice(0, 1),
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
@@ -111,18 +111,16 @@ export default {
|
||||
name: '', // this.series[0].name,
|
||||
type: "bar",
|
||||
barWidth: 12,
|
||||
label: {
|
||||
show: true, //开启显示
|
||||
position: 'top', //在上方显示
|
||||
textStyle: { //数值样式
|
||||
color: '#DFF1FE',
|
||||
fontSize: 16
|
||||
}
|
||||
},
|
||||
itemStyle: {
|
||||
borderRadius: [10, 10, 0, 0],
|
||||
normal: {
|
||||
label: {
|
||||
show: true, //开启显示
|
||||
position: 'top', //在上方显示
|
||||
textStyle: { //数值样式
|
||||
color: '#DFF1FE',
|
||||
fontSize: 16
|
||||
}
|
||||
}
|
||||
},
|
||||
color: {
|
||||
type: "linear",
|
||||
x: 0,
|
||||
@@ -156,8 +154,19 @@ export default {
|
||||
name: '', // this.series[1].name,
|
||||
type: "bar",
|
||||
barWidth: 12,
|
||||
label: {
|
||||
show: true, //开启显示
|
||||
position: 'top', //在上方显示
|
||||
textStyle: { //数值样式
|
||||
color: '#DFF1FE',
|
||||
fontSize: 16
|
||||
}
|
||||
},
|
||||
itemStyle: {
|
||||
borderRadius: [10, 10, 0, 0],
|
||||
// normal: {
|
||||
|
||||
// },
|
||||
color: {
|
||||
type: "linear",
|
||||
x: 0,
|
||||
|
||||
Reference in New Issue
Block a user