From 3ead8a7d00a469687609afed01d4d2b9be56e584 Mon Sep 17 00:00:00 2001 From: yujt Date: Thu, 28 May 2020 10:11:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=9C=AC=EF=BC=9B?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=8C=E6=96=87=E6=9C=AC=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=EF=BC=9B=E5=85=B6=E4=BB=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/news/allnews-add-or-update.vue | 2 +- src/views/modules/news/allnews.vue | 37 --- .../modules/news/allnotice-add-or-update.vue | 4 +- src/views/modules/news/allnotice.vue | 14 +- .../modules/news/banner-add-or-update.vue | 34 -- src/views/modules/news/news-publish.vue | 36 +-- src/views/modules/news/newsdraft.vue | 37 --- .../modules/news/notice-add-or-update.vue | 4 +- .../modules/police/police-add-or-update.vue | 304 ++++++++---------- src/views/modules/police/topic-detail.vue | 24 +- 10 files changed, 152 insertions(+), 344 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 @@ -
+
-
提交时间   - {{dataForm.allDeptNames}} @@ -23,7 +23,7 @@ label="通知内容"> -
diff --git a/src/views/modules/news/allnotice.vue b/src/views/modules/news/allnotice.vue index 9dc2c1a..7cf7cf6 100644 --- a/src/views/modules/news/allnotice.vue +++ b/src/views/modules/news/allnotice.vue @@ -10,7 +10,7 @@ :options="options" :props="{ checkStrictly: true }" clearable> -
+
{{ $t('query') }} - - - -
+
-
提交时间   - -
diff --git a/src/views/modules/police/police-add-or-update.vue b/src/views/modules/police/police-add-or-update.vue index 099724e..2b65a9f 100644 --- a/src/views/modules/police/police-add-or-update.vue +++ b/src/views/modules/police/police-add-or-update.vue @@ -47,179 +47,139 @@ \ 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(() => { }) } } }