From 66694b10eb1c0f60e6fc4d7ef97c377c410d005a Mon Sep 17 00:00:00 2001 From: zyn Date: Wed, 22 Nov 2023 11:22:44 +0800 Subject: [PATCH 01/22] =?UTF-8?q?style:=20=E6=94=BF=E7=AD=96=E8=AF=BE?= =?UTF-8?q?=E9=A2=98=E5=8F=82=E4=BC=9A=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/hzwlComponents/TableFormItem.vue | 4 +++- .../pages/creatProcess/policyTopicParticipation/index.vue | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/hzwlComponents/TableFormItem.vue b/src/components/hzwlComponents/TableFormItem.vue index db1bfec1d..89ee5785f 100644 --- a/src/components/hzwlComponents/TableFormItem.vue +++ b/src/components/hzwlComponents/TableFormItem.vue @@ -16,7 +16,8 @@ style="width: 100%;" :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',fontWeight: 'bold', height: '48px'}" @selection-change="handleSelectionChange"> - + + @@ -322,6 +323,8 @@ export default { drawerModal: false, drawerTitle: '', nodeList: [], + + loading: false } }, watch: { @@ -448,6 +451,7 @@ export default { const { bpnId, taskIds, prcId } = this.$route.query if (taskIds) { + this.loading = true inboundLiaisonDetail({ taskIds, pId: prcId @@ -471,12 +475,15 @@ export default { this.reloadForm = true }) } + }).finally(() => { + this.loading = false }) return; } // 根据草稿查询流程详情 if(bpnId) { + this.loading = true queryTaskFirst({ bpnId }).then(res => { this.reloadForm = false let mes = JSON.parse(res.mes) @@ -485,6 +492,8 @@ export default { this.$nextTick(() => { this.reloadForm = true }) + }).finally(() => { + this.loading = false }) } }, diff --git a/src/pages/processCenter/pages/creatProcess/policyTopicParticipation/index.vue b/src/pages/processCenter/pages/creatProcess/policyTopicParticipation/index.vue index 1bb35353c..013da0f9a 100644 --- a/src/pages/processCenter/pages/creatProcess/policyTopicParticipation/index.vue +++ b/src/pages/processCenter/pages/creatProcess/policyTopicParticipation/index.vue @@ -109,6 +109,7 @@ @checkedRole="checkedRole" :nodeList="nodeList" > + 数据获取中 @@ -226,6 +227,8 @@ export default { drawerModal: false, drawerTitle: '', nodeList: [], + + loading: false } }, created() { @@ -327,6 +330,7 @@ export default { const { bpnId, taskIds, prcId } = this.$route.query if (taskIds) { + this.loading = true inboundLiaisonDetail({ taskIds, pId: prcId @@ -350,12 +354,15 @@ export default { this.reloadForm = true }) } + }).finally(() => { + this.loading = false }) return; } // 根据草稿查询流程详情 if(bpnId) { + this.loading = true queryTaskFirst({ bpnId }).then(res => { this.reloadForm = false let mes = JSON.parse(res.mes) @@ -364,6 +371,8 @@ export default { this.$nextTick(() => { this.reloadForm = true }) + }).finally(() => { + this.loading = false }) } }, diff --git a/src/pages/processCenter/pages/creatProcess/policyWarehousing/step1.vue b/src/pages/processCenter/pages/creatProcess/policyWarehousing/step1.vue index 9a81eea7f..8d2362193 100644 --- a/src/pages/processCenter/pages/creatProcess/policyWarehousing/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/policyWarehousing/step1.vue @@ -43,6 +43,7 @@ @submit="handleSubmit" > + 数据获取中 @@ -253,7 +254,9 @@ export default { // 审批历史 processData: [], processLoading: false, - showProcess: false + showProcess: false, + + loading: false, } }, created() { @@ -301,6 +304,7 @@ export default { this.title = '重新起草' } this.showProcess = true + this.loading = true inboundLiaisonDetail({ taskIds, pId: prcId @@ -320,13 +324,15 @@ export default { this.reloadForm = true }) } - }).catch(e => { + }).finally(() => { + this.loading = false }) return; } // 根据草稿查询流程详情 if(this.$route.query.bpnId){ + this.loading = true queryTaskFirst({ bpnId: this.$route.query.bpnId }).then(res => { @@ -337,6 +343,8 @@ export default { this.$nextTick(() => { this.reloadForm = true }) + }).finally(() => { + this.loading = false }) } }, diff --git a/src/pages/processCenter/pages/creatProcess/policyWarehousing/step2.vue b/src/pages/processCenter/pages/creatProcess/policyWarehousing/step2.vue index f89dfa0e4..74401822c 100644 --- a/src/pages/processCenter/pages/creatProcess/policyWarehousing/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/policyWarehousing/step2.vue @@ -48,6 +48,7 @@ @checkedRole="checkedRole" :nodeList="nodeList" > + 数据获取中 @@ -267,6 +268,8 @@ export default { drawerModal: false, drawerTitle: '', nodeList: [], + + loading: false, } }, created() { @@ -287,6 +290,7 @@ export default { }, getData() { return new Promise((resolve, reject) => { + this.loading = true inboundLiaisonDetail({ taskIds: this.$route.query.taskIds, pId: this.$route.query.prcId @@ -300,7 +304,8 @@ export default { this.reloadForm = true }) } - }).catch(e => { + }).finally(() => { + this.loading = false }) }) }, From 0183eaadb8975159ea346b3a8f09654ae41c2868 Mon Sep 17 00:00:00 2001 From: zyn Date: Wed, 22 Nov 2023 14:40:43 +0800 Subject: [PATCH 05/22] =?UTF-8?q?refactor:=20=E5=AE=A1=E6=89=B9=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hzwlComponents/ApprovalHistory.vue | 42 ++++++++++++------- .../creatProcess/policyMeetings/step1.vue | 27 +++--------- .../creatProcess/policyMeetings/step2.vue | 26 +++--------- .../policyRegulatoryMaterials/index.vue | 27 +++--------- .../policyTopicEnrollment/index.vue | 27 +++--------- .../policyTopicParticipation/index.vue | 27 +++--------- .../creatProcess/policyWarehousing/step1.vue | 40 +++--------------- .../creatProcess/policyWarehousing/step2.vue | 39 +++-------------- 8 files changed, 68 insertions(+), 187 deletions(-) diff --git a/src/components/hzwlComponents/ApprovalHistory.vue b/src/components/hzwlComponents/ApprovalHistory.vue index 7978e7c98..15707d044 100644 --- a/src/components/hzwlComponents/ApprovalHistory.vue +++ b/src/components/hzwlComponents/ApprovalHistory.vue @@ -1,15 +1,14 @@