Explorar o código

修改分析概览及分析管理页面

liujiejie hai 4 meses
pai
achega
f13b5c83e4

+ 24 - 1
src/api/performance.js

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2024-06-03 09:29:50
- * @LastEditTime: 2025-01-06 16:37:46
+ * @LastEditTime: 2025-01-13 10:12:11
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/api/performance。.js
@@ -265,3 +265,26 @@ export function queryAllTypeScada() {
     method: "get",
   });
 }
+export function queryAllAnalysisType() {
+  //查询全部分析类型 --概览页面分析类型下拉框选择
+  return request({
+    url: "/energy-manage-service/analysis/queryAllAnalysisType",
+    method: "get",
+  });
+}
+//新增分析结果--性能分析页面 新增分析按钮接口
+export function addAnalysisResult() {
+  return request({
+    url: "/energy-manage-service/analysis/addAnalysisResult",
+    method: "post",
+  });
+}
+
+//分析结果--性能分析列表添加了几个字段
+export function analysisResultList(data) {
+  return request({
+    url: "/energy-manage-service/analysis/analysisResultList",
+    method: "get",
+    params: data,
+  });
+}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
src/icons/svg/WindPower.svg


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
src/icons/svg/WindPower1.svg


+ 3 - 0
src/styles/global.scss

@@ -7,6 +7,9 @@
 .el-menu-item.is-active {
   color: var(--primary-color) !important;
 }
+.headerMessage {
+  color: var(--primary-color) !important;
+}
 .el-menu--horizontal > .el-menu-item.is-active {
   border-bottom: 2px solid var(--primary-color) !important;
 }

+ 187 - 10
src/views/overview/components/analysis_information/index.vue

@@ -1,17 +1,194 @@
-<!--
- * @Author: your name
- * @Date: 2025-01-09 17:40:53
- * @LastEditTime: 2025-01-09 17:50:49
- * @LastEditors: bogon
- * @Description: In User Settings Edit
- * @FilePath: /performance-test/src/views/overview/assetssMsg/index.vue
--->
 <template>
-  <div>分析信息</div>
+  <el-card shadow="always" class="box-card">
+    <div class="box-header">
+      <h4>分析介绍:</h4>
+      <div class="box-header-min">
+        <div>
+          乌梅山风电场位于江西省赣州市,海拔高度为
+          <span class="headerMessage"> 1000米 </span>
+          ,所在经纬度为经度
+          <span class="headerMessage"> 110.8° </span>
+          ,纬度
+          <span class="headerMessage">35° </span>。
+        </div>
+        <div>
+          该风电场由大唐研究院管理,风场总容量为
+          <span class="headerMessage"> 49.5MW </span>
+          ,共安装
+          <span class="headerMessage"> 30台</span>
+
+          风机,使用的机型为
+          <span class="headerMessage">
+            CCWE-1500/93.DF、CCWE-1500/77DF、CCWE-1500/82
+          </span>
+          。
+        </div>
+        <div>
+          分析数据时间跨度为2025年1月20日至2025年2月20日,分析完成时间为2025年1月20日10:10:10。数据分析人XXXXXXXXXX。
+        </div>
+      </div>
+    </div>
+
+    <div class="content">
+      <div class="left">
+        <div class="box-content-min">
+          <h4>完成分析类型:</h4>
+          <div class="completeAssetssType">
+            <el-tag type="warning">分钟级SCADA数据完整度分析 </el-tag>
+            <el-tag type="warning">逐月有功功率散点2D分析</el-tag>
+            <el-tag type="warning">逐月有功功率散点3D分析</el-tag>
+            <el-tag type="warning">秒级SCADA数据完整度分析</el-tag>
+            <el-tag type="warning">风速频率分析</el-tag>
+            <el-tag type="warning">风向玫瑰分析</el-tag>
+            <el-tag type="warning">风速均值分析</el-tag>
+            <el-tag type="warning">有功功率曲线分析</el-tag>
+          </div>
+        </div>
+        <div class="box-content-min">
+          <h4>分析完成机组:</h4>
+          <div class="analysisCompletionUnit">
+            <div
+              class="itemAnalysisCompletionUnit"
+              v-for="itemData in data"
+              :key="itemData"
+            >
+              <SvgIcons
+                name="WindPower1"
+                class="WindPower1"
+                width="40px"
+                height="42px"
+                color="#222"
+              ></SvgIcons>
+              <span>{{ itemData }}#机组</span>
+            </div>
+          </div>
+        </div>
+      </div>
+      <div class="right">
+        <Map></Map>
+      </div>
+    </div>
+  </el-card>
 </template>
+
 <script>
