修改bug
This commit is contained in:
@@ -176,12 +176,12 @@ export default {
|
||||
type: "value",
|
||||
name: "单位/MW",
|
||||
// splitNumber: 5,
|
||||
min: function (value) {//取最小值向下取整为最小刻度
|
||||
return 0
|
||||
},
|
||||
max: function (value) {//取最大值向上取整为最大刻度
|
||||
return Math.ceil(value.max)
|
||||
},
|
||||
// min: function (value) {//取最小值向下取整为最小刻度
|
||||
// return 0
|
||||
// },
|
||||
// max: function (value) {//取最大值向上取整为最大刻度
|
||||
// return Math.ceil(value.max)
|
||||
// },
|
||||
alignTicks: true,
|
||||
nameTextStyle: {
|
||||
fontSize: 12,
|
||||
@@ -192,12 +192,12 @@ export default {
|
||||
{
|
||||
type: 'value',
|
||||
alignTicks: true,
|
||||
min: 0,
|
||||
max: 100,
|
||||
// min: 0,
|
||||
// max: 100,
|
||||
// scale: true,
|
||||
interval: 25,//间隔
|
||||
// interval: 25,//间隔
|
||||
// inverse: true,
|
||||
splitNumber: 5,
|
||||
// splitNumber: 5,
|
||||
name: "单位/%",
|
||||
nameTextStyle: {
|
||||
fontSize: 12,
|
||||
@@ -248,15 +248,15 @@ export default {
|
||||
{
|
||||
type: "value",
|
||||
name: "单位/片",
|
||||
min: function (value) {//取最小值向下取整为最小刻度
|
||||
return 0
|
||||
},
|
||||
max: function (value) {//取最大值向上取整为最大刻度
|
||||
return Math.ceil(value.max)
|
||||
},
|
||||
// min: function (value) {//取最小值向下取整为最小刻度
|
||||
// return 0
|
||||
// },
|
||||
// max: function (value) {//取最大值向上取整为最大刻度
|
||||
// return Math.ceil(value.max)
|
||||
// },
|
||||
alignTicks: true,
|
||||
// splitNumber: 5,
|
||||
scale: true,
|
||||
// scale: true,
|
||||
nameTextStyle: {
|
||||
fontSize: 12,
|
||||
align: "right",
|
||||
@@ -269,10 +269,10 @@ export default {
|
||||
name: "单位/%",
|
||||
scale: true,
|
||||
alignTicks: true,
|
||||
min: 0,
|
||||
max: 100,
|
||||
// min: 0,
|
||||
// max: 100,
|
||||
// scale: true,
|
||||
interval: 25,//间隔
|
||||
// interval: 25,//间隔
|
||||
// splitNumber: 5,
|
||||
nameTextStyle: {
|
||||
fontSize: 12,
|
||||
@@ -521,6 +521,7 @@ export default {
|
||||
this.chartMsg.series[2].data = []
|
||||
this.chartMsgYearTarget.series[0].data = []
|
||||
this.chartMsgYearTarget.series[1].data = []
|
||||
this.title = ''
|
||||
if (!this.listQuery.beginTime && !this.listQuery.endTime) {
|
||||
return this.$message('请选择起止时间')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user