Pārlūkot izejas kodu

修改荔园跳转问题

11wqe1 1 mēnesi atpakaļ
vecāks
revīzija
559773c29c

+ 1 - 1
src/components/pages/liyuan/aiOffice.vue

@@ -32,7 +32,7 @@ export default {
         { title: '学生管理', icon: require('../../../assets/icon/liyuan/stumange.svg'), type: 1, to: "/Listudent",role:0 },
         { title: '办公表单', icon: require('../../../assets/icon/liyuan/workTest.svg'), type: 1, to: "/sassPlatform",role:1,sassPlatFormTypeId:"cd006687-8a00-11f0-9c7b-005056924926"},
         { title: '教研室管理', icon: require('../../../assets/icon/liyuan/workTest.svg'), type: 1, to: "/teacherOffice",role:1 },
-        { title: '数据看板', icon: require('../../../assets/icon/liyuan/workTest.svg'), type: 3, to: `https://liyuan.cocorobo.cn/#/dataBoardNew?userid=${this.$route.query.userid}&oid=${this.$route.query.oid}&org=${this.$route.query.org}&role=${this.$route.query.role}&tType=${this.$route.query.tType}&gotype=aiOffice`,role:1 },
+        { title: '数据看板', icon: require('../../../assets/icon/liyuan/workTest.svg'), type: 5, to: `https://liyuan.cocorobo.cn/#/dataBoardNew?userid=${this.$route.query.userid}&oid=${this.$route.query.oid}&org=${this.$route.query.org}&role=${this.$route.query.role}&tType=${this.$route.query.tType}&gotype=aiOffice`,role:1 },
       ]
     }
   },

+ 11 - 9
src/components/pages/liyuan/components/card.vue

@@ -53,6 +53,7 @@ export default {
             // sessionStorage.setItem('gotype', this.$route.path);
             console.log('betaL',this.betaL);
 
+            // teachaer 端
             if (this.type == 1) {
               let query = {
                 userid: this.userid,
@@ -69,22 +70,23 @@ export default {
                 console.log('query',query);
                 console.log('cardData',this.cardData);
                 this.$router.push({ path: this.to, query: query })
-            }else if (this.type == 2) {
+            }else if (this.type == 2) { 
                 let con = this.betaL =='beta'? 'https://beta.cloud.cocorobo.cn' : 'https://cloud.cocorobo.cn'
                 console.log( `${con}${this.to}`);
                 window.location.href = `${con}${this.to}`;
-
             }else if (this.type == 3) {
-                window.location.href = this.to;
-            }else if (this.type == 4) {
-                let con = this.betaL =='beta'? 'https://beta.pbl.cocorobo.cn' : 'https://pbl.cocorobo.cn'
-                console.log( `${con}${this.to}`);
-                 window.location.href = `${con}${this.to}`;
-            }else {
+                // cocoFlow 页面
                 let con = this.betaL =='beta'? '//beta.app.cocorobo.cn/#/' : '//app.cocorobo.cn/#/'
+                window.location.href = `${con}${this.to}`;
+            }else if (this.type == 4) { 
+                //学生端
+                let con = this.betaL =='beta'? 'https://beta.pbl.cocorobo.cn' : 'https://pbl.cocorobo.cn'
                 console.log( `${con}${this.to}`);
-
                 window.location.href = `${con}${this.to}`;
+            }else if (this.type == 5) {
+                // console.log( `${con}${this.to}`);
+                // 直接传的地址不用区分beta与正式
+                window.location.href = `${this.to}`;
             }
         }
     },