mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 23:06:45 +08:00
合并后提交
This commit is contained in:
@@ -285,7 +285,7 @@ export default {
|
||||
homeworkInfo: {},
|
||||
examInfo: {},
|
||||
assessInfo: {},
|
||||
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
|
||||
fileBaseUrl: this.$Constants.fileBaseUrl,
|
||||
btnLoading: false,
|
||||
curCFile:{},//课件内容
|
||||
coursewareInfo: {
|
||||
|
||||
@@ -323,7 +323,7 @@ export default {
|
||||
},
|
||||
contentDataShow:true,//预览页面和课程内容的切换
|
||||
isEdit: true,
|
||||
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
|
||||
fileBaseUrl: this.$Constants.fileBaseUrl,
|
||||
contentData: {},
|
||||
curCFile:{},//课件内容
|
||||
getType: getType,
|
||||
|
||||
@@ -361,7 +361,7 @@
|
||||
data(){
|
||||
return {
|
||||
converStatus:4,
|
||||
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
|
||||
fileBaseUrl:this.$Constants.fileBaseUrl,
|
||||
curPdfPath:'',
|
||||
curCFile:{},//当前课件的内容
|
||||
comTypes:[
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<span>{{ item.title }}</span>
|
||||
</div>
|
||||
<div class="uc-course-text">讲师:{{ item.authorName}}</div>
|
||||
<div class="uc-course-text">收藏日期:{{ item.time }}</div>
|
||||
<div class="uc-course-text">收藏时间:{{ item.time || item.favoritesTime}}</div>
|
||||
</div>
|
||||
<div class="flex-between">
|
||||
<el-button v-if="remove" @click.stop="delItem(item)" type="text" icon="el-icon-remove" style="color:#8590A6;font-size:14px;">
|
||||
@@ -75,7 +75,12 @@ export default {
|
||||
coudetail(item) {
|
||||
// let routeData = this.$router.resolve({ path: '/course/detail?id=' + item.objId });
|
||||
// window.open(routeData.href, '_blank');
|
||||
this.$router.push({path:'/course/detail',query:{id:item.objId}})
|
||||
if(item.contentType == '20') {
|
||||
this.$router.push({path:'/course/detail',query:{id:item.objId || item.id}})
|
||||
} else {
|
||||
this.$router.push({path:'/course/micro',query:{id:item.objId || item.id}})
|
||||
}
|
||||
|
||||
},
|
||||
delItem(item) {
|
||||
this.$confirm('您确定要删除所选收藏吗?', '删除提示', {
|
||||
|
||||
@@ -106,14 +106,30 @@ export default {
|
||||
return obj;
|
||||
},
|
||||
jumpRouter(item){
|
||||
if(this.type!='myShare'){
|
||||
if(item.type){
|
||||
if(this.type!='myShare'){
|
||||
apiShares.updateIsRead(item.shareId).then(res=>{
|
||||
if(res.status==200){
|
||||
this.$emit('confirm',item)
|
||||
}
|
||||
})
|
||||
}
|
||||
}else{
|
||||
if(this.type!='myShare'){
|
||||
apiShares.updateIsRead(item.id).then(res=>{
|
||||
if(res.status==200){
|
||||
this.$emit('confirm',item)
|
||||
}
|
||||
})
|
||||
}
|
||||
this.$router.push({path:'/course/detail',query:{id:item.objId}})
|
||||
}
|
||||
|
||||
if(item.contentType == 20) {
|
||||
this.$router.push({path:'/course/detail',query:{id:item.objId || item.id}})
|
||||
} else {
|
||||
this.$router.push({path:'/course/micro',query:{id:item.objId || item.id}})
|
||||
}
|
||||
|
||||
// window.open(`${this.webBaseUrl}/course/detail?id=${item.objId}`)
|
||||
},
|
||||
},
|
||||
|
||||
@@ -562,7 +562,7 @@
|
||||
courseFileShow:false,
|
||||
curContent:{id:'',contentType:0,contenRefId:''},
|
||||
curCFile:{},//当前课件的内容
|
||||
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
|
||||
fileBaseUrl:this.$Constants.fileBaseUrl,
|
||||
imageShowUrl: '',
|
||||
activeName: 'courseware',
|
||||
getType: getType,
|
||||
|
||||
Reference in New Issue
Block a user