|
@@ -799,12 +799,24 @@ export default {
|
|
|
this.$refs.homepageLRef.getadmincocoFlow();
|
|
this.$refs.homepageLRef.getadmincocoFlow();
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
},
|
|
},
|
|
|
|
|
+ getUrlParam(urlStr, urlKey) {
|
|
|
|
|
+ const url = new URL(urlStr) // 字符串转换成url格式
|
|
|
|
|
+ const paramsStr = url.search.slice(1) // 获取'?'后面的参数字符串
|
|
|
|
|
+ const paramsArr = paramsStr.split('&') // 分割'&'字符 获得参数数组
|
|
|
|
|
+ for (let i = 0; i < paramsArr.length; i++) {
|
|
|
|
|
+ const tempArr = paramsArr[i].split('=')
|
|
|
|
|
+ if (tempArr[0] === urlKey) {
|
|
|
|
|
+ return tempArr[1]
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
console.log("重新获取数据");
|
|
console.log("重新获取数据");
|
|
|
- console.log('this.$route.query.courseId',this.$route.query.courseId);
|
|
|
|
|
- console.log('this.$route.query.cocoNoteType',this.$route.query.cocoNoteType);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ console.log('this.$route.query.courseId',this.$route.query.courseid);
|
|
|
|
|
+ let pagetype = this.getUrlParam(window.parent.location.href, 'type');
|
|
|
|
|
+ console.log('pagetype',pagetype);
|
|
|
|
|
|
|
|
if (
|
|
if (
|
|
|
!this.roleUser.cclassid &&
|
|
!this.roleUser.cclassid &&
|
|
@@ -817,7 +829,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
// this.getMsg()
|
|
// this.getMsg()
|
|
|
// 跨学科app跳转
|
|
// 跨学科app跳转
|
|
|
- if(this.cocoNoteType == 'coconote'){
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if(pagetype === 'coconote'){
|
|
|
this.cocoNoteif()
|
|
this.cocoNoteif()
|
|
|
return
|
|
return
|
|
|
}else if (this.courseId) {
|
|
}else if (this.courseId) {
|