mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-23 17:55:37 +08:00
调试
This commit is contained in:
@@ -106,7 +106,7 @@
|
||||
class="option-item" style="font-weight: bold; padding-top: 2px;"
|
||||
v-for="tag in hotTagsList"
|
||||
:key="tag.id"
|
||||
@click="handleTagClick(tag, hotTagsList, 1)"
|
||||
@click="handleTypeClick(tag, hotTagsList, 1)"
|
||||
:class="{ 'option-active': tag.checked }"
|
||||
>
|
||||
<span>{{tag.tagName}}</span>
|
||||
@@ -810,13 +810,16 @@ export default {
|
||||
},
|
||||
// 导航切换(全部、内部专享、外部精选)
|
||||
handleTypeClick(item, list) {
|
||||
// item.checked = !item.checked;
|
||||
item.checked = !item.checked;
|
||||
const checkedTags = this.hotTagsList.filter(tag => tag.checked);
|
||||
let tagIds = checkedTags.map(tag => tag.id).join(',');
|
||||
this.course.tags = tagIds;
|
||||
//使用上面一行是可以多选,使用下面是单选
|
||||
list.forEach(row=>{
|
||||
row.checked=false;
|
||||
})
|
||||
item.checked=true;
|
||||
this.searchData();
|
||||
// list.forEach(row=>{
|
||||
// row.checked=false;
|
||||
// })
|
||||
// item.checked=true;
|
||||
// this.searchData();
|
||||
},
|
||||
//三级分类
|
||||
handleOptionClick(item, level, list) {
|
||||
@@ -1217,6 +1220,7 @@ export default {
|
||||
delete params.userId
|
||||
params.aid = userId
|
||||
params.sysType = this.courseChosen
|
||||
params.tags = this.
|
||||
|
||||
console.log(`params`, params)
|
||||
await qualityPageList(params).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user