mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
还原
This commit is contained in:
@@ -459,9 +459,9 @@ export default {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// 添加计算是否所有热点标签都未选中(即"全部"选中状态)
|
// 添加计算是否所有热点标签都未选中(即"全部"选中状态)
|
||||||
// isAllHotTagsSelected() {
|
isAllHotTagsSelected() {
|
||||||
// return !this.hotTagsList.some(tag => tag.checked);
|
return !this.hotTagsList.some(tag => tag.checked);
|
||||||
// }
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -528,7 +528,7 @@ export default {
|
|||||||
hotList: [],
|
hotList: [],
|
||||||
totalPages: 1,
|
totalPages: 1,
|
||||||
localSessionKey: this.$xpage.constants.localCourseFiltersKey,
|
localSessionKey: this.$xpage.constants.localCourseFiltersKey,
|
||||||
isAllHotTagsSelected: true,
|
// isAllHotTagsSelected: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
// 受众需要每次刷新
|
// 受众需要每次刷新
|
||||||
@@ -774,7 +774,6 @@ export default {
|
|||||||
this.hotTagsList.forEach(tag => {
|
this.hotTagsList.forEach(tag => {
|
||||||
tag.checked = false;
|
tag.checked = false;
|
||||||
});
|
});
|
||||||
this.isAllHotTagsSelected = true;
|
|
||||||
// 清空course.tags
|
// 清空course.tags
|
||||||
this.course.tags = '';
|
this.course.tags = '';
|
||||||
|
|
||||||
@@ -990,7 +989,6 @@ export default {
|
|||||||
},
|
},
|
||||||
//点击标签
|
//点击标签
|
||||||
handleTagClick(item, list,type) {
|
handleTagClick(item, list,type) {
|
||||||
this.isAllHotTagsSelected = false;
|
|
||||||
|
|
||||||
item.checked = !item.checked;
|
item.checked = !item.checked;
|
||||||
|
|
||||||
@@ -998,7 +996,7 @@ export default {
|
|||||||
const checkedTags = this.hotTagsList.filter(tag => tag.checked);
|
const checkedTags = this.hotTagsList.filter(tag => tag.checked);
|
||||||
let tagIds = checkedTags.map(tag => tag.id).join(',');
|
let tagIds = checkedTags.map(tag => tag.id).join(',');
|
||||||
this.course.tags = tagIds;
|
this.course.tags = tagIds;
|
||||||
this.$forceUpdate();
|
|
||||||
// 强制触发stagList重新计算
|
// 强制触发stagList重新计算
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.searchData(type);
|
this.searchData(type);
|
||||||
|
|||||||
Reference in New Issue
Block a user