Explorar el Código

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

liujing hace 2 semanas
padre
commit
5d2d5826d0
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  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()
     }
   }