From be23f7a1767ae247634d369c03b1c287f87a8b80 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Fri, 29 Apr 2022 16:46:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E8=AF=84=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/commentList.vue | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/commentList.vue b/jero-web/src/views/projectManagement/components/commentList.vue index e1da6a4bb..08b73d8d9 100644 --- a/jero-web/src/views/projectManagement/components/commentList.vue +++ b/jero-web/src/views/projectManagement/components/commentList.vue @@ -49,6 +49,7 @@
{{$t('noComment')}}
+ {{$t('dataLoading')}}
+ * {{title}}
@@ -97,6 +99,7 @@ visible: false, dataList: [], formInline: {}, + loading: false, title: this.$t('comment'), confirmLoading: false, visibleComment: false, @@ -137,12 +140,18 @@ this.title = this.$t('publishComment') this.formInline = {} this.visibleComment = true + this.$nextTick(() => { + this.$refs.ruleForm.clearValidate() + }) }, getList() { - getAction(this.url.list, {}).then((res) => { + this.loading = true + getAction(this.url.list, { projectLibraryId: this.$route.query.id }).then((res) => { if (res.success) { + this.loading = false this.dataList = res.result || [] } else { + this.loading = false this.dataList = [] } }) @@ -165,17 +174,20 @@ projectCommentId: this.formInline.projectCommentId } } + this.confirmLoading = true postAction(url, query).then((res) => { if (res.success) { this.$message.success(this.$t('OperationSuccessful')) + this.visibleComment = false + this.confirmLoading = false this.getList() } else { + this.confirmLoading = false this.$message.success(this.$t('operationFailed')) } }) } }) - this.visibleComment = false }, handleCancelComment() { this.visibleComment = false @@ -185,6 +197,9 @@ this.formInline.projectCommentId = row.id this.title = this.$t('replyToComments') this.visibleComment = true + this.$nextTick(() => { + this.$refs.ruleForm.clearValidate() + }) } } } @@ -308,7 +323,7 @@ } .title-text { - width: 64px; + width: 74px; text-align: right; display: inline-block; font-weight: 500;