浏览代码

Merge branch 'beta' of https://git.cocorobo.cn/CocoRoboLabs/pbl-teacher-table into beta

SanHQin 1 周之前
父节点
当前提交
dc13428726

+ 50 - 11
src/components/pages/liyuan/page/teadTest.vue

@@ -48,7 +48,11 @@
                             v-if="item.array">
                             v-if="item.array">
                             <div class="test" v-for="(test, index) in item.array" :key="test.id">
                             <div class="test" v-for="(test, index) in item.array" :key="test.id">
                                 <div class="time">
                                 <div class="time">
-                                    <span>提交记录{{item.array.length - index}}</span>
+                                    <span v-if="!test.editName && !test.name">提交记录{{item.array.length - index}}</span>
+                                    <span v-if="!test.editName && test.name">{{test.name}}</span>
+                                </div>
+                                <div class="testType">
+                                    <span :class="`typeStatus_${test.type}`">{{ typeStatusList[test.type] }}</span>
                                 </div>
                                 </div>
                                 <div class="utime">
                                 <div class="utime">
                                     <span>{{ test.utime }}</span>
                                     <span>{{ test.utime }}</span>
@@ -116,7 +120,8 @@ export default {
             org: this.$route.query.org,
             org: this.$route.query.org,
             role: this.$route.query.role,
             role: this.$route.query.role,
             loading: false,
             loading: false,
-            checkTypeValue:""
+            checkTypeValue:"",
+            typeStatusList:["","未提交","已提交","","已退回"]
         };
         };
     },
     },
     computed: {
     computed: {
@@ -663,19 +668,20 @@ export default {
 
 
 <style scoped>
 <style scoped>
 .i_body_box {
 .i_body_box {
-    /* height: calc(100% - 10px); */
-    height: 100%;
+    height: calc(100% - 80px);
+    padding: 10px 0 0;
+    box-sizing: border-box;
 }
 }
 
 
 .check_nav {
 .check_nav {
     display: flex;
     display: flex;
     height: 50px;
     height: 50px;
     align-items: center;
     align-items: center;
+    padding: 0;
     box-sizing: border-box;
     box-sizing: border-box;
     width: 100%;
     width: 100%;
-    padding: 0 90px;
-    box-sizing: border-box;
     overflow: auto;
     overflow: auto;
+    padding: 0 90px;
 }
 }
 
 
 .check_nav>.nav {
 .check_nav>.nav {
@@ -689,7 +695,6 @@ export default {
     cursor: pointer;
     cursor: pointer;
     min-width: fit-content;
     min-width: fit-content;
     margin-right: 10px;
     margin-right: 10px;
-    
 }
 }
 
 
 .check_nav>.active {
 .check_nav>.active {
@@ -763,12 +768,12 @@ export default {
 
 
 
 
 .check_box {
 .check_box {
-    height: calc(100% - 90px);
+    height: calc(100% - 50px);
     overflow: auto;
     overflow: auto;
-    padding: 0 0px 20px;
-    margin: 0 90px;
+    padding: 0 0 20px;
     box-sizing: border-box;
     box-sizing: border-box;
     background: rgb(248, 250, 254);
     background: rgb(248, 250, 254);
+    margin: 0 90px;
 }
 }
 
 
 .test_panel {
 .test_panel {
@@ -1059,7 +1064,7 @@ export default {
     font-size: 14px;
     font-size: 14px;
     width: 160px;
     width: 160px;
     min-width: 160px;
     min-width: 160px;
-    margin: 0 30px 0 auto;
+    margin: 0 30px 0 0;
 }
 }
 .test_add_box>.test>.mask {
 .test_add_box>.test>.mask {
     display: flex;
     display: flex;
@@ -1156,4 +1161,38 @@ export default {
 .isDead{
 .isDead{
     color:#EE3E3E;
     color:#EE3E3E;
 }
 }
+
+.testType{
+  width: 60px;
+  margin: 0 45px 0 auto;
+}
+
+.testType>span{
+  padding: 6px 10px;
+  border-radius: 4px;
+  border: solid 1px gray;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  font-size: 12px;
+}
+
+
+.testType>.typeStatus_2{
+  background:#F0F9F2;
+  border-color: #B5E3BF;
+  color:#5FC875;
+}
+
+.testType>.typeStatus_4{
+  background:#FEF5EC;
+  border-color: #FAD0A1;
+  color:#F7933B;
+}
+
+.testType>.typeStatus_1{
+  background:#EEF3FC;
+  border-color: #0F40F5;
+  color:#0F40F5;
+}
 </style>
 </style>

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

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

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

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

+ 8 - 0
src/router/index.js

@@ -147,6 +147,7 @@ import knowledge from '@/components/pages/knowledge/index'
 import sassPlatform from '@/components/pages/sassPlatform/index'
 import sassPlatform from '@/components/pages/sassPlatform/index'
 import classroomObservationTest from '@/components/pages/classroomObservation/test.vue'
 import classroomObservationTest from '@/components/pages/classroomObservation/test.vue'
 import CourseCon from '@/components/pages/liyuan/CourseCon'
 import CourseCon from '@/components/pages/liyuan/CourseCon'
+import testReview from "@/components/pages/test/examine";
 import aiOffice from '@/components/pages/liyuan/aiOffice'
 import aiOffice from '@/components/pages/liyuan/aiOffice'
 import schoolSafe from '@/components/pages/liyuan/schoolSafe'
 import schoolSafe from '@/components/pages/liyuan/schoolSafe'
 import lyStudentEva from '@/components/pages/liyuan/studentEva'
 import lyStudentEva from '@/components/pages/liyuan/studentEva'
@@ -1283,6 +1284,13 @@ export default new Router({
       keepAlive: true,
       keepAlive: true,
       requireAuth: ""//不需要鉴权
       requireAuth: ""//不需要鉴权
     }
     }
+  },{
+      path: "/testReview",
+      name: "testReview",
+      component: testReview,
+      meta: {
+        requireAuth: "" // 不需要鉴权
+      }
   }, {
   }, {
     path: "/aiOffice",
     path: "/aiOffice",
     name: "aiOffice",
     name: "aiOffice",