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;"
|
class="option-item" style="font-weight: bold; padding-top: 2px;"
|
||||||
v-for="tag in hotTagsList"
|
v-for="tag in hotTagsList"
|
||||||
:key="tag.id"
|
:key="tag.id"
|
||||||
@click="handleTagClick(tag, hotTagsList, 1)"
|
@click="handleTypeClick(tag, hotTagsList, 1)"
|
||||||
:class="{ 'option-active': tag.checked }"
|
:class="{ 'option-active': tag.checked }"
|
||||||
>
|
>
|
||||||
<span>{{tag.tagName}}</span>
|
<span>{{tag.tagName}}</span>
|
||||||
@@ -810,13 +810,16 @@ export default {
|
|||||||
},
|
},
|
||||||
// 导航切换(全部、内部专享、外部精选)
|
// 导航切换(全部、内部专享、外部精选)
|
||||||
handleTypeClick(item, list) {
|
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=>{
|
// list.forEach(row=>{
|
||||||
row.checked=false;
|
// row.checked=false;
|
||||||
})
|
// })
|
||||||
item.checked=true;
|
// item.checked=true;
|
||||||
this.searchData();
|
// this.searchData();
|
||||||
},
|
},
|
||||||
//三级分类
|
//三级分类
|
||||||
handleOptionClick(item, level, list) {
|
handleOptionClick(item, level, list) {
|
||||||
@@ -1217,6 +1220,7 @@ export default {
|
|||||||
delete params.userId
|
delete params.userId
|
||||||
params.aid = userId
|
params.aid = userId
|
||||||
params.sysType = this.courseChosen
|
params.sysType = this.courseChosen
|
||||||
|
params.tags = this.
|
||||||
|
|
||||||
console.log(`params`, params)
|
console.log(`params`, params)
|
||||||
await qualityPageList(params).then(res => {
|
await qualityPageList(params).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user