'换火时间BUG,柱状图label纵向'

This commit is contained in:
gtz 2023-05-15 10:50:08 +08:00
parent 05b4009614
commit a3e5119206
2 changed files with 10 additions and 4 deletions

View File

@ -75,7 +75,7 @@ export default {
this.chart = echarts.init(document.getElementById(this.id)); this.chart = echarts.init(document.getElementById(this.id));
this.chart.setOption({ this.chart.setOption({
grid: { grid: {
top: adjust(10), top: adjust(20),
left: adjust(28), left: adjust(28),
bottom: adjust(18), bottom: adjust(18),
right: adjust(12), right: adjust(12),
@ -147,7 +147,9 @@ export default {
show: true, show: true,
fontSize: adjust(7), fontSize: adjust(7),
color: "#eee8", color: "#eee8",
position: "top", position: "topRight",
rotate: 90,
offset: [5, 0]
}, },
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [

View File

@ -43,8 +43,12 @@ export default {
timeFun = setInterval(() => { timeFun = setInterval(() => {
if (sec > 0) sec -= 1 if (sec > 0) sec -= 1
else { else {
sec = 59 if (min > 0) {
min -= 1 sec = 59
min -= 1
} else {
if (timeFun) clearInterval(timeFun)
}
} }
this.$set(this.rdata[2], 'value', `${min}${sec}`) this.$set(this.rdata[2], 'value', `${min}${sec}`)
}, 1000) }, 1000)