Selaa lähdekoodia

修改合并问题性能分析-添加新逻辑

liujiejie 4 kuukautta sitten
vanhempi
commit
1379299412

+ 3 - 2
src/views/overview/components/yaw_error_density/index.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2025-01-10 09:26:12
- * @LastEditTime: 2025-01-17 09:26:44
+ * @LastEditTime: 2025-01-17 10:43:42
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/overview/components/yaw_error_density/index.vue
@@ -283,7 +283,8 @@ export default {
   }
 
   .charts {
-    height: calc(100% - 150px);
+    // height: calc(100% - 150px);
+    height: 80vh;
   }
 
   .scroller {

+ 3 - 87
src/views/performance/assetssMag.vue

@@ -409,7 +409,7 @@ export default {
       dialogWidth: "80%",
       intervalId: null,
       startTime: null,
-      maxPollingTime: 5 * 60 * 1000, //轮询最大时间
+      maxPollingTime: 3 * 60 * 1000, //轮询最大时间
       dialogVisible: false,
       loadingView: false,
       loading: false, //数据加载中
@@ -454,32 +454,6 @@ export default {
     window.removeEventListener("message", this.handleMessage); //江
   },
   methods: {
-    //江
-    // handleMessage(event) {
-    //   // 确保消息来自当前域
-    //   if (event.origin !== window.location.origin) {
-    //     return;
-    //   }
-    //   // 获取传递的参数
-    //   const { fieldName, analysisState, errState } = event.data;
-
-    //   // 更新表单字段并调用查询
-    //   if (fieldName !== undefined) {
-    //     this.formInline.fieldName = fieldName;
-    //     console.log(fieldName, "0");
-    //   }
-    //   if (analysisState !== undefined) {
-    //     this.formInline.analysisState = analysisState;
-    //     console.log(analysisState, "2");
-    //   }
-    //   if (errState !== undefined) {
-    //     this.formInline.errState = errState;
-    //     console.log(errState, "1");
-    //   }
-
-    //   // 调用查询方法
-    //   this.getTableList();
-    // },
     // 创建分析时请求
     async addRuleFormSubmit() {
       this.$refs.addRuleForm.validate(async (valid) => {
@@ -673,31 +647,6 @@ export default {
         this.getTableList();
       }
     },
-    // async getTableList() {
-    //   try {
-    //     this.loading = true;
-    //     const params = { ...this.formInline, totalSize: undefined };
-
-    //     // 如果 analysisState 存在,传递 analysisState 参数
-    //     if (this.formInline.analysisState !== undefined) {
-    //       params.analysisState = this.formInline.analysisState;
-    //     }
-
-    //     // 如果 errState 存在,传递 errState 参数
-    //     if (this.formInline.errState !== undefined) {
-    //       params.errState = this.formInline.errState;
-    //     }
-    //     const result = await analysisResultList(params);
-    //     this.tableData = result.data.list;
-    //     this.formInline.totalSize = result.data.totalSize;
-    //     this.loading = false;
-    //   } catch (error) {
-    //     this.$message({
-    //       type: "error",
-    //       message: "请检查是否连接网络",
-    //     });
-    //   }
-    // },
     rowStyle() {
       return "text-align:center";
     },
@@ -726,27 +675,6 @@ export default {
         });
       }
     },
-    // async fetchData() {
-    //   try {
-    //     const result = await analysisResultList({
-    //       ...this.formInline,
-    //       totalSize: undefined,
-    //     });
-    //     this.tableData = result.data.list;
-    //     this.formInline.totalSize = result.data.totalSize;
-    //   } catch (error) {
-    //     this.$message({
-    //       type: "error",
-    //       message: "请检查是否连接网络",
-    //     });
-    //   }
-    // },
-    // stopPolling() {
-    //   if (this.intervalId) {
-    //     clearInterval(this.intervalId);
-    //     this.intervalId = null;
-    //   }
-    // },
     stopPolling() {
       if (this.intervalId) {
         clearInterval(this.intervalId);
@@ -754,7 +682,6 @@ export default {
       }
       this.isPolling = false;
     },
-
     // 启动轮询时,避免重复请求
     startPolling() {
       this.startTime = new Date().getTime();
@@ -770,20 +697,9 @@ export default {
             this.fetchData();
           }
         }
-      }, 10000); // 每10秒检查一次
+      }, 3000); // 每10秒检查一次
     },
-    // startPolling() {
-    //   this.startTime = new Date().getTime();
-    //   this.intervalId = setInterval(() => {
-    //     const currentTime = new Date().getTime();
-    //     if (currentTime - this.startTime >= this.maxPollingTime) {
-    //       this.stopPolling();
-    //     } else {
-    //       // 轮询
-    //       // this.fetchData();
-    //     }
-    //   }, 10000); // 每10秒调用一次
-    // },
+
     //创建分析
     Newanalyse() {
       this.addDialogVisible = true;

+ 2 - 2
src/views/performance/components/chartsCom/TwoDMarkersChart.vue

@@ -20,9 +20,9 @@
           <el-button size="small" @click="setChartType('line')"
             >折线图</el-button
           >
-          <el-button size="small" @click="setChartType('bar')"
+          <!-- <el-button size="small" @click="setChartType('bar')"
             >柱状图</el-button
-          >
+          > -->
         </div>
       </div>
       <!-- <div v-loading="$parent.requestRecord[index] === 'start'"> -->