Browse Source

2023-02-06 update

1. fix dialogSubmit charts markLine
moccus 2 years ago
parent
commit
d34ab54eec
1 changed files with 31 additions and 2 deletions
  1. 31 2
      src/pages/dataAnalysis/tempAnalysis/index.vue

+ 31 - 2
src/pages/dataAnalysis/tempAnalysis/index.vue

@@ -146,6 +146,9 @@ const funSubmit = async () => {
 							label: {
 								show: false,
 							},
+							lineStyle: {
+								color: '#F72C5B'
+							},
 							data: [{
 								yAxis: powerproductionNum.value,
 							}]
@@ -311,6 +314,9 @@ const barSeries = reactive([{
 		label: {
 			show: false,
 		},
+		lineStyle: {
+			color: '#F72C5B'
+		},
 		data: []
 	}
 }])
@@ -364,7 +370,7 @@ const funActCop = (obj, type) => {
 			break
 		// case 'CurrentScatterChartCop':
 		// 	actChartName.value = 'CurrentScatterChartCop'
-		// 	obj.actCop = shallowRef(CurrentScatterChartCop)
+		// 	obj.actCop = shallowRef(CurrentScatte		console.log(res)rChartCop)
 		// 	actDiaTitle.value = '静态偏航对风分析图'
 		// 	break
 	}
@@ -397,7 +403,6 @@ const funDiaSubmit = async () => {
 				mode: 0
 			}
 		})
-		console.log(res)
 		if(res.code===200){
 			actCopList.value = []
 			actCopListBak.value = [] //清空备份
@@ -420,6 +425,18 @@ const funDiaSubmit = async () => {
 								name: "",
 								type: "bar", 
 								data: Object.values(chart.res1),
+								markLine: {
+									symbol: 'none',
+									label: {
+										show: false,
+									},
+									lineStyle: {
+										color: '#F72C5B'
+									},
+									data: [{
+										yAxis: 0,
+									}]
+								}
 							}]
 						})
 						chartId++
@@ -446,6 +463,18 @@ const funDiaSubmit = async () => {
 									symbolSize: 5,
 									data: chart.res2,
 									yAxisIndex: 0,
+									markLine: {
+										symbol: 'none',
+										label: {
+											show: false,
+										},
+										lineStyle: {
+											color: '#F72C5B'
+										},
+										data: [{
+											yAxis: chart.power.powerproduction,
+										}]
+									}
 								}
 							]