mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
提交
This commit is contained in:
@@ -67,11 +67,11 @@ export default {
|
|||||||
coudetail(item) {
|
coudetail(item) {
|
||||||
// let routeData = this.$router.resolve({ path: '/course/detail?id=' + item.objId });
|
// let routeData = this.$router.resolve({ path: '/course/detail?id=' + item.objId });
|
||||||
// window.open(routeData.href, '_blank');
|
// window.open(routeData.href, '_blank');
|
||||||
if(item.contentType == '20') {
|
// if(item.contentType == '20') {
|
||||||
this.$router.push({path:'/course/detail',query:{id:item.objId || item.id}})
|
this.$router.push({path:'/course/detail',query:{id:item.objId || item.id}})
|
||||||
} else {
|
// } else {
|
||||||
this.$router.push({path:'/course/micro',query:{id:item.objId || item.id}})
|
// this.$router.push({path:'/course/micro',query:{id:item.objId || item.id}})
|
||||||
}
|
// }
|
||||||
|
|
||||||
},
|
},
|
||||||
delItem(item) {
|
delItem(item) {
|
||||||
|
|||||||
@@ -141,11 +141,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(item.contentType == 20) {
|
// if(item.contentType == 20) {
|
||||||
this.$router.push({path:'/course/detail',query:{id:item.objId || item.id}})
|
this.$router.push({path:'/course/detail',query:{id:item.objId || item.id}})
|
||||||
} else {
|
// } else {
|
||||||
this.$router.push({path:'/course/micro',query:{id:item.objId || item.id}})
|
// this.$router.push({path:'/course/micro',query:{id:item.objId || item.id}})
|
||||||
}
|
// }
|
||||||
|
|
||||||
// window.open(`${this.webBaseUrl}/course/detail?id=${item.objId}`)
|
// window.open(`${this.webBaseUrl}/course/detail?id=${item.objId}`)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -52,11 +52,11 @@ import courseImage from "@/components/Course/courseImage.vue"
|
|||||||
this.$router.push({path:'/uc/study/index?id='+item.courseId});
|
this.$router.push({path:'/uc/study/index?id='+item.courseId});
|
||||||
},
|
},
|
||||||
jumpRouter(item){
|
jumpRouter(item){
|
||||||
if(item.courseType==10){
|
// if(item.courseType==10){
|
||||||
let routeData = this.$router.resolve({ path: '/course/micro?id='+item.courseId}); // , query: { id: 1 }
|
// let routeData = this.$router.resolve({ path: '/course/micro?id='+item.courseId}); // , query: { id: 1 }
|
||||||
window.open(this.webBaseUrl+routeData.href, '_blank');
|
// window.open(this.webBaseUrl+routeData.href, '_blank');
|
||||||
}
|
// }
|
||||||
if(item.courseType==20){
|
// if(item.courseType==20){
|
||||||
if(item.progress>0 && item.progress<100) {
|
if(item.progress>0 && item.progress<100) {
|
||||||
let routeData = this.$router.resolve({ path: '/course/studyindex?id='+item.courseId}); // , query: { id: 1 }
|
let routeData = this.$router.resolve({ path: '/course/studyindex?id='+item.courseId}); // , query: { id: 1 }
|
||||||
window.open(this.webBaseUrl+routeData.href, '_blank');
|
window.open(this.webBaseUrl+routeData.href, '_blank');
|
||||||
@@ -64,7 +64,7 @@ import courseImage from "@/components/Course/courseImage.vue"
|
|||||||
let routeData = this.$router.resolve({ path: '/course/detail?id='+item.courseId}); // , query: { id: 1 }
|
let routeData = this.$router.resolve({ path: '/course/detail?id='+item.courseId}); // , query: { id: 1 }
|
||||||
window.open(this.webBaseUrl+routeData.href, '_blank');
|
window.open(this.webBaseUrl+routeData.href, '_blank');
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,11 +68,11 @@
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
jumpRouter(c){
|
jumpRouter(c){
|
||||||
if(c.type==20){
|
// if(c.type==20){
|
||||||
return '/course/detail?id='+c.id
|
return '/course/detail?id='+c.id
|
||||||
}else if(c.type==10){
|
// }else if(c.type==10){
|
||||||
return '/course/micro?id='+c.id
|
// return '/course/micro?id='+c.id
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
jumpPicture(c){
|
jumpPicture(c){
|
||||||
if(c.type==20){
|
if(c.type==20){
|
||||||
|
|||||||
@@ -600,11 +600,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
this.$message.error('您还未报名');
|
this.$message.error('您还未报名');
|
||||||
if(this.courseInfo.type==10){
|
// if(this.courseInfo.type==10){
|
||||||
location.href = this.webBaseUrl + "/course/micro?id="+this.courseId;
|
// location.href = this.webBaseUrl + "/course/micro?id="+this.courseId;
|
||||||
}else{
|
// }else{
|
||||||
location.href = this.webBaseUrl + "/course/detail?id="+this.courseId;
|
location.href = this.webBaseUrl + "/course/detail?id="+this.courseId;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.message);
|
this.$message.error(res.message);
|
||||||
|
|||||||
@@ -397,11 +397,11 @@ export default {
|
|||||||
if(isNaN(item.courseType)){
|
if(isNaN(item.courseType)){
|
||||||
return `${this.webBaseUrl}/course/boeframe?id=${item.courseId}&type=${item.courseId}`;
|
return `${this.webBaseUrl}/course/boeframe?id=${item.courseId}&type=${item.courseId}`;
|
||||||
} else {
|
} else {
|
||||||
if(item.courseType==10){
|
// if(item.courseType==10){
|
||||||
return this.webBaseUrl+'/course/micro?id='+item.courseId;
|
// return this.webBaseUrl+'/course/micro?id='+item.courseId;
|
||||||
}else if(item.courseType==20){
|
// }else if(item.courseType==20){
|
||||||
return this.webBaseUrl+'/course/detail?id='+item.courseId;
|
return this.webBaseUrl+'/course/detail?id='+item.courseId;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
|
|||||||
@@ -169,11 +169,11 @@
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
continueStudy(item){
|
continueStudy(item){
|
||||||
if(item.courseType==10){
|
// if(item.courseType==10){
|
||||||
return '../course/micro?id='+item.courseId
|
// return '../course/micro?id='+item.courseId
|
||||||
}else{
|
// }else{
|
||||||
return '../course/studyindex?id='+item.courseId
|
return '../course/studyindex?id='+item.courseId
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
...mapActions({
|
...mapActions({
|
||||||
getResOwnerTree:'resOwner/getResOwnerTree',
|
getResOwnerTree:'resOwner/getResOwnerTree',
|
||||||
|
|||||||
@@ -622,7 +622,7 @@ export default {
|
|||||||
jumpDetails() {
|
jumpDetails() {
|
||||||
// this.$router.push('/course/micro');
|
// this.$router.push('/course/micro');
|
||||||
// 跳转打开新页面
|
// 跳转打开新页面
|
||||||
let routeData = this.$router.resolve({ path: '/course/micro'}); // , query: { id: 1 }
|
let routeData = this.$router.resolve({ path: '/course/detail'}); // , query: { id: 1 }
|
||||||
window.open(this.webBaseUrl+routeData.href, '_blank');
|
window.open(this.webBaseUrl+routeData.href, '_blank');
|
||||||
},
|
},
|
||||||
toExamine(row) {
|
toExamine(row) {
|
||||||
|
|||||||
@@ -269,26 +269,26 @@ export default {
|
|||||||
},
|
},
|
||||||
jumpRouter(item) {
|
jumpRouter(item) {
|
||||||
if (item.published) {
|
if (item.published) {
|
||||||
if (item.type == 10) {
|
// if (item.type == 10) {
|
||||||
// let routeData = this.$router.resolve({ path: '/course/micro?id='+item.id});
|
// let routeData = this.$router.resolve({ path: '/course/micro?id='+item.id});
|
||||||
// window.open(this.webBaseUrl+routeData.href, '_blank');
|
// window.open(this.webBaseUrl+routeData.href, '_blank');
|
||||||
// window.open(this.webBaseUrl + '/course/micro?id=' + item.id, '_blank');
|
// window.open(this.webBaseUrl + '/course/micro?id=' + item.id, '_blank');
|
||||||
this.$router.push({path:'/course/micro',query:{id:item.id}})
|
// this.$router.push({path:'/course/micro',query:{id:item.id}})
|
||||||
}
|
// }
|
||||||
if (item.type == 20) {
|
// if (item.type == 20) {
|
||||||
// let routeData = this.$router.resolve({ path: '/course/detail?id='+item.id});
|
// let routeData = this.$router.resolve({ path: '/course/detail?id='+item.id});
|
||||||
// window.open(this.webBaseUrl+routeData.href, '_blank');
|
// window.open(this.webBaseUrl+routeData.href, '_blank');
|
||||||
// window.open(this.webBaseUrl + '/course/detail?id=' + item.id, '_blank');
|
// window.open(this.webBaseUrl + '/course/detail?id=' + item.id, '_blank');
|
||||||
this.$router.push({path:'/course/detail',query:{id:item.id}})
|
this.$router.push({path:'/course/detail',query:{id:item.id}})
|
||||||
}
|
// }
|
||||||
} else {
|
} else {
|
||||||
if (item.type == 10) {
|
// if (item.type == 10) {
|
||||||
// window.open(`${this.webBaseUrl}/course/microPreview?id=${item.id}`);
|
// // window.open(`${this.webBaseUrl}/course/microPreview?id=${item.id}`);
|
||||||
this.$router.push({path:'/course/microPreview',query:{id:item.id}})
|
// this.$router.push({path:'/course/microPreview',query:{id:item.id}})
|
||||||
} else {
|
// } else {
|
||||||
// window.open(`${this.webBaseUrl}/course/rePreview?id=${item.id}`);
|
// window.open(`${this.webBaseUrl}/course/rePreview?id=${item.id}`);
|
||||||
this.$router.push({path:'/course/rePreview',query:{id:item.id}})
|
this.$router.push({path:'/course/rePreview',query:{id:item.id}})
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
findList() {
|
findList() {
|
||||||
|
|||||||
@@ -311,12 +311,11 @@ export default {
|
|||||||
},
|
},
|
||||||
//预览跳转页面
|
//预览跳转页面
|
||||||
toPreview(row) {
|
toPreview(row) {
|
||||||
if(row.type == 10) {
|
// if(row.type == 10) {
|
||||||
|
// window.open(`${this.webBaseUrl}/course/microPreview?id=${row.id}`);
|
||||||
window.open(`${this.webBaseUrl}/course/microPreview?id=${row.id}`);
|
// } else{
|
||||||
} else{
|
|
||||||
window.open(`${this.webBaseUrl}/course/rePreview?id=${row.id}`);
|
window.open(`${this.webBaseUrl}/course/rePreview?id=${row.id}`);
|
||||||
}
|
// }
|
||||||
|
|
||||||
},
|
},
|
||||||
// 直接审核
|
// 直接审核
|
||||||
@@ -401,7 +400,7 @@ export default {
|
|||||||
},
|
},
|
||||||
jumpDetails() {
|
jumpDetails() {
|
||||||
// 跳转打开新页面
|
// 跳转打开新页面
|
||||||
let routeData = this.$router.resolve({ path: '/course/micro'});
|
let routeData = this.$router.resolve({ path: '/course/detail'});
|
||||||
window.open(this.webBaseUrl+routeData.href, '_blank');
|
window.open(this.webBaseUrl+routeData.href, '_blank');
|
||||||
},
|
},
|
||||||
toExamine(row) {
|
toExamine(row) {
|
||||||
|
|||||||
@@ -432,12 +432,11 @@ export default {
|
|||||||
},
|
},
|
||||||
//预览跳转页面
|
//预览跳转页面
|
||||||
toPreview(row) {
|
toPreview(row) {
|
||||||
if(row.type == 10) {
|
// if(row.type == 10) {
|
||||||
|
// window.open(`${this.webBaseUrl}/course/microPreview?id=${row.id}`);
|
||||||
window.open(`${this.webBaseUrl}/course/microPreview?id=${row.id}`);
|
// } else{
|
||||||
} else{
|
|
||||||
window.open(`${this.webBaseUrl}/course/rePreview?id=${row.id}`);
|
window.open(`${this.webBaseUrl}/course/rePreview?id=${row.id}`);
|
||||||
}
|
// }
|
||||||
|
|
||||||
},
|
},
|
||||||
//直接审核
|
//直接审核
|
||||||
@@ -517,7 +516,7 @@ export default {
|
|||||||
},
|
},
|
||||||
jumpDetails() {
|
jumpDetails() {
|
||||||
// 跳转打开新页面
|
// 跳转打开新页面
|
||||||
let routeData = this.$router.resolve({ path: '/course/micro'});
|
let routeData = this.$router.resolve({ path: '/course/detail'});
|
||||||
window.open(this.webBaseUrl+routeData.href, '_blank');
|
window.open(this.webBaseUrl+routeData.href, '_blank');
|
||||||
},
|
},
|
||||||
toExamine(row) {
|
toExamine(row) {
|
||||||
|
|||||||
@@ -141,6 +141,9 @@
|
|||||||
this.replysData.reply = item.replysList;
|
this.replysData.reply = item.replysList;
|
||||||
},
|
},
|
||||||
addReplys() {
|
addReplys() {
|
||||||
|
if(this.replysContent.trim().length == 0) {
|
||||||
|
return this.$message.warning('请填写内容!');
|
||||||
|
}
|
||||||
this.replysData.reply.push({
|
this.replysData.reply.push({
|
||||||
content: this.replysContent,
|
content: this.replysContent,
|
||||||
authorInfo:this.userInfo,
|
authorInfo:this.userInfo,
|
||||||
@@ -176,6 +179,9 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
add() {
|
add() {
|
||||||
|
if(this.textarea.trim().length == 0) {
|
||||||
|
return this.$message.warning('请填写内容!');
|
||||||
|
}
|
||||||
let data = {
|
let data = {
|
||||||
content:this.textarea,//留言内容
|
content:this.textarea,//留言内容
|
||||||
aid:this.pageId,// 要留言的人的id
|
aid:this.pageId,// 要留言的人的id
|
||||||
|
|||||||
@@ -847,16 +847,16 @@ export default {
|
|||||||
jumpRouter(item) {
|
jumpRouter(item) {
|
||||||
//console.log(item.type, "item.type");
|
//console.log(item.type, "item.type");
|
||||||
// return console.log(id,type,"fihkj1")
|
// return console.log(id,type,"fihkj1")
|
||||||
if (item.type == 20) {
|
// if (item.type == 20) {
|
||||||
//录播课
|
//录播课
|
||||||
// window.open(`${this.webBaseUrl}/course/detail?id=${id}`)
|
// window.open(`${this.webBaseUrl}/course/detail?id=${id}`)
|
||||||
this.$router.push(`/course/detail?id=${item.id}`);
|
this.$router.push(`/course/detail?id=${item.id}`);
|
||||||
}
|
// }
|
||||||
if (item.type == 10) {
|
// if (item.type == 10) {
|
||||||
//微课
|
//微课
|
||||||
// window.open(`${this.webBaseUrl}/course/micro?id=${id}`)
|
// window.open(`${this.webBaseUrl}/course/micro?id=${id}`)
|
||||||
this.$router.push(`/course/micro?id=${item.id}`);
|
// this.$router.push(`/course/micro?id=${item.id}`);
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
jumpRouter2(item) {
|
jumpRouter2(item) {
|
||||||
// console.log(item,"土豪包括九年")
|
// console.log(item,"土豪包括九年")
|
||||||
@@ -865,16 +865,16 @@ export default {
|
|||||||
|
|
||||||
//console.log(item.type,type,'item.type');
|
//console.log(item.type,type,'item.type');
|
||||||
// return console.log(id,type,"fihkj1")
|
// return console.log(id,type,"fihkj1")
|
||||||
if (type == 20) {
|
// if (type == 20) {
|
||||||
//录播课
|
//录播课
|
||||||
// window.open(`${this.webBaseUrl}/course/detail?id=${id}`)
|
// window.open(`${this.webBaseUrl}/course/detail?id=${id}`)
|
||||||
this.$router.push(`/course/detail?id=${id}`);
|
this.$router.push(`/course/detail?id=${id}`);
|
||||||
}
|
// }
|
||||||
if (type == 10) {
|
// if (type == 10) {
|
||||||
//微课
|
//微课
|
||||||
// window.open(`${this.webBaseUrl}/course/micro?id=${id}`)
|
// window.open(`${this.webBaseUrl}/course/micro?id=${id}`)
|
||||||
this.$router.push(`/course/micro?id=${id}`);
|
// this.$router.push(`/course/micro?id=${id}`);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -287,11 +287,11 @@ export default {
|
|||||||
} else if (item.refType == 4||item.refType == 5) {
|
} else if (item.refType == 4||item.refType == 5) {
|
||||||
return this.webBaseUrl + '/qa/answer?id=' + item.refId;
|
return this.webBaseUrl + '/qa/answer?id=' + item.refId;
|
||||||
} else {
|
} else {
|
||||||
if (item.conType == 10) {
|
// if (item.conType == 10) {
|
||||||
return this.webBaseUrl + '/course/micro?id=' + item.refId;
|
// return this.webBaseUrl + '/course/micro?id=' + item.refId;
|
||||||
} else if (item.conType == 20) {
|
// } else if (item.conType == 20) {
|
||||||
return this.webBaseUrl + '/course/detail?id=' + item.refId;
|
return this.webBaseUrl + '/course/detail?id=' + item.refId;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -312,16 +312,16 @@ computed: {
|
|||||||
if(item.isOld){
|
if(item.isOld){
|
||||||
location.href=`${this.webBaseUrl}/course/boeframe?id=${item.id}&type=${item.courseType}`
|
location.href=`${this.webBaseUrl}/course/boeframe?id=${item.id}&type=${item.courseType}`
|
||||||
} else {
|
} else {
|
||||||
if(item.courseType==10){
|
// if(item.courseType==10){
|
||||||
this.$router.push({path:'/course/micro',query:{id:item.courseId}})
|
// this.$router.push({path:'/course/micro',query:{id:item.courseId}})
|
||||||
}
|
// }
|
||||||
if(item.courseType==20){
|
// if(item.courseType==20){
|
||||||
if(item.progress>0 && item.progress<100) {
|
if(item.progress>0 && item.progress<100) {
|
||||||
this.$router.push({path:'/course/studyindex',query:{id:item.courseId}})
|
this.$router.push({path:'/course/studyindex',query:{id:item.courseId}})
|
||||||
} else {
|
} else {
|
||||||
this.$router.push({path:'/course/detail',query:{id:item.courseId}})
|
this.$router.push({path:'/course/detail',query:{id:item.courseId}})
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -95,14 +95,14 @@ export default {
|
|||||||
this.params.courseType = ''
|
this.params.courseType = ''
|
||||||
},
|
},
|
||||||
jumpRouter(item) {
|
jumpRouter(item) {
|
||||||
if (item.courseType == 10) {
|
// if (item.courseType == 10) {
|
||||||
let routeData = this.$router.resolve({path: "/course/micro?id=" + item.courseId});
|
// let routeData = this.$router.resolve({path: "/course/micro?id=" + item.courseId});
|
||||||
window.open(this.webBaseUrl+routeData.href, "_blank");
|
// window.open(this.webBaseUrl+routeData.href, "_blank");
|
||||||
}
|
// }
|
||||||
if (item.courseType == 20) {
|
// if (item.courseType == 20) {
|
||||||
let routeData = this.$router.resolve({ path: "/course/detail?id=" + item.courseId}); // , query: { id: 1 }
|
let routeData = this.$router.resolve({ path: "/course/detail?id=" + item.courseId}); // , query: { id: 1 }
|
||||||
window.open(this.webBaseUrl+routeData.href, "_blank");
|
window.open(this.webBaseUrl+routeData.href, "_blank");
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
this.page.pageSize = val;
|
this.page.pageSize = val;
|
||||||
|
|||||||
@@ -660,11 +660,11 @@ export default {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('您还未报名');
|
this.$message.error('您还未报名');
|
||||||
if (this.courseInfo.type == 10) {
|
// if (this.courseInfo.type == 10) {
|
||||||
location.href = this.webBaseUrl + '/course/micro?id=' + this.courseId;
|
// location.href = this.webBaseUrl + '/course/micro?id=' + this.courseId;
|
||||||
} else {
|
// } else {
|
||||||
location.href = this.webBaseUrl + '/course/detail?id=' + this.courseId;
|
location.href = this.webBaseUrl + '/course/detail?id=' + this.courseId;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.message);
|
this.$message.error(res.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user