Эх сурвалжийг харах

feat: 修改物联概览页面线图颜色顺序

yanglzh 1 жил өмнө
parent
commit
47a9e44028

+ 8 - 8
src/views/iot/iotmanager/dashboard.vue

@@ -270,12 +270,12 @@ export default defineComponent({
 						symbol: 'circle',
 						smooth: true,
 						data: state.lineChartMsgTotalData,
-						lineStyle: { color: '#FBBB04', width: 3 },
-						itemStyle: { color: '#FBBB04', borderColor: '#FBBB04' },
+						lineStyle: { color: '#4285F4', width: 3 },
+						itemStyle: { color: '#4285F4', borderColor: '#4285F4' },
 						areaStyle: {
 							color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
-								{ offset: 0, color: 'rgba(251, 187, 4, 0.3)' },
-								{ offset: 1, color: 'rgba(251, 187, 4, 0)' },
+								{ offset: 0, color: 'rgba(66, 133, 244, 0.3)' },
+								{ offset: 1, color: 'rgba(66, 133, 244, 0)' },
 							]),
 						},
 					},
@@ -286,12 +286,12 @@ export default defineComponent({
 						symbol: 'circle',
 						smooth: true,
 						data: state.lineChartAlarmTotalData,
-						lineStyle: { color: '#4285F4', width: 3 },
-						itemStyle: { color: '#4285F4', borderColor: '#4285F4' },
+						lineStyle: { color: '#FBBB04', width: 3 },
+						itemStyle: { color: '#FBBB04', borderColor: '#FBBB04' },
 						areaStyle: {
 							color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
-								{ offset: 0, color: 'rgba(66, 133, 244, 0.3)' },
-								{ offset: 1, color: 'rgba(66, 133, 244, 0)' },
+								{ offset: 0, color: 'rgba(251, 187, 4, 0.3)' },
+								{ offset: 1, color: 'rgba(251, 187, 4, 0)' },
 							]),
 						},
 						emphasis: {