'换火时间BUG,柱状图label纵向'
This commit is contained in:
		@@ -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, [
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Посилання в новій задачі
	
	Block a user