From 9cfa8818074b6c9eb5510b75ac01ef9859f4dde6 Mon Sep 17 00:00:00 2001 From: songyunpeng Date: Mon, 21 Jun 2021 17:29:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=9D=E9=A2=98=E6=89=B9=E9=87=8F=E5=85=B3?= =?UTF-8?q?=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/partygroup/partytopic-close.vue | 2 +- .../modules/partygroup/partytopic-list.vue | 23 ++++++++++++++++++- src/views/modules/user/party-review.vue | 2 +- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/views/modules/partygroup/partytopic-close.vue b/src/views/modules/partygroup/partytopic-close.vue index a73301d..1e3cc6a 100644 --- a/src/views/modules/partygroup/partytopic-close.vue +++ b/src/views/modules/partygroup/partytopic-close.vue @@ -19,7 +19,7 @@ export default { return { visible: false, dataForm: { - id: '', + ids: [], remark: '' } } diff --git a/src/views/modules/partygroup/partytopic-list.vue b/src/views/modules/partygroup/partytopic-list.vue index fcb92c3..09f66c9 100644 --- a/src/views/modules/partygroup/partytopic-list.vue +++ b/src/views/modules/partygroup/partytopic-list.vue @@ -44,8 +44,12 @@ {{ $t('query') }} + + {{ $t('close') }} + + @@ -165,9 +169,26 @@ export default { }, methods: { close (id) { + let array = [] + array[0] = id + this.closeVisible = true + this.$nextTick(() => { + this.$refs.close.dataForm.ids = array + this.$refs.close.init() + }) + }, + closeHandle (e) { + let t = this + let a = t.dataListSelections.map(function (e) { + return e[t.mixinViewModuleOptions.deleteIsBatchKey] + }) + if (a.length === 0) { + this.$message.info('请先选择关闭的话题') + return + } this.closeVisible = true this.$nextTick(() => { - this.$refs.close.dataForm.id = id + this.$refs.close.dataForm.ids = a this.$refs.close.init() }) }, diff --git a/src/views/modules/user/party-review.vue b/src/views/modules/user/party-review.vue index 95475d4..a9ed54b 100644 --- a/src/views/modules/user/party-review.vue +++ b/src/views/modules/user/party-review.vue @@ -236,7 +236,7 @@ export default { }) } else if (res.code !== 0) { return this.$message.error(res.msg) - } else if (this.dataForm.partyFlag === '1'){ + } else if (this.dataForm.partyFlag === '1') { this.$http.post('/app-user/user/addPerfectPoints/', postData).then(({ data: res }) => { }).catch(() => { }) this.$message({