From dd7c417f814a91f47d4b93faf488e50a0bbf4071 Mon Sep 17 00:00:00 2001
From: fks-xuxinyue <2822784518@qq.com>
Date: Thu, 25 Jul 2024 14:18:37 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A2=B3=E6=8E=92=E7=AE=A1=E7=90=86=20?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/api/carbonEmissionFactorLibrary.ts | 4 +-
.../src/router/carbonEmissionManage.ts | 20 +
.../carbonEmissionFactorLibrary/config.ts | 2 +-
.../carbonEmissionFactorLibrary/index.vue | 411 ++++----
.../carbonEmissions/index.vue | 56 +-
.../carbonEmissionStatistics/index.vue | 1 -
.../quickCalculation/index.vue | 239 ++---
.../carbonInventoryCheck/fillInPage/index.vue | 1021 +++++++++++---------
8 files changed, 948 insertions(+), 806 deletions(-)
diff --git a/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts b/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts
index dcbbfa9..2d5f06f 100644
--- a/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts
+++ b/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts
@@ -55,4 +55,6 @@ export enum carbonInventoryCheck {
findUnitById = '/carbon-smartapi/carbon/inventory/findById',
getDetailsList = '/carbon-smart/api/carbon/inventory/details/getDetailsList',
updateTable = '/carbon-smart/api/carbon/inventory/details/update',
-}
\ No newline at end of file
+ // 排放统计接口
+ emissionStatistic = '/carbon-smart/api/carbon/inventory/emissionStatistic',
+}
diff --git a/hx-ai-intelligent/src/router/carbonEmissionManage.ts b/hx-ai-intelligent/src/router/carbonEmissionManage.ts
index 1ce91af..2d0e6d4 100644
--- a/hx-ai-intelligent/src/router/carbonEmissionManage.ts
+++ b/hx-ai-intelligent/src/router/carbonEmissionManage.ts
@@ -65,6 +65,26 @@ const equipment = {
},
],
},
+ {
+ path: 'carbonInventoryCheck',
+ name: 'CarbonInventoryCheck',
+ meta: { title: '碳资产', hideChildren: true, icon: 'tanpaiguanli' },
+ component: Base,
+ redirect: { name: 'CarbonInventoryCheckIndex' },
+ children: [
+ {
+ path: 'index',
+ name: 'CarbonInventoryCheckIndex',
+ // component: () => import('/nerv-lib/saas/view/menuManage/index.vue'),
+ component: () => import('/@/view/carbonEmissionManage/carbonInventoryCheck/index.vue'),
+ meta: {
+ title: '碳资产',
+ keepAlive: false,
+ // backApi: [],
+ },
+ },
+ ],
+ },
],
};
export default equipment;
diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionFactorLibrary/config.ts b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionFactorLibrary/config.ts
index aa2df7e..7eaf1ae 100644
--- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionFactorLibrary/config.ts
+++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionFactorLibrary/config.ts
@@ -196,7 +196,7 @@ export const formConfig = (disabled) => {
componentProps: {
placeholder: '请输入参考文献',
maxLength: 300,
- showCount:true
+ showCount: true,
},
},
],
diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionFactorLibrary/index.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionFactorLibrary/index.vue
index bd5c776..a110e3f 100644
--- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionFactorLibrary/index.vue
+++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionFactorLibrary/index.vue
@@ -4,16 +4,15 @@
-
+
-
+
-
+
+ @search="onSearchTreeData" />
@@ -21,7 +20,7 @@
-
- {{ data.emissionName.substring(0, data.emissionName.indexOf(selectTreeDataValue)) }}
- {{ selectTreeDataValue }}
- {{ data.emissionName.substring(data.emissionName.indexOf(selectTreeDataValue) + selectTreeDataValue.length) }}
+
+ {{
+ data.emissionName.substring(0, data.emissionName.indexOf(selectTreeDataValue))
+ }}
+ {{ selectTreeDataValue }}
+ {{
+ data.emissionName.substring(
+ data.emissionName.indexOf(selectTreeDataValue) + selectTreeDataValue.length,
+ )
+ }}
{{ data.emissionName }}
@@ -62,12 +72,12 @@
-
+
{{ record.emissionGas.label }}
@@ -77,10 +87,7 @@
-
+
新增单位
-
+
+ @change="handleChange">
{{ item.cnValue }}
@@ -146,8 +159,11 @@
@@ -158,31 +174,32 @@
-
-
+
+
-
-
+
+
-
+
{{ item.cnValue }}
@@ -193,12 +210,17 @@
@@ -189,4 +193,4 @@
td.column-money {
text-align: right !important;
}
-
\ No newline at end of file
+
diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/index.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/index.vue
index 831f1b2..f39242a 100644
--- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/index.vue
+++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/index.vue
@@ -31,4 +31,3 @@
// }
};
-
diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/quickCalculation/index.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/quickCalculation/index.vue
index 08059aa..200e900 100644
--- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/quickCalculation/index.vue
+++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/quickCalculation/index.vue
@@ -2,16 +2,15 @@
-
+
-
+
-
+
+ @search="onSearchTreeData" />
@@ -25,13 +24,15 @@
show-line
@expand="onExpand"
@select="onSelect"
- style="padding: 0 16px !important;"
- >
+ style="padding: 0 16px !important">
-
+
{{ data.energyType.substring(0, data.energyType.indexOf(searchValue)) }}
{{ searchValue }}
- {{ data.energyType.substring(data.energyType.indexOf(searchValue) + searchValue.length) }}
+ {{
+ data.energyType.substring(data.energyType.indexOf(searchValue) + searchValue.length)
+ }}
{{ data.energyType }}
@@ -61,33 +62,35 @@
-->
-
-
-
-
+
+
+
-
+
@@ -103,20 +106,24 @@
-
-
-
-
- 取消
- 确定
-
-
+
+
+
+
+ 取消
+ 确定
+
+
@@ -124,10 +131,13 @@
@@ -474,9 +483,9 @@
display: flex;
flex-direction: column;
- .top{
+ .top {
position: relative;
- .addTreeNode{
+ .addTreeNode {
width: 100%;
padding: 16px;
position: absolute;
@@ -499,7 +508,7 @@
.top {
overflow: auto;
}
- .ns-form-title{
+ .ns-form-title {
font-weight: bold;
user-select: text;
padding: 16px;
@@ -507,7 +516,7 @@
padding-bottom: 10px;
border-bottom: 1px solid #e9e9e9;
}
- .title{
+ .title {
text-align: left;
height: 32px;
line-height: 32px;
@@ -525,17 +534,17 @@
height: 13px;
width: 3px;
border-radius: 1px;
- background-color: #2778FF;
+ background-color: #2778ff;
}
:deep(.ant-table-title) {
display: flex;
height: 100%;
align-items: center;
}
- .ns-table-title{
+ .ns-table-title {
font-weight: bold;
}
- .buttonGroup{
+ .buttonGroup {
margin-left: 1vw;
width: 5vw;
display: flex;
@@ -547,4 +556,4 @@
td.column-money {
text-align: right !important;
}
-
\ No newline at end of file
+
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 9fb4af0..ba6809f 100644
--- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/fillInPage/index.vue
+++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonInventoryCheck/fillInPage/index.vue
@@ -2,18 +2,23 @@