修改禅道已知bug
对接我的收藏的问题知识库
This commit is contained in:
+7
-7
@@ -35,9 +35,9 @@
|
||||
<div class="box-content">
|
||||
<a-checkbox-group style="width: 100%" :defaultChecked="checkboxText"
|
||||
@change="checkboxTextChange" v-model="checkboxText">
|
||||
<div v-for="item in conList" :key="item.id">
|
||||
<div v-for="item in conList" :key="item.collectEO.id">
|
||||
<div style="margin-bottom: 10px;position: relative">
|
||||
<a-checkbox :value="item.id" class="checkbox-left"></a-checkbox>
|
||||
<a-checkbox :value="item.collectEO.id" class="checkbox-left"></a-checkbox>
|
||||
<div class="text-text-right"
|
||||
@click="checkedClick(item)"
|
||||
:class="{ 'null-input':item.checked }">
|
||||
@@ -117,7 +117,7 @@
|
||||
if (value.length > 0) {
|
||||
this.conList.forEach(val => {
|
||||
value.forEach(res => {
|
||||
if (res === val.id) {
|
||||
if (res === val.collectEO.id) {
|
||||
val.checked = true
|
||||
}
|
||||
})
|
||||
@@ -183,7 +183,7 @@
|
||||
this.$confirm({
|
||||
content: _this.$t('confirmCancelCollection'),
|
||||
onOk() {
|
||||
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
|
||||
deleteAction(_this.url.deleteBatch, { ids: val.collectEO.id }).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.getList()
|
||||
@@ -216,13 +216,13 @@
|
||||
}
|
||||
this.loading = true
|
||||
getAction(this.url.getInfoList, query).then((res) => {
|
||||
if (res.success) {
|
||||
if (res.success && res.result) {
|
||||
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||
this.pageNo = 1
|
||||
this.getList()
|
||||
return
|
||||
}
|
||||
this.conList = res.result.records
|
||||
this.conList = res.result ? res.result.records : []
|
||||
if (this.conList && this.conList.length > 0) {
|
||||
this.conList.forEach(val => {
|
||||
if (val.content) {
|
||||
@@ -233,7 +233,7 @@
|
||||
if (this.checkboxList && this.checkboxList.length > 0) {
|
||||
let contentList = []
|
||||
for (let j = 0; j < this.conList.length; j++) {
|
||||
contentList.push(this.conList[j].id)
|
||||
contentList.push(this.conList[j].collectEO.id)
|
||||
}
|
||||
this.checkboxList = this.checkboxList.filter(val => {
|
||||
return !contentList.join(',').includes(val)
|
||||
|
||||
Reference in New Issue
Block a user