mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 09:56:42 +08:00
全部选中样式
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user