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