Ver código fonte

Merge branch 'feature-521-lj' into dev

liujing 8 meses atrás
pai
commit
e6bc2489f0
1 arquivos alterados com 4 adições e 3 exclusões
  1. 4 3
      src/views/business-analysis/topology/index.vue

+ 4 - 3
src/views/business-analysis/topology/index.vue

@@ -283,7 +283,7 @@ export default {
       serviceBarObj: {},
       timer: null,
       slowTopQuery: {
-        app_alias: '',
+        app_id: 1,
         limit: 5,
         start_time: '',
         end_time: ''
@@ -397,8 +397,9 @@ export default {
       handler(newValue, oldValue) {
         this.sendObj.app_alias = newValue
         this.serviceBarQuery.app_alias = newValue
-        this.slowTopQuery.app_alias = newValue
         this.dbslowtopQuery.app_alias = newValue
+        this.appItem = storage.get('appsItem')
+        this.slowTopQuery.app_id = this.appItem.id
         this.getAppsScore() // 应用黄金指标(RED)
         this.getdbslowtop() // 慢查询TOP5
         this.getServiceBar() // 服务性能
@@ -423,7 +424,7 @@ export default {
       this.serviceBarQuery.start_time = start_time
       this.serviceBarQuery.end_time = end_time
       this.getServiceBar() // 服务性能
-      this.slowTopQuery.app_alias = this.appItem.alias
+      this.slowTopQuery.app_id = this.appItem.id
       this.slowTopQuery.start_time = start_time
       this.slowTopQuery.end_time = end_time