From cf9854e005e81c489d8aa6c6ecbf9a86e75de194 Mon Sep 17 00:00:00 2001 From: zhaohy <1695786511@qq.com> Date: Tue, 20 Aug 2024 11:36:32 +0800 Subject: [PATCH 1/5] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=91=8A=E8=AD=A6ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hx-ai-intelligent/src/components/ns-steps.vue | 42 +++- hx-ai-intelligent/src/icon/add.png | Bin 0 -> 356 bytes hx-ai-intelligent/src/icon/del.png | Bin 0 -> 352 bytes hx-ai-intelligent/src/icon/del.svg | 6 - .../energyAlarm/editConfigureEnergyAlarm.vue | 220 ++++++++++------- .../editConfigureDeviceAlarm.vue | 226 +++++++++++------- .../equipmentAlarm/editeEquipmentAlarm.vue | 2 - .../alarmManagement/energyAlarm/index.vue | 9 +- .../view/alarmManagement/energyAlarm/look.vue | 49 ++-- .../alarmManagement/energyAlarm/status.vue | 18 +- .../alarmManagement/equipmentAlarm/index.vue | 9 +- .../alarmManagement/equipmentAlarm/look.vue | 53 ++-- .../alarmManagement/equipmentAlarm/status.vue | 18 +- .../alarmManagement/gatewayAlarm/index.vue | 9 +- .../alarmManagement/gatewayAlarm/look.vue | 51 ++-- .../alarmManagement/gatewayAlarm/status.vue | 18 +- 16 files changed, 475 insertions(+), 255 deletions(-) create mode 100644 hx-ai-intelligent/src/icon/add.png create mode 100644 hx-ai-intelligent/src/icon/del.png delete mode 100644 hx-ai-intelligent/src/icon/del.svg 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; From 2d40e8d26dc8b2191a10024633a4278eb84aeb65 Mon Sep 17 00:00:00 2001 From: chenpingsen Date: Tue, 20 Aug 2024 14:13:40 +0800 Subject: [PATCH 2/5] =?UTF-8?q?add:=E7=85=A7=E6=98=8E=E7=B3=BB=E7=BB=9F/?= =?UTF-8?q?=E9=80=9A=E9=A3=8E=E7=B3=BB=E7=BB=9F=20=E4=BA=A4=E4=BA=92?= =?UTF-8?q?=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hx-ai-intelligent/src/api/IlluminationInfo.ts | 2 +- .../src/api/airConditionControlSystem.ts | 2 +- hx-ai-intelligent/src/api/planManage.ts | 4 +- .../src/api/ventilatingSystem.ts | 2 +- .../airConditionControlSystem/tabs2.vue | 47 ++++-- .../airConditionControlSystem/tabs3.vue | 17 +- .../lightingManage/indexs.vue | 28 +++- .../equipmentControl/lightingManage/light.vue | 12 +- .../equipmentControl/lightingManage/tabs1.vue | 97 ++++++++--- .../equipmentControl/lightingManage/tabs2.vue | 56 +++++-- .../equipmentControl/lightingManage/tabs3.vue | 34 ++-- .../view/equipmentControl/style/color.less | 1 + .../equipmentControl/style/dialogStyle.less | 1 + .../components/fanControl.vue | 119 +++++++++++--- .../ventilationSystem/components/fanLog.vue | 33 ++-- .../ventilationSystem/components/fanPlant.vue | 48 +++++- .../ventilationSystem/index.vue | 150 +++++++----------- 17 files changed, 446 insertions(+), 207 deletions(-) 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/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/view/equipmentControl/airConditionControlSystem/tabs2.vue b/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs2.vue index cc0b7c5..b3c3c02 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs2.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs2.vue @@ -1,7 +1,12 @@ -
+
@@ -96,7 +95,7 @@
- + +
+
{{ text }}
+
单位管理
- 新增分组 - 新增单位 + 新增分组 + 新增单位
@@ -147,7 +149,7 @@ ref="select" :value="unitTreeParams.id" allowClear - style="width: 96%" + style="width: 90%" placeholder="选择分组" @change="handleChange"> @@ -185,11 +187,12 @@
- + + @@ -197,11 +200,12 @@ - + + @@ -265,6 +269,7 @@ const disabled = ref(false); const treeNodeAdd = ref(false); const operationTree = ref('新增'); + const text = ref('新增数据'); // const showOperation = ref(false); const opMap: any = ref({ @@ -473,7 +478,11 @@ cancelText: '取消', onOk() { http - .post(carbonEmissionFactorLibrary.delTreeNode, { orgId: orgId.value, id: data.id }) + .post(carbonEmissionFactorLibrary.delTreeNode, { + orgId: orgId.value, + id: data.id, + emissionName: data.emissionName, + }) .then(() => { getOrgTree(); NsMessage.success('操作成功'); @@ -637,6 +646,7 @@ }); }; show.value = false; + text.value = '新增数据'; visible.value = true; }, }, @@ -812,6 +822,7 @@ }); }; show.value = true; + text.value = '编辑数据'; visible.value = true; }, }, @@ -1122,6 +1133,10 @@ padding-bottom: 10px; border-bottom: 1px solid #e9e9e9; } + .ns-form-title-add { + font-weight: bold; + user-select: text; + } .titleUnit { font-weight: bold; user-select: text; @@ -1176,6 +1191,7 @@ margin-left: 10%; flex-direction: column; border-radius: 12px; + overflow: auto; } .actionMore { display: none; @@ -1198,5 +1214,27 @@ text-align: right; width: 27%; } + .titleStyleGroup::before { + content: ''; + position: absolute; + left: 16px; + top: 13%; + transform: translateY(-50%); + height: 16px; + width: 3px; + border-radius: 1px; + background-color: #2778ff; + } + .titleStyle::before { + content: ''; + position: absolute; + left: 16px; + top: 10.5%; + transform: translateY(-50%); + height: 16px; + width: 3px; + border-radius: 1px; + background-color: #2778ff; + }   diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index.vue index 7e797b7..c113322 100644 --- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index.vue +++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index.vue @@ -3,15 +3,15 @@ { + selectYear.value = dayjs(new Date().getFullYear().toString()); + queryParams.value.year = selectYear.value.format('YYYY'); + getTableList(); + }; // 表头 const column: TableColumnsType[] = [ { title: '排放类型', dataIndex: 'cnValue', + width: 130, customCell: (record, rowIndex) => { if (rowIndex == undefined) { return { @@ -84,66 +90,82 @@ { title: '能源种类', dataIndex: 'energyType', + width: 80, }, { title: '计量单位', dataIndex: 'unitName', + width: 80, }, { title: '加权平均', dataIndex: 'averageFactorValue', + width: 80, }, { title: '全年', dataIndex: 'carbonYearly', + width: 80, }, { title: '1月', dataIndex: 'jan', + width: 80, }, { title: '2月', dataIndex: 'feb', + width: 80, }, { title: '3月', dataIndex: 'mar', + width: 80, }, { title: '4月', dataIndex: 'apr', + width: 80, }, { title: '5月', dataIndex: 'may', + width: 80, }, { title: '6月', dataIndex: 'jun', + width: 80, }, { title: '7月', dataIndex: 'jul', + width: 80, }, { title: '8月', dataIndex: 'aug', + width: 80, }, { title: '9月', dataIndex: 'sep', + width: 80, }, { title: '10月', dataIndex: 'oct', + width: 80, }, { title: '11月', dataIndex: 'nov', + width: 80, }, { title: '12月', dataIndex: 'dec', + width: 80, }, ]; // 合并单元格 @@ -189,9 +211,12 @@ :deep(.ant-table-container) { padding: 0px 16px; } - :deep(.ant-table-cell) { - border: 1px solid #f0f0f0; - } + // :deep(.ant-table-cell) { + // border: 1px solid #f0f0f0; + // } + // :deep(.ant-table-cell::before) { + // display: none; + // } diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/fillInPage/index.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/fillInPage/index.vue index ee8df02..a3a5e09 100644 --- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/fillInPage/index.vue +++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/fillInPage/index.vue @@ -1,51 +1,79 @@