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

Este commit está contenido en:
gtz 2023-05-15 10:50:08 +08:00
padre 05b4009614
commit a3e5119206
Se han modificado 2 ficheros con 10 adiciones y 4 borrados

Ver fichero

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

Ver fichero

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