From 0849f62c3901dabd3d4c81706d88345333f3964d Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期五, 26 四月 2024 19:45:24 +0800
Subject: [PATCH] update
---
src/views/mdc/processParam/index.vue | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/views/mdc/processParam/index.vue b/src/views/mdc/processParam/index.vue
index 4b37439..4ae3047 100644
--- a/src/views/mdc/processParam/index.vue
+++ b/src/views/mdc/processParam/index.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2024-04-09 22:11:21
* @LastEditors: Sneed
- * @LastEditTime: 2024-04-25 23:03:53
+ * @LastEditTime: 2024-04-26 19:42:25
* @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/processParam/index.vue
瀹炴椂鐪嬫澘
-->
@@ -173,7 +173,7 @@
type: 'bar',
stack: 'total',
barWidth: '20px',
- data: [current / total * 60],
+ data: [current / total],
label: {
show: true,
position: 'insideLeft',
@@ -191,7 +191,6 @@
}
})
let arr = [12, 8, 9, 4]
- let splitNumber = arr[Math.abs(moment(this.timeRange.startTime).diff(moment(this.timeRange.endTime))) / 3600000 - 1]
let dayCharts = {
legend: [
],
@@ -206,10 +205,12 @@
series,
xAxis: {
type: 'value',
- splitNumber,
+ interval: 0.05,
axisLabel: {
formatter: (value, index) => {
- console.log('>>>>>>>', value, index)
+ let add = Math.abs(moment(this.timeRange.startTime).diff(moment(this.timeRange.endTime))) * value
+ let current = moment(this.timeRange.startTime).add(add, 'ms')
+ return current.format('HH:mm')
}
},
},
--
Gitblit v1.9.3