From ceb9afeef13869647d880ed6fe2904bd17c3347a Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 12 Oct 2022 14:11:01 +0800 Subject: [PATCH] 11 --- .../modules/shequzhili/issue/cpts/evaluationDetail.vue | 2 +- src/views/modules/shequzhili/issue/cpts/issue-info.vue | 7 ++++++- src/views/modules/shequzhili/issue/cpts/suggestDetail.vue | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/modules/shequzhili/issue/cpts/evaluationDetail.vue b/src/views/modules/shequzhili/issue/cpts/evaluationDetail.vue index b401aa503..99f2d404a 100644 --- a/src/views/modules/shequzhili/issue/cpts/evaluationDetail.vue +++ b/src/views/modules/shequzhili/issue/cpts/evaluationDetail.vue @@ -106,7 +106,7 @@ export default { methods: { - async initForm (topicInfo) { + async initForm () { this.startLoading() await this.getList() diff --git a/src/views/modules/shequzhili/issue/cpts/issue-info.vue b/src/views/modules/shequzhili/issue/cpts/issue-info.vue index f5f636d5d..d70182a70 100644 --- a/src/views/modules/shequzhili/issue/cpts/issue-info.vue +++ b/src/views/modules/shequzhili/issue/cpts/issue-info.vue @@ -414,12 +414,17 @@ export default { handleToSuggest () { // this.pageTypeCopy = 'topic' this.suggestShow = true + this.$nextTick(() => { + this.$refs.ref_detail_suggest.initForm() + }) }, handleToEvaluation () { // this.pageTypeCopy = 'topic' this.evaluationShow = true - + this.$nextTick(() => { + this.$refs.ref_detail_evaluation.initForm() + }) }, // 开启加载动画 diff --git a/src/views/modules/shequzhili/issue/cpts/suggestDetail.vue b/src/views/modules/shequzhili/issue/cpts/suggestDetail.vue index 071ce19fe..3c7ff4e9e 100644 --- a/src/views/modules/shequzhili/issue/cpts/suggestDetail.vue +++ b/src/views/modules/shequzhili/issue/cpts/suggestDetail.vue @@ -97,7 +97,7 @@ export default { methods: { - async initForm (topicInfo) { + async initForm () { this.startLoading() await this.getSuggestion()