From 8ea705ba540eabf972d544381d43c04d307e9246 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 13 Jan 2022 15:37:17 +0800 Subject: [PATCH] 26710 --- .../3.0.0/AppHealthReport/AppHealthReport.vue | 17 +++++++++++------ .../3.0.0/AppHealthReport/components/Detail.vue | 2 +- .../AppReturnHomeRegister.vue | 17 +++++++++++------ .../AppReturnHomeRegister/components/Detail.vue | 4 ++-- 4 files changed, 25 insertions(+), 15 deletions(-) diff --git a/packages/3.0.0/AppHealthReport/AppHealthReport.vue b/packages/3.0.0/AppHealthReport/AppHealthReport.vue index 07c9fbdc..4f430ca1 100644 --- a/packages/3.0.0/AppHealthReport/AppHealthReport.vue +++ b/packages/3.0.0/AppHealthReport/AppHealthReport.vue @@ -34,17 +34,22 @@ methods: { onChange (data) { - if (data.type === 'list') { - this.component = 'List' - this.isShowDetail = false - this.params = data.params - } - if (data.type === 'Detail') { this.component = 'Detail' this.isShowDetail = true this.params = data.params } + + if (data.type === 'list') { + this.component = 'List' + this.params = data.params + + this.$nextTick(() => { + if (data.isRefresh) { + this.$refs.component.getList() + } + }) + } } } } diff --git a/packages/3.0.0/AppHealthReport/components/Detail.vue b/packages/3.0.0/AppHealthReport/components/Detail.vue index 5ca9ea8f..c9ef4a51 100644 --- a/packages/3.0.0/AppHealthReport/components/Detail.vue +++ b/packages/3.0.0/AppHealthReport/components/Detail.vue @@ -1,7 +1,7 @@