+import Map from "../../../performance/components/map.vue";
+
 export default {
   name: "AnalysisInformation",
+  components: {
+    Map,
+  },
+  data() {
+    return {
+      activeNames: ["1", "2", "3"],
+      data: [
+        1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
+      ],
+    };
+  },
+  methods: {
+    handleChange(val) {
+      console.log(val);
+    },
+  },
 };
 </script>
-<style scoped lang="scss"></style>
+
+<style scoped lang="scss">
+.completeAssetssType {
+  display: flex;
+  flex-wrap: wrap;
+  .el-tag {
+    margin-right: 10px;
+    margin-bottom: 10px;
+  }
+  ::v-deep .el-tag--warning {
+    background-color: #fdf6ec !important;
+    border-color: #faecd8 !important;
+    color: #e6a23c !important;
+  }
+}
+.el-card__body {
+  width: 100%;
+  height: 100%;
+}
+.content {
+  width: 100%;
+  display: flex;
+  justify-content: space-between;
+  align-items: flex-start; /* 上对齐 */
+  height: 100%; /* 确保内容区域有高度 */
+}
+
+.left {
+  width: 60%;
+  // flex: 1;
+  .box-content-min {
+    padding: 10px;
+    border-bottom: 1px solid #ebeef5;
+    color: #303133;
+    h4 {
+      color: #303133;
+      // border-bottom: 1px solid #ebeef5;
+      font-size: 13px;
+      font-weight: 500;
+      margin-bottom: 10px;
+    }
+  }
+  .analysisCompletionUnit {
+    display: flex;
+    flex-wrap: wrap;
+    .itemAnalysisCompletionUnit {
+      text-align: center;
+      margin-bottom: 10px;
+      border: #eaeef6 solid 1px;
+      margin-right: 10px;
+      border-radius: 10px;
+      padding: 10px 5px;
+      .WindPower1 {
+        padding: 10px 5px;
+        text-align: center;
+      }
+    }
+  }
+}
+
+.right {
+  width: 40%;
+  height: 100%; /* 确保容器高度为100% */
+  // flex: 1;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+
+.right .map-ditu {
+  width: 100%; /* 设置地图的宽度 */
+  height: 500px; /* 设置地图的高度 */
+}
+.box-card {
+  width: 100%;
+  height: 100%;
+  .box-header {
+    padding: 10px;
+    border-bottom: 1px solid #ebeef5;
+    color: #303133;
+    h4 {
+      color: #303133;
+      font-size: 13px;
+      font-weight: 500;
+      margin-bottom: 10px;
+    }
+  }
+  .box-header-min {
+    padding: 10px;
+    font-size: 14px;
+    color: #606266;
+    line-height: 40px;
+    .headerMessage {
+      font-size: 16px;
+    }
+  }
+}
+</style>

+ 18 - 5
src/views/performance/assetssMag.vue

@@ -1,6 +1,12 @@
 <template>
   <div class="global-variable">
     <div class="condition">
+      <el-alert
+        title="分析前请核对数据是否导入,点击查看是否导入即可查看"
+        type="warning"
+        show-icon
+      >
+      </el-alert>
       <el-form
         :inline="true"
         ref="ruleForm"
@@ -41,8 +47,15 @@
         </el-table-column>
         <el-table-column
           align="center"
-          label="批次名称"
-          prop="batchName"
+          label="分析名称"
+          prop="analysisName"
+          min-width="200"
+        >
+        </el-table-column>
+        <el-table-column
+          align="center"
+          label="数据类型名称"
+          prop="dataTypeName"
           min-width="200"
         >
         </el-table-column>
@@ -321,7 +334,7 @@
 <script>
 import MyDialog from "./components/dialogCom.vue";
 import { downloadPDF } from "@/utils/common";
-import { getAnalysisResultList, onOffAutoAnalysis } from "@/api/performance";
+import { onOffAutoAnalysis, analysisResultList } from "@/api/performance";
 export default {
   components: {
     MyDialog,
@@ -455,7 +468,7 @@ export default {
     async getTableList() {
       try {
         this.loading = true;
-        const result = await getAnalysisResultList({
+        const result = await analysisResultList({
           ...this.formInline,
           totalSize: undefined,
         });
@@ -483,7 +496,7 @@ export default {
     },
     async fetchData() {
       try {
-        const result = await getAnalysisResultList({
+        const result = await analysisResultList({
           ...this.formInline,
           totalSize: undefined,
         });

+ 1 - 2
src/views/performance/components/analysisEvent.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2024-05-29 09:13:51
- * @LastEditTime: 2025-01-10 11:15:52
+ * @LastEditTime: 2025-01-10 16:04:27
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/performance/components/analysisEvent.vue
@@ -587,7 +587,6 @@
         </el-col>
       </el-row>
     </el-card>
-
     <el-drawer
       title="偏好设置"
       :visible.sync="drawer"

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio