diff --git a/.env.development b/.env.development index 4dca7e8d..78a7b3f5 100644 --- a/.env.development +++ b/.env.development @@ -34,6 +34,7 @@ VUE_APP_LOGIN_URL='/pc/login' VUE_APP_PUBLIC_PATH='/pc' VUE_APP_MANAGER_PATH='/manage' VUE_APP_STUDENT_PATH='/fe-student' +VUE_APP_MANAGER_API_PATH='/manageApi' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.preview b/.env.preview index d08f2d87..dcd2d46a 100644 --- a/.env.preview +++ b/.env.preview @@ -31,6 +31,7 @@ VUE_APP_FILE_RELATIVE_PATH = '/upload' VUE_APP_PUBLIC_PATH='/pc-release' VUE_APP_MANAGER_PATH='/manage-release' VUE_APP_STUDENT_PATH='/fe-student-release' +VUE_APP_MANAGER_API_PATH='/manageApi-release' # 登录地址 VUE_APP_LOGIN_URL='https://u.boe.com/web-release/' diff --git a/.env.production b/.env.production index 195d327e..d71bcb2e 100644 --- a/.env.production +++ b/.env.production @@ -31,6 +31,7 @@ VUE_APP_FILE_RELATIVE_PATH = '/upload' VUE_APP_PUBLIC_PATH='/pc' VUE_APP_MANAGER_PATH='/manage' VUE_APP_STUDENT_PATH='/fe-student' +VUE_APP_MANAGER_API_PATH='/manageApi' # 登录地址 VUE_APP_LOGIN_URL='https://u.boe.com/web/' diff --git a/.env.testing b/.env.testing index be83a8e2..b22a2512 100644 --- a/.env.testing +++ b/.env.testing @@ -31,6 +31,7 @@ VUE_APP_FILE_RELATIVE_PATH = '/upload' VUE_APP_PUBLIC_PATH='/pc' VUE_APP_MANAGER_PATH='/manage' VUE_APP_STUDENT_PATH='/fe-student' +VUE_APP_MANAGER_API_PATH='/manageApi' # 登录地址 VUE_APP_LOGIN_URL='https://u-pre.boe.com/web/' diff --git a/src/views/exam/TestPaper.vue b/src/views/exam/TestPaper.vue index 544d918d..9c07c24a 100644 --- a/src/views/exam/TestPaper.vue +++ b/src/views/exam/TestPaper.vue @@ -431,6 +431,11 @@ export default { // if(this.resOwnerListMap.length == 0) { // this.$store.dispatch("getList"); // } + //检查是否存在 + let addnew=this.$route.query.addnew; + if(addnew){ + this.addPaper(); + } }, methods: { showEditPaper(row){ diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 2f1ecba6..f2dd8ff7 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -98,13 +98,13 @@
- -
+ +
授课时间:{{ cinfo.startTime }}
- +
@@ -732,12 +732,15 @@ export default { //window.open(`${this.webBaseUrl}/course/boeframe?id=${item.id}&type=${item.type}`); }else if(item.source == 3){ //跳转到管理系统的页面 + let manageApi=process.env.VUE_APP_MANAGER_API_PATH; + let studentPath=process.env.VUE_APP_STUDENT_PATH; if (item.type == 30){ //线下课,面授课 let params=encodeURIComponent('courseId='+courseId); - this.$router.push('/forward?to=/fe-student/faceteach¶ms='+params); + this.$router.push('/forward?to='+manageApi+'/stu/project/redirectDetail¶ms='+params); }else if(item.type==40){ //学习项目 let params=encodeURIComponent('projectId='+courseId); - this.$router.push('/forward?to=/fe-student/projectdetails¶ms='+params); + this.$router.push('/forward?to='+studentPath+'/projectdetails¶ms='+params); + //this.$router.push('/forward?to='+manageApi+'/stu/project/redirectDetail¶ms='+params); } } else { if (item.type == 10) { @@ -865,7 +868,7 @@ export default { } }); - + this.courseList.push(...res.result.list); this.moreState = 1; } else {