diff --git a/hx-ai-intelligent/src/api/IlluminationInfo.ts b/hx-ai-intelligent/src/api/IlluminationInfo.ts index c26c137..cb32e76 100644 --- a/hx-ai-intelligent/src/api/IlluminationInfo.ts +++ b/hx-ai-intelligent/src/api/IlluminationInfo.ts @@ -1,4 +1,4 @@ -const prefix = '/carbon-smart'; +const prefix = '/carbon-smart/api'; // 照明系统及相关接口 export enum lightingManage { // 主页 ======================================================== diff --git a/hx-ai-intelligent/src/api/airConditionControlSystem.ts b/hx-ai-intelligent/src/api/airConditionControlSystem.ts index b175523..d2088a6 100644 --- a/hx-ai-intelligent/src/api/airConditionControlSystem.ts +++ b/hx-ai-intelligent/src/api/airConditionControlSystem.ts @@ -1,4 +1,4 @@ -const prefix = '/carbon-smart'; +const prefix = '/carbon-smart/api'; // 空调系统及相关接口 export enum airConditionControl { // 主页 ====================================================== diff --git a/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts b/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts index f874b8c..291f0b3 100644 --- a/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts +++ b/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts @@ -108,4 +108,5 @@ export enum carbonPlanning { benchmarkSetting = '/carbon-smart/api/carbon/planning/benchmarkSetting', monthBenchmarkSetting = '/carbon-smart/api/carbon/planning/monthBenchmarkSetting', benchmarkSubmit = '/carbon-smart/api/carbon/planning/benchmarkSubmit', + autoObtained = '/carbon-smart/api/carbon/planning/autoObtained', } diff --git a/hx-ai-intelligent/src/api/planManage.ts b/hx-ai-intelligent/src/api/planManage.ts index 678c291..beb8075 100644 --- a/hx-ai-intelligent/src/api/planManage.ts +++ b/hx-ai-intelligent/src/api/planManage.ts @@ -1,4 +1,4 @@ -const prefix = '/carbon-smart'; +const prefix = '/carbon-smart/api'; // 照明系统及相关接口 export enum planManage { /** @@ -10,4 +10,6 @@ export enum planManage { getTableData = prefix + '/deviceCtrlPlan/getActivatedPlanList', // 提交计划状态修改 submitTransData = prefix + '/deviceCtrlPlan/activePlanByIdList', + // 用于确认当前是否有计划正在运行 + getRunningPlan = prefix + '/deviceCtrlPlan/getRunningPlan', } diff --git a/hx-ai-intelligent/src/api/ventilatingSystem.ts b/hx-ai-intelligent/src/api/ventilatingSystem.ts index a72a291..a99c07e 100644 --- a/hx-ai-intelligent/src/api/ventilatingSystem.ts +++ b/hx-ai-intelligent/src/api/ventilatingSystem.ts @@ -1,5 +1,5 @@ // 前缀 -const prefix = '/carbon-smart'; +const prefix = '/carbon-smart/api'; // 通风系统相关接口 export enum ventilating { // 排风扇相关 ============================================= 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, // 距离底边 @@ -212,11 +210,6 @@ ], //滑块样式 dataZoom: [ - { - type: 'inside', - start: 0, - end: 100, - }, { type: 'slider', // backgroundColor: 'yellow', @@ -224,8 +217,8 @@ 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, // 距离底边 @@ -200,11 +198,6 @@ ], //滑块样式 dataZoom: [ - { - type: 'inside', - start: 0, - end: 100, - }, { type: 'slider', // backgroundColor: 'yellow', @@ -212,8 +205,8 @@ 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; diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonAssets/carbonAssetsDetail/index.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonAssets/carbonAssetsDetail/index.vue index 2509768..6f3f04f 100644 --- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonAssets/carbonAssetsDetail/index.vue +++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonAssets/carbonAssetsDetail/index.vue @@ -48,64 +48,70 @@
- -
-
交易明细
-
- 新增 - - 导入 - - 导出 - 批量删除 -
+
+
交易明细
+
+ 新增 + + 导入 + + 导出 + 批量删除
- -