Quellcode durchsuchen

华电部署最后一版

liujiejie vor 2 Wochen
Ursprung
Commit
2c14768ed0

+ 2 - 2
src/components/map/index.vue

@@ -257,9 +257,9 @@ export default {
       layers: [
         new TileLayer({
           source: new XYZ({
-            url: "http://106.120.102.238:18000/tiles/{z}/{x}/{y}.png", //外网
+            // url: "http://106.120.102.238:18000/tiles/{z}/{x}/{y}.png", //外网
             // url: "http://127.0.0.1:8010/tiles/{z}/{x}/{y}.png", //本地
-            // url: "http://192.168.50.235/tiles/{z}/{x}/{y}.png", //内网
+            url: "http://192.168.50.235/tiles/{z}/{x}/{y}.png", //内网
             // url: "http://10.96.137.5:9080/tiles/{z}/{x}/{y}.png", //大~#@唐
             // url: "http://192.168.0.1/tiles/{z}/{x}/{y}.png", //华电
             // url: "http://192.168.50.235/tiles/{z}/{x}/{y}.png", //中广核

+ 1 - 1
src/store/themes.js

@@ -3,7 +3,7 @@ import { theme } from "tailwindcss/stubs/defaultConfig.stub";
 /*
  * @Author: your name
  * @Date: 2024-05-27 15:09:27
- * @LastEditTime: 2025-07-04 16:46:45
+ * @LastEditTime: 2025-07-04 17:17:59
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/store/themes.js

+ 2 - 1
src/views/home/Index.vue

@@ -125,6 +125,7 @@ export default {
 }
 
 .headerLeft {
-  width: 170px;
+  // width: 170px;
+  width: 52px;
 }
 </style>

+ 0 - 1
src/views/login/Index.vue

@@ -45,7 +45,6 @@
 </template>
 
 <script>
-import { resetRouter } from "@/router/index.js";
 export default {
   data() {
     var validatePass = (rule, value, callback) => {

+ 23 - 3
src/views/overview/components/pitch_power/index.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2025-01-09 18:09:41
- * @LastEditTime: 2025-03-14 17:47:44
+ * @LastEditTime: 2025-07-07 10:12:47
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/overview/components/pitch_power/index.vue
@@ -33,9 +33,14 @@
         </div>
       </el-alert>
       <div></div>
-      <div class="titleCharts">分析分图 :</div>
+      <div class="titleCharts">
+        分析分图 :
+        <el-button size="small" type="primary" @click="handleChartsType">{{
+          chartsType === "2D" ? "查看3D图" : "查看2D图"
+        }}</el-button>
+      </div>
       <VirtualList
-        :list="diagramRelationsDatas"
+        :list="filteredDiagramList"
         keyField="fileAddr"
         :itemSize="700"
         v-slot="{ item, index }"
@@ -149,6 +154,7 @@ export default {
   },
   data() {
     return {
+      chartsType: "2D",
       form: {
         value2: "",
       },
@@ -192,7 +198,20 @@ export default {
       this.fetchData(); // 调用合并后的函数
     }
   },
+  computed: {
+    filteredDiagramList() {
+      return this.diagramRelationsDatas.filter((item) => {
+        const type = this.getFileTypeFromUrl(item.fileAddr);
+        return this.chartsType === "2D"
+          ? type === "pitch_power"
+          : type === "3D";
+      });
+    },
+  },
   methods: {
+    handleChartsType() {
+      this.chartsType = this.chartsType === "2D" ? "3D" : "2D";
+    },
     getFileTypeFromUrl(url) {
       // 判断文件名或路径是否包含关键字
       if (url.includes("3D")) {
@@ -375,5 +394,6 @@ export default {
   font-size: 16px;
   font-weight: 500;
   margin-top: 20px;
+  margin-bottom: 20px;
 }
 </style>

+ 1 - 2
src/views/performance/components/chartsCom/TwoDMarkersChart1.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2024-09-11 14:32:12
- * @LastEditTime: 2025-07-04 16:23:28
+ * @LastEditTime: 2025-07-07 10:22:15
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/performance/components/chartsCom/powerMarkers2DCharts.vue
@@ -255,7 +255,6 @@ export default {
               x: 1.05, // x 控制横向位置(1 是右边,>1 就更靠右)
               y: 1.04, // y=1 是顶部
               // len: 0.4, // 高度(0~1之间)
-              thickness: 15, // 宽度(像素)
               xanchor: "left", // x锚点从左对齐
               yanchor: "top", // y锚点从顶部对齐
             },