Procházet zdrojové kódy

feat(url-接口-异常事件参数调整)

liujing před 3 týdny
rodič
revize
cfc0183d2b
1 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. 5 4
      src/views/service/InterfaceDetail/index.vue

+ 5 - 4
src/views/service/InterfaceDetail/index.vue

@@ -260,7 +260,7 @@ export default {
           this.childQueryParams.pageIndex = 1
           this.getBasicInfoFn()
           this.getTableListFn()
-          this.getAbnormalChartData(2) // 异常信息柱状图
+          // this.getAbnormalChartData(2) // 异常信息柱状图
           if (newValue.timeOut) {
             if (newValue.timeOut === 1) {
               clearInterval(this.serviceMapTimer)
@@ -280,7 +280,7 @@ export default {
         this.currentAlias = newValue
         this.getBasicInfoFn()
         this.getTableListFn()
-        this.getAbnormalChartData(2) // 异常信息柱状图
+        // this.getAbnormalChartData(2) // 异常信息柱状图
       },
       deep: true
     }
@@ -326,7 +326,7 @@ export default {
     }
     this.row = storage.get('row')
     this.getBasicInfoFn()
-    this.getAbnormalChartData(2) // 异常信息柱状图
+    // this.getAbnormalChartData(2) // 异常信息柱状图
   },
   beforeDestroy() {
     clearInterval(this.serviceMapTimer)
@@ -352,7 +352,7 @@ export default {
       }
       const params = {
         kind: 'interface',
-        subcondition_value: this.name,
+        subcondition_value: this.subdigitsQuery.id,
         start_time: start_time,
         end_time: end_time,
         app_alias: this.appItem.alias
@@ -447,6 +447,7 @@ export default {
       if (res && res.code === 200) {
         this.baseInfoObj = res.data
         this.subdigitsQuery.id = res.data.id
+        this.getAbnormalChartData(2) // 异常信息柱状图
         this.getUrlMappingSubdigits()
       } else {
         this.baseInfoObj = {}