mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
加一个是否已删除的值
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<course-image width="254px" height="144px" :course="item.info"></course-image>
|
||||
</div>
|
||||
<div class="data-cen pointer" @click="jumpDetail(item)">
|
||||
<h6 class="course-tit portal-title-tow">{{item.info.courseName || item.contentInfo}}
|
||||
<h6 class="course-tit portal-title-tow">{{item.info.courseName || item.contentInfo}}
|
||||
<span class="sysType-name" v-if="item.info.sysType1 !='' && item.info.sysType1 != 0">{{sysTypeName(item.info.sysType1)}}</span>
|
||||
<span class="sysType-name" v-if="item.info.sysType2 !='' && item.info.sysType2 != 0">{{sysTypeName(item.info.sysType2)}}</span>
|
||||
<span class="sysType-name" v-if="item.info.sysType3 !='' && item.info.sysType3 != 0">{{sysTypeName(item.info.sysType3)}}</span>
|
||||
@@ -96,8 +96,9 @@
|
||||
},
|
||||
jumpDetail(data) {
|
||||
if(!data.contentId){
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
this.$router.push({ path: '/course/detail?id=', query: { id: data.contentId } });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,6 +230,7 @@
|
||||
const noReapetIds = [...new Set(ids)];
|
||||
res.result.list.forEach(item=>{
|
||||
item.info = {};
|
||||
item.deleted=false;
|
||||
item.authorInfo = {
|
||||
aid: "",
|
||||
name: "",
|
||||
@@ -502,6 +503,7 @@
|
||||
res.result.some(con => {
|
||||
if (con.courseId == item.contentId) {
|
||||
item.info = con;
|
||||
item.deleted=con.deleted;
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user