yanglzh vor 2 Jahren
Ursprung
Commit
9dab5344fa

+ 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],
 						},
 					},
 				],