对接我的收藏问题知识库

This commit is contained in:
范强强
2022-08-31 17:58:01 +08:00
parent 1926a9b10f
commit d1afece6a5
@@ -10,8 +10,8 @@
<div class="title-text" :title="$t('title')">
<span>{{$t('title')}}</span>
</div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
v-model="queryParams.title"></a-input>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
v-model="queryParams.title"></j-input>
</div>
</a-col>
<span style="float: right;overflow: hidden;margin-right: 11px"
@@ -60,7 +60,10 @@
</div>
<!-- </a-tooltip>-->
</div>
<div @click="CancelCollectionClick" class="text-text-right-text">{{$t('CancelCollection')}}</div>
<div @click="CancelCollectionClick(item)"
:title="$t('CancelCollection')"
class="text-text-right-text">{{$t('CancelCollection')}}
</div>
</div>
</div>
</a-checkbox-group>
@@ -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)
}
})
}