Ver código fonte

jiang 合并

rui.jiang 2 meses atrás
pai
commit
96f92d1225

+ 2 - 2
src/views/overview/components/dicCard/index.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2025-01-13 14:15:47
- * @LastEditTime: 2025-03-14 16:39:08
+ * @LastEditTime: 2025-03-14 20:22:13
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/overview/components/dicCard/index.vue
@@ -15,7 +15,7 @@
       icon="el-icon-s-fold"
     >
     </el-button>
-    <el-drawer :visible.sync="drawer">
+    <el-drawer :visible.sync="drawer" title="分析评论">
       <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
         <el-tab-pane label="当前评论" name="current">
           <template

+ 27 - 4
src/views/overview/components/wind_direction_frequency/index.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2025-01-10 09:11:12
- * @LastEditTime: 2025-02-26 11:26:10
+ * @LastEditTime: 2025-03-14 20:19:37
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/overview/components/wind_direction_frequency/index.vue
@@ -32,7 +32,8 @@
         </div>
       </el-alert>
       <div class="titleCharts">分析分图 :</div>
-      <VirtualList
+
+      <!-- <VirtualList
         :list="diagramRelationsDatas"
         keyField="fieldEngineCode"
         :itemSize="452"
@@ -45,8 +46,30 @@
           :ref="item.fieldEngineCode"
           :fileAddr="item.fileAddr"
         ></WindRoseChart>
-      </VirtualList>
-
+      </VirtualList> -->
+      <div>
+        <template>
+          <el-row>
+            <el-col
+              :xs="24"
+              :sm="24"
+              :md="24"
+              :lg="12"
+              :xl="12"
+              v-for="(item, itemind) in diagramRelationsDatas"
+              :key="itemind"
+            >
+              <WindRoseChart
+                :setUpImgData="setUpImgData"
+                :key="item.fieldEngineCode + itemind"
+                :inds="itemind"
+                :ref="item.fieldEngineCode"
+                :fileAddr="item.fileAddr"
+              ></WindRoseChart>
+            </el-col>
+          </el-row>
+        </template>
+      </div>
       <el-dialog
         v-if="isShowDescription"
         title="添加评论"

+ 6 - 2
src/views/performance/components/chartsCom/WindRoseChart.vue

@@ -63,7 +63,11 @@ export default {
   },
   mounted() {
     this.getData();
-    this.color1 = this.themeColor;
+    if (this.themeColor.length === 0) {
+      this.color1 = colorSchemes[0].colors;
+    } else {
+      this.color1 = this.themeColor;
+    }
   },
   methods: {
     async getData() {
@@ -99,7 +103,7 @@ export default {
       const colors = [...this.color1]; // 可扩展颜色列表
       const colorscale = {};
       speedLabels.forEach((label, index) => {
-        colorscale[label] = colors[index % colors.length];
+        colorscale[label] = colors[(index % colors.length) + 4];
       });
 
       // 定义风向的 16 等分