Browse Source

feat(trance链路列表搜索报错)

liujing 2 weeks ago
parent
commit
5d2d5826d0
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/views/latency/index.vue

+ 12 - 0
src/views/latency/index.vue

@@ -1136,6 +1136,12 @@ export default {
       this.queryTrace.pageIndex = 1
       // this.queryParams.pageIndex = 1
       // this.getSingleTrace()
+      if (this.queryTrace.start_time == undefined || this.queryTrace.start_time == null || isNaN(this.queryTrace.start_time)) {
+        this.queryTrace.start_time = this.$store.state.time.globalTimes.startTime
+      }
+      if (this.queryTrace.end_time == undefined || this.queryTrace.end_time == null || isNaN(this.queryTrace.end_time)) {
+        this.queryTrace.end_time = this.$store.state.time.globalTimes.endTime
+      }
       this.getTraceList()
     },
     // 控制列的显示和隐藏
@@ -1292,6 +1298,12 @@ export default {
       if (this.queryTrace.app_alias === '') {
         this.queryTrace.app_alias = storage.get('appsItem').alias
       }
+      if (this.queryTrace.start_time == undefined || this.queryTrace.start_time == null || isNaN(this.queryTrace.start_time)) {
+        this.queryTrace.start_time = this.$store.state.time.globalTimes.startTime
+      }
+      if (this.queryTrace.end_time == undefined || this.queryTrace.end_time == null || isNaN(this.queryTrace.end_time)) {
+        this.queryTrace.end_time = this.$store.state.time.globalTimes.endTime
+      }
       this.getTraceList()
     }
   }