Bladeren bron

liyuan返回

11wqe1 2 weken geleden
bovenliggende
commit
387fb459f9

+ 7 - 2
src/components/easy2/studyStudent.vue

@@ -11939,7 +11939,9 @@
             '&tType=' +
             tType +
             '&screenType=' +
-            screenType
+            screenType+
+            '&role=' +
+            role
         )
       "
     ></classRoomHelper>
@@ -11957,7 +11959,9 @@
         '&tType=' +
         tType +
         '&screenType=' +
-        screenType
+        screenType+
+        '&role=' +
+        role
     )"></studentClassRoomHelper>
     <div
       class="pButton"
@@ -16459,6 +16463,7 @@ export default {
       id: this.$route.query.courseId,
       userid: this.$route.query.userid,
       classId: this.$route.query.cid,
+      role: this.$route.query.role,
       // courseTypeLine: this.$route.query.type,
       oid: this.$route.query.oid,
       org: this.$route.query.org,

+ 7 - 2
src/components/easy3/studyStudent.vue

@@ -8613,7 +8613,9 @@
           '&tType=' +
           tType +
           '&screenType=' +
-          screenType
+          screenType+
+            '&role=' +
+            role
       )"></classRoomHelper>
     <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
     '/courseDetail?userid=' +
@@ -8629,7 +8631,9 @@
       '&tType=' +
       tType +
       '&screenType=' +
-      screenType
+      screenType+
+            '&role=' +
+            role
   )"></studentClassRoomHelper>
     <div
       class="pButton"
@@ -12775,6 +12779,7 @@ export default {
       id: this.$route.query.courseId,
       userid: this.$route.query.userid,
       classId: this.$route.query.cid,
+      role: this.$route.query.role,
       // courseTypeLine: this.$route.query.type,
       oid: this.$route.query.oid,
       org: this.$route.query.org,

+ 12 - 2
src/components/index.vue

@@ -2,9 +2,9 @@
   <div class="pb_content">
     <div class="pb_content_body">
       <div class="student_head" style="position: relative;">
-        <div v-if="$route.query.gotype == 1" 
+        <div v-if="gotype" 
         class="backBtn"
-        @click.stop="$router.go(-1)">返回</div>
+        @click.stop="backliyuan">返回</div>
         <!-- <img src="../assets/banner.png" alt="" /> -->
          <!-- //pbl.cocorobo.cn/pbl-teacher-table/dist -->
         <el-carousel trigger="click" style="width: 100%; height: 100%">
@@ -244,6 +244,7 @@ export default {
 
   data() {
     return {
+      gotype:sessionStorage.getItem('gotype'),
       zoneList: [],
       zoneClass: [],
       page: 1,
@@ -258,6 +259,7 @@ export default {
       tType: this.$route.query.tType,
       org: this.$route.query.org,
       screenType: this.$route.query.screenType,
+      role: this.$route.query.role,
       CourseType: [],
       CourseType2: [],
       CourseTypeJson: {},
@@ -297,6 +299,14 @@ export default {
     },
   },
   methods: {
+    backliyuan(){
+      let betaL = window.location.href.includes("beta") ? "beta" : "cloud"
+      if (betaL == 'beta') {
+        window.location.href = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/CourseCon?userid=${this.userid}&oid=${this.oid}&org=${this.org}&role=${this.role}&tType=${this.tType}`
+      }else{
+        window.location.href = `https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CourseCon?userid=${this.userid}&oid=${this.oid}&org=${this.org}&role=${this.role}&tType=${this.tType}`
+      }
+    },
     search(){
       if(this.typeCheck){
         this.selectAll()

+ 7 - 2
src/components/studyStudent.vue

@@ -8572,7 +8572,9 @@
                       '&tType=' +
                       tType +
                       '&screenType=' +
-                      screenType
+                      screenType+
+                      '&role=' +
+                      role
                   )"></classRoomHelper>
       <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
                     '/courseDetail?userid=' +
@@ -8588,7 +8590,9 @@
                       '&tType=' +
                       tType +
                       '&screenType=' +
-                      screenType
+                      screenType+
+                      '&role=' +
+                      role
                   )"></studentClassRoomHelper>
     </div>
     <div
@@ -12735,6 +12739,7 @@ export default {
       id: this.$route.query.courseId,
       userid: this.$route.query.userid,
       classId: this.$route.query.cid,
+      role: this.$route.query.role,
       // courseTypeLine: this.$route.query.type,
       oid: this.$route.query.oid,
       org: this.$route.query.org,

+ 7 - 2
src/components/studySutdentClass/studyStudent.vue

@@ -11790,7 +11790,9 @@
         '&tType=' +
         tType +
         '&screenType=' +
-        screenType
+        screenType+
+            '&role=' +
+            role
     )"></classRoomHelper>
   <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
     '/courseDetail?userid=' +
@@ -11806,7 +11808,9 @@
       '&tType=' +
       tType +
       '&screenType=' +
-      screenType
+      screenType+
+            '&role=' +
+            role
   )"></studentClassRoomHelper>
     <div
       class="pButton"
@@ -16026,6 +16030,7 @@ export default {
       id: this.$route.query.courseId,
       userid: this.$route.query.userid,
       classId: this.$route.query.cid,
+      role: this.$route.query.role,
       // courseTypeLine: this.$route.query.type,
       oid: this.$route.query.oid,
       org: this.$route.query.org,