选中样式

This commit is contained in:
670788339
2025-11-11 14:15:01 +08:00
parent de0ef5d501
commit cfa7d0a9aa

View File

@@ -513,6 +513,7 @@ export default {
totalPages: 1,
localSessionKey: this.$xpage.constants.localCourseFiltersKey,
hotTagsList: [],
isAllHotTagsSelected: true,
};
},
// 受众需要每次刷新
@@ -592,6 +593,7 @@ export default {
this.hotTagsList.forEach(tag => {
tag.checked = false;
});
this.isAllHotTagsSelected = true;
// 清空course.tags
this.course.tags = '';
@@ -600,8 +602,8 @@ export default {
},
handleTagClick(item, list,type) {
console.info('切换标签 item = ' + item)
this.isAllHotTagsSelected = false;
item.checked = !item.checked;
// 更新course.tags
const checkedTags = this.hotTagsList.filter(tag => tag.checked);
let tagIds = checkedTags.map(tag => tag.id).join(',');