From d1afece6a525c40a8cd0cf45993d94a3bfc626f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167@qq.com> Date: Wed, 31 Aug 2022 17:58:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=88=91=E7=9A=84=E6=94=B6?= =?UTF-8?q?=E8=97=8F=E9=97=AE=E9=A2=98=E7=9F=A5=E8=AF=86=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/problemKnowledgeBaseList.vue | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/jero-web/src/views/documentManage/collection/components/problemKnowledgeBaseList.vue b/jero-web/src/views/documentManage/collection/components/problemKnowledgeBaseList.vue index da44748fb..b998e89aa 100644 --- a/jero-web/src/views/documentManage/collection/components/problemKnowledgeBaseList.vue +++ b/jero-web/src/views/documentManage/collection/components/problemKnowledgeBaseList.vue @@ -10,8 +10,8 @@
{{$t('title')}}
- + -
{{$t('CancelCollection')}}
+
{{$t('CancelCollection')}} +
@@ -98,7 +101,8 @@ loading: false, queryParams: {}, url: { - getInfoList: '/problemKnowledgeBase/problemKnowledgeBaseEO/page' + getInfoList: '/problemKnowledgeBase/problemKnowledgeBaseCollectEO/queryCollectPageList', + deleteBatch: '/problemKnowledgeBase/problemKnowledgeBaseCollectEO/deleteBatch' } } }, @@ -107,7 +111,6 @@ }, watch: { checkboxText: function(value) { - console.log(value) this.conList.forEach(val => { val.checked = false }) @@ -159,9 +162,11 @@ this.$confirm({ content: _this.$t('BatchCancelCollection'), onOk() { - getAction('', {}).then((res) => { + let checkboxText = JSON.parse(JSON.stringify(_this.checkboxText)) + deleteAction(_this.url.deleteBatch, { ids: checkboxText.join(',') }).then((res) => { if (res.success) { _this.$message.success(_this.$t('OperationSuccessful')) + _this.checkboxText = [] _this.getList() } else { _this.$message.warning(res.message) @@ -178,7 +183,7 @@ this.$confirm({ content: _this.$t('confirmCancelCollection'), onOk() { - getAction('', {}).then((res) => { + deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => { if (res.success) { _this.$message.success(_this.$t('OperationSuccessful')) _this.getList() @@ -221,7 +226,7 @@ if (this.conList && this.conList.length > 0) { this.conList.forEach(val => { if (val.content) { - val.contentOne = this.getText(val.content) + val.content = this.getText(val.content) } }) }