Browse Source

修改表单查看返回

11wqe1 1 week ago
parent
commit
0500a57697

+ 3 - 1
src/components/pages/test/check/check.vue

@@ -4,7 +4,7 @@
       <div class="right">
         <div class="courseTop">
           <div class="stepsNav">
-            <el-breadcrumb separator-class="el-icon-arrow-right">
+            <el-breadcrumb separator-class="el-icon-arrow-right" v-if="!back">
               <el-breadcrumb-item
                 :to="{
                   path:
@@ -83,6 +83,7 @@ export default {
   },
   data() {
     return {
+      back:this.$route.query.back,
       userid: this.$route.query.userid,
       userid2: this.$route.query.userid2,
       tid: this.$route.query.tid,
@@ -105,6 +106,7 @@ export default {
   },
   methods: {
     retrunCourse() {
+      if (this.back) return this.$router.go(-1)
       if(this.type == 3){
         this.goTo(
         "/checkToTest2?uid=" +

+ 2 - 1
src/components/pages/test/check/index.vue

@@ -3153,7 +3153,8 @@ ${JSON.stringify(forAllList)}
           this.org +
           "&type=2" +
           "&role=" +
-          this.role
+          this.role+
+          "&back=1"
       );
     },
     editTest(row){