瀏覽代碼

修改单位

yanglzh 2 年之前
父節點
當前提交
9dab5344fa
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 0 1
      src/views/heating/home/index.vue
  2. 3 1
      src/views/heating/monitor/loopSupervision/loopDetail.vue

+ 0 - 1
src/views/heating/home/index.vue

@@ -489,7 +489,6 @@ export default defineComponent({
         unit = 'W'
       }
 
-      console.log(dom)
       global.homeCharThree = <any>echarts.init(dom, state.charts.theme);
 
       const common = {

+ 3 - 1
src/views/heating/monitor/loopSupervision/loopDetail.vue

@@ -289,6 +289,8 @@ export default defineComponent({
 				[{ name: '失水量', type: 'line', data: state.waterLossEchart }],
 			];
 
+			const units = ['°C', 'Mpa', 'T/h', 'T'];
+
 			const option = {
 				backgroundColor: state.charts.bgColor,
 				tooltip: {},
@@ -313,7 +315,7 @@ export default defineComponent({
 						type: 'value',
 						scale: true,
 						axisLabel: {
-							formatter: '{value} °C',
+							formatter: '{value} ' + units[tabName.value],
 						},
 					},
 				],