From b19bac460f32d294579e0e45635567b2e7e335c6 Mon Sep 17 00:00:00 2001 From: zyn Date: Thu, 23 Nov 2023 09:46:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=86=85=E5=A4=96=E9=83=A8=E4=BC=9A?= =?UTF-8?q?=E8=AE=AE=E3=80=81=E6=94=BF=E7=AD=96=E8=AF=BE=E9=A2=98=E3=80=81?= =?UTF-8?q?=E6=94=BF=E7=AD=96=E6=B3=95=E8=A7=84=E8=B5=84=E6=96=99=E8=AF=A6?= =?UTF-8?q?=E6=83=85-=E6=B7=BB=E5=8A=A0loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/details/meetingDetail/index.vue | 4 +++- src/pages/details/policyTopicsDetail/index.vue | 4 +++- src/pages/details/regulatoryMaterialsDetail/index.vue | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/pages/details/meetingDetail/index.vue b/src/pages/details/meetingDetail/index.vue index c82a17752..d8e296d28 100644 --- a/src/pages/details/meetingDetail/index.vue +++ b/src/pages/details/meetingDetail/index.vue @@ -105,6 +105,7 @@ 关 闭 + 数据获取中 @@ -124,6 +125,7 @@ export default { // 更新记录 relateDialog: false, relateNowList: [], + loading: false } }, created() { @@ -132,7 +134,7 @@ export default { methods: { getData () { const id = this.$route.params.id - this.$http._getData(this.url.getMeetingInfo, { meetingId: id }).then(res => { + this.$http._getData(this.url.getMeetingInfo, { meetingId: id }, { _this: this, loading: 'loading' }).then(res => { if (res.ok) { if (res.data.meetingTopicList && res.data.meetingTopicList.length > 0) { const activeNames = [] diff --git a/src/pages/details/policyTopicsDetail/index.vue b/src/pages/details/policyTopicsDetail/index.vue index a16af192f..8ed7b32b0 100644 --- a/src/pages/details/policyTopicsDetail/index.vue +++ b/src/pages/details/policyTopicsDetail/index.vue @@ -257,6 +257,7 @@ 关 闭 + 数据获取中 @@ -276,6 +277,7 @@ export default { // 更新记录 relateDialog: false, relateNowList: [], + loading: false } }, created() { @@ -284,7 +286,7 @@ export default { methods: { getData () { const id = this.$route.params.id - this.$http._getData(this.url.getLawsTopicInfo, { id }).then(res => { + this.$http._getData(this.url.getLawsTopicInfo, { id }, { _this: this, loading: 'loading' }).then(res => { if (res.ok) { const activeNames = [] res.data.meetingList.forEach((item, index) => { diff --git a/src/pages/details/regulatoryMaterialsDetail/index.vue b/src/pages/details/regulatoryMaterialsDetail/index.vue index 051c251d0..59473efb2 100644 --- a/src/pages/details/regulatoryMaterialsDetail/index.vue +++ b/src/pages/details/regulatoryMaterialsDetail/index.vue @@ -82,6 +82,7 @@ 关 闭 + 数据获取中 @@ -105,6 +106,7 @@ export default { // 更新记录 relateDialog: false, relateNowList: [], + loading: false, } }, created() { @@ -133,7 +135,7 @@ export default { getData () { const id = this.$route.params.id - this.$http._getData(this.url.getLawsInformationInfo, { id }).then(res => { + this.$http._getData(this.url.getLawsInformationInfo, { id }, { _this: this, loading: 'loading' }).then(res => { if (res.ok) { this.$set(this, 'form', res.data) }