From 3a5a6217fcfdcc14635403ca6d2e1c9e1715de98 Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 13 Dec 2022 20:16:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E7=9A=84=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 7 +++++++ src/views/Forward.vue | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/views/Forward.vue diff --git a/src/router/index.js b/src/router/index.js index 8bbc5bb2..6abb9bea 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -39,6 +39,13 @@ export const constantRoutes = [{ name: 'index', meta: { title: '首页', icon: 'dashboard', noCache: true, affix: false }, }, +{ + path: '/forward', + hidden: true, + component: (resolve) => require(['@/views/Forward'], resolve), + name: 'forward', + meta: { title: '详细信息', icon: 'dashboard', noCache: true, affix: false }, +}, { path: '/course', hidden: true, diff --git a/src/views/Forward.vue b/src/views/Forward.vue new file mode 100644 index 00000000..ef90edd0 --- /dev/null +++ b/src/views/Forward.vue @@ -0,0 +1,41 @@ + + + From 2c225015c916ac4436b601f69dcd060082dfe08c Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 13 Dec 2022 20:24:11 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/Index.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 2685a5e0..256e02da 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -553,6 +553,15 @@ export default { this.$router.push('/course/boeframe?id='+courseId+'&type='+item.type); //此处使用window.open有问题 //window.open(`${this.webBaseUrl}/course/boeframe?id=${item.id}&type=${item.type}`); + }else if(item.source == 3){ + //跳转到管理系统的页面 + if (item.type == 30){ //线下课,面授课 + let params=encodeURIComponent('courseId='+courseId); + this.$router.push('/forward?to=/fe-student/faceteach¶ms='+params); + }else if(item.type==40){ //学习项目 + let params=encodeURIComponent('projectId='+courseId); + this.$router.push('/forward?to=/fe-student/projectdetails¶ms='+params); + } } else { if (item.type == 10) { //return this.webBaseUrl + "/course/studyindex?id=" + item.id;