From 698cea29defc47aab373cd8a7188fce87f748530 Mon Sep 17 00:00:00 2001 From: yujt Date: Wed, 27 May 2020 14:12:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F=E5=8F=8A?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/news/allnews-add-or-update.vue | 2 +- .../modules/news/allnotice-add-or-update.vue | 2 +- src/views/modules/news/news-add-or-update.vue | 2 +- .../modules/news/notice-add-or-update.vue | 2 +- .../modules/police/police-add-or-update.vue | 305 ++++++++---------- src/views/modules/police/police.vue | 176 +++++----- src/views/modules/police/topic-detail.vue | 24 +- 7 files changed, 237 insertions(+), 276 deletions(-) diff --git a/src/views/modules/news/allnews-add-or-update.vue b/src/views/modules/news/allnews-add-or-update.vue index bbf3e98..224c098 100644 --- a/src/views/modules/news/allnews-add-or-update.vue +++ b/src/views/modules/news/allnews-add-or-update.vue @@ -28,7 +28,7 @@ -
+
-
diff --git a/src/views/modules/news/news-add-or-update.vue b/src/views/modules/news/news-add-or-update.vue index f911a74..d586013 100644 --- a/src/views/modules/news/news-add-or-update.vue +++ b/src/views/modules/news/news-add-or-update.vue @@ -74,7 +74,7 @@ -
+
-
diff --git a/src/views/modules/police/police-add-or-update.vue b/src/views/modules/police/police-add-or-update.vue index 88d1230..95271e6 100644 --- a/src/views/modules/police/police-add-or-update.vue +++ b/src/views/modules/police/police-add-or-update.vue @@ -47,179 +47,140 @@ \ No newline at end of file + diff --git a/src/views/modules/police/police.vue b/src/views/modules/police/police.vue index 5c90a6a..8e07c3b 100644 --- a/src/views/modules/police/police.vue +++ b/src/views/modules/police/police.vue @@ -87,96 +87,96 @@ \ No newline at end of file + diff --git a/src/views/modules/police/topic-detail.vue b/src/views/modules/police/topic-detail.vue index c2fbbca..1a34e43 100644 --- a/src/views/modules/police/topic-detail.vue +++ b/src/views/modules/police/topic-detail.vue @@ -174,7 +174,7 @@ export default { this.getCommentList() }, getCommentList () { - this.$http.get('/property/topiccomment/comments', { params: { id: this.dataForm.id, order: this.order, orderField: this.orderField, page: this.pageIndex, limit: this.limitVal } + this.$http.get('/property/topiccomment/comments', { params: { id: this.dataForm.id, order: this.order, orderField: this.orderField, page: this.pageIndex, limit: this.limitVal } }).then(({ data: res }) => { if (res.code !== 0) { this.commentsDTOs = [] @@ -188,18 +188,18 @@ export default { deleteComment (val) { this.$http['post']( '/property/topiccomment/deleteComment', { commentIds: [val] }).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.getCommentList() } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.getCommentList() - } - }) - }).catch(() => { }) + }) + }).catch(() => { }) } } }