浏览代码

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

liujing 2 周之前
父节点
当前提交
5d2d5826d0
共有 1 个文件被更改,包括 12 次插入0 次删除
  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()
     }
   }