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)
}
})
}