mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 21:06:42 +08:00
Merge branch 'master-20251023-tag' into test1024
This commit is contained in:
@@ -159,6 +159,18 @@
|
|||||||
<span v-if="cinfo.type == 40" class="course-type-left">学习项目</span>
|
<span v-if="cinfo.type == 40" class="course-type-left">学习项目</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="course-title two-line-ellipsis" :title="cinfo.title" v-html="cinfo.courseName"></div>
|
<div class="course-title two-line-ellipsis" :title="cinfo.title" v-html="cinfo.courseName"></div>
|
||||||
|
<!-- 添加标签显示区域 -->
|
||||||
|
<div class="course-tags" v-if="cinfo.tagsList && cinfo.tagsList.length > 0">
|
||||||
|
<el-tag
|
||||||
|
v-for="(tag, tagIndex) in cinfo.tagsList"
|
||||||
|
:key="tagIndex"
|
||||||
|
size="mini"
|
||||||
|
type="info" style="margin: 2px 2px; border-radius: 2px;"
|
||||||
|
:style="{ color: isTagMatched(tag) ? '#387DF7' : '#333333' }"
|
||||||
|
>
|
||||||
|
{{ tag }}
|
||||||
|
</el-tag>
|
||||||
|
</div>
|
||||||
<!-- 关键字 -->
|
<!-- 关键字 -->
|
||||||
<div class="keywordInfo-every">
|
<div class="keywordInfo-every">
|
||||||
<div class="keywordInfo" v-for="(keyword, index) in cinfo.keywordsActive" :key="index">
|
<div class="keywordInfo" v-for="(keyword, index) in cinfo.keywordsActive" :key="index">
|
||||||
@@ -616,7 +628,12 @@ export default {
|
|||||||
this.navTitle = []
|
this.navTitle = []
|
||||||
this.searchData();
|
this.searchData();
|
||||||
},
|
},
|
||||||
|
isTagMatched(tag) {
|
||||||
|
// 检查stagList中是否有匹配的标签
|
||||||
|
return this.stagList.some(searchTag =>
|
||||||
|
searchTag.tagName === tag || searchTag.name === tag
|
||||||
|
);
|
||||||
|
},
|
||||||
// 导航全选
|
// 导航全选
|
||||||
handleTypeAllClick(t) {
|
handleTypeAllClick(t) {
|
||||||
if (t == 1) {
|
if (t == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user