Zimo 14 小時之前
父節點
當前提交
615ec569c2
共有 2 個文件被更改,包括 8 次插入7 次删除
  1. 5 4
      src/views/oli-connection/monitoring/detail.vue
  2. 3 3
      src/views/pms/device/monitor/TdDeviceInfo.vue

+ 5 - 4
src/views/oli-connection/monitoring/detail.vue

@@ -380,10 +380,10 @@ function render() {
     animationDurationUpdate: 200,
     animationEasingUpdate: 'linear',
     grid: {
-      left: '5%',
+      left: '0%',
       top: '5%',
       right: '5%',
-      bottom: '8%'
+      bottom: '12%'
     },
     tooltip: {
       trigger: 'axis',
@@ -410,6 +410,7 @@ function render() {
     },
     xAxis: {
       type: 'time',
+      boundaryGap: ['0%', '25%'],
       axisLabel: {
         formatter: (v) => dayjs(v).format('YYYY-MM-DD\nHH:mm:ss'),
         rotate: 0,
@@ -417,8 +418,8 @@ function render() {
       }
     },
     dataZoom: [
-      { type: 'inside', xAxisIndex: 0, start: 75, end: 100 },
-      { type: 'slider', xAxisIndex: 0, start: 75, end: 100 }
+      { type: 'inside', xAxisIndex: 0 },
+      { type: 'slider', xAxisIndex: 0 }
     ],
     yAxis: {
       type: 'value',

+ 3 - 3
src/views/pms/device/monitor/TdDeviceInfo.vue

@@ -295,7 +295,7 @@ function render() {
       left: '5%',
       top: '5%',
       right: '5%',
-      bottom: '8%'
+      bottom: '12%'
     },
     tooltip: {
       trigger: 'axis',
@@ -329,8 +329,8 @@ function render() {
       }
     },
     dataZoom: [
-      { type: 'inside', xAxisIndex: 0, start: 75, end: 100 },
-      { type: 'slider', xAxisIndex: 0, start: 75, end: 100 }
+      { type: 'inside', xAxisIndex: 0 },
+      { type: 'slider', xAxisIndex: 0 }
     ],
     yAxis: {
       type: 'value',