diff --git a/hx-ai-intelligent/src/components/ns-steps.vue b/hx-ai-intelligent/src/components/ns-steps.vue index 54c8ce3..57627d0 100644 --- a/hx-ai-intelligent/src/components/ns-steps.vue +++ b/hx-ai-intelligent/src/components/ns-steps.vue @@ -1,18 +1,33 @@ - + @@ -46,3 +46,10 @@ }, }; + diff --git a/hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/look.vue b/hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/look.vue index af94130..f1058a7 100644 --- a/hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/look.vue +++ b/hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/look.vue @@ -11,9 +11,7 @@
-
+
告警编号:{{ infoObject.alarmCode }}
@@ -21,7 +19,7 @@
-
+
@@ -134,8 +132,8 @@ }, }, grid: { - left: '10%', // 设置图表距离左边的距离 - right: '4%', // 设置图表距离右边的距离 + left: '9%', // 设置图表距离左边的距离 + right: '3%', // 设置图表距离右边的距离 top: '6%', borderWidth: 0, y2: 60, // 距离底边 @@ -213,19 +211,14 @@ //滑块样式 dataZoom: [ { - type: 'inside', - start: 0, - end: 100, - }, - { type: 'slider', // backgroundColor: 'yellow', // fillerColor: 'yellow', height: 12, // 设置slider的高度为15 start: 0, end: 100, - right: 60, - left: 60, + right: 10, + left: 10, bottom: 10, handleIcon: 'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5M36.9,35.8h-1.3z M27.8,35.8 h-1.3H27L27.8,35.8L27.8,35.8z', // 使用类似 axisPointer 的图标 @@ -256,15 +249,20 @@ name: '电压值', type: 'line', itemStyle: { + color: '#fff', + borderColor: 'rgba(67, 136, 251, 1)', + borderWidth: 2, + }, + lineStyle: { normal: { - barBorderRadius: 0, - color: '#2778FF', + color: 'rgba(67, 136, 251, 1)', + width: 2, }, }, symbol: 'circle', // 数据点的形状,这里设置为圆形 symbolSize: 8, label: { - show: true, + show: false, color: 'rgb(89, 89, 89)', position: 'top', top: '10', @@ -272,6 +270,29 @@ return Number(energyAlarm[value.dataIndex]) + 'V'; }, }, + areaStyle: { + normal: { + color: new echarts.graphic.LinearGradient( + 0, + 0, + 0, + 1, + [ + { + offset: 0, + color: 'rgba(22, 127, 255, 0.4)', + }, + { + offset: 1, + color: 'rgba(22, 127, 255, 0)', + }, + ], + false, + ), + shadowColor: 'rgba(22, 127, 255, 0.4)', + shadowBlur: 20, + }, + }, data: energyAlarm, }, ], diff --git a/hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/status.vue b/hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/status.vue index 40c73c5..b92981c 100644 --- a/hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/status.vue +++ b/hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/status.vue @@ -143,15 +143,23 @@ infoObject.value = { ...logList.value[0] }; infoObject.value.state = infoObject.value.state.value; let colorMap = { - 1: '#ff7602', - 2: '#00a1e6', - 3: '#04d919', - 4: '#d9001b', - 5: '#a6a6a6', + 1: 'rgba(191, 205, 226, 1)', + 2: 'rgba(243, 97, 99, 1)', + 3: 'rgba(41, 196, 154, 1)', + 4: 'rgba(217, 0, 27,1)', + 5: 'rgba(166, 166, 166,1)', + }; + let bgColorMap = { + 1: 'rgba(191, 205, 226, 0.1)', + 2: 'rgba(243, 97, 99, 0.1)', + 3: 'rgba(41, 196, 154, 0.1)', + 4: 'rgba(217, 0, 27, 0.1)', + 5: 'rgba(166, 166, 166,0.1)', }; logList.value.forEach((item) => { item.stateName = item.state.label; item.color = colorMap[item.state.value]; + item.bgColor = bgColorMap[item.state]; item.src = 'state-' + item.state.value; }); config.value.dataSource = logList.value; diff --git a/hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/index.vue b/hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/index.vue index 186d7f0..437e9d6 100644 --- a/hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/index.vue +++ b/hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/index.vue @@ -10,7 +10,7 @@ - + @@ -36,3 +36,10 @@ }, }; + diff --git a/hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/look.vue b/hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/look.vue index 73256ae..dae7b8e 100644 --- a/hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/look.vue +++ b/hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/look.vue @@ -11,9 +11,7 @@
-
+
告警编号:{{ infoObject.alarmCode }}
@@ -21,7 +19,7 @@
-
+
@@ -127,8 +125,8 @@ }, }, grid: { - left: '10%', // 设置图表距离左边的距离 - right: '4%', // 设置图表距离右边的距离 + left: '3%', // 设置图表距离左边的距离 + right: '3%', // 设置图表距离右边的距离 top: '6%', borderWidth: 0, y2: 60, // 距离底边 @@ -201,19 +199,14 @@ //滑块样式 dataZoom: [ { - type: 'inside', - start: 0, - end: 100, - }, - { type: 'slider', // backgroundColor: 'yellow', // fillerColor: 'yellow', height: 12, // 设置slider的高度为15 start: 0, end: 100, - right: 60, - left: 60, + right: 11, + left: 10, bottom: 10, handleIcon: 'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5M36.9,35.8h-1.3z M27.8,35.8 h-1.3H27L27.8,35.8L27.8,35.8z', // 使用类似 axisPointer 的图标 @@ -244,9 +237,14 @@ name: '状态', type: 'line', itemStyle: { + color: '#fff', + borderColor: 'rgba(67, 136, 251, 1)', + borderWidth: 2, + }, + lineStyle: { normal: { - barBorderRadius: 0, - color: '#2778FF', + color: 'rgba(67, 136, 251, 1)', + width: 2, }, }, symbol: 'circle', // 数据点的形状,这里设置为圆形 @@ -260,6 +258,29 @@ // return Number(energyAlarm[value.dataIndex]) ; // }, // }, + areaStyle: { + normal: { + color: new echarts.graphic.LinearGradient( + 0, + 0, + 0, + 1, + [ + { + offset: 0, + color: 'rgba(22, 127, 255, 0.4)', + }, + { + offset: 1, + color: 'rgba(22, 127, 255, 0)', + }, + ], + false, + ), + shadowColor: 'rgba(22, 127, 255, 0.4)', + shadowBlur: 20, + }, + }, data: energyAlarm, }, ], diff --git a/hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/status.vue b/hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/status.vue index f160c3f..ff65aea 100644 --- a/hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/status.vue +++ b/hx-ai-intelligent/src/view/alarmManagement/gatewayAlarm/status.vue @@ -60,15 +60,23 @@ 5: '已关闭', }; let colorMap = { - 1: '#ff7602', - 2: '#00a1e6', - 3: '#04d919', - 4: '#d9001b', - 5: '#a6a6a6', + 1: 'rgba(191, 205, 226, 1)', + 2: 'rgba(243, 97, 99, 1)', + 3: 'rgba(41, 196, 154, 1)', + 4: 'rgba(217, 0, 27,1)', + 5: 'rgba(166, 166, 166,1)', + }; + let bgColorMap = { + 1: 'rgba(191, 205, 226, 0.1)', + 2: 'rgba(243, 97, 99, 0.1)', + 3: 'rgba(41, 196, 154, 0.1)', + 4: 'rgba(217, 0, 27, 0.1)', + 5: 'rgba(166, 166, 166,0.1)', }; logList.value.forEach((item) => { item.stateName = stateMap[item.state]; item.color = colorMap[item.state]; + item.bgColor = bgColorMap[item.state]; item.src = 'state-' + item.state; }); visible.value = true;