全部选中样式

This commit is contained in:
670788339
2025-11-11 14:26:57 +08:00
parent e292a57b20
commit 1710e34f89

View File

@@ -513,6 +513,7 @@ export default {
totalPages: 1,
localSessionKey: this.$xpage.constants.localCourseFiltersKey,
hotTagsList: [],
isAllHotTagsSelected: true,
};
},
// 受众需要每次刷新
@@ -584,14 +585,15 @@ export default {
},
methods: {
isAllHotTagsSelected() {
return !this.hotTagsList.some(tag => tag.checked);
},
// isAllHotTagsSelected() {
// return !this.hotTagsList.some(tag => tag.checked);
// },
handleClearHotTags() {
// 清除所有热点标签的选中状态
this.hotTagsList.forEach(tag => {
tag.checked = false;
});
this.isAllHotTagsSelected = true;
// 清空course.tags
this.course.tags = '';
@@ -600,6 +602,8 @@ export default {
},
handleTagClick(item, list,type) {
console.info('切换标签 item = ' + item)
this.isAllHotTagsSelected = false;
item.checked = !item.checked;
// 更新course.tags