lsc 1 year ago
parent
commit
a9ed1b26a6

+ 1 - 1
dist/index.html

@@ -25,7 +25,7 @@
       height: 100%;
       width: 100%;
       background: #e6eaf0;
-    }</style><link href=./static/css/app.f5e0d9cb6894093c4572b73b2e560c73.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.b01159b52abeac4e6216.js></script><script type=text/javascript src=./static/js/app.19db2b314074996f7c07.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.4c78fff43ba57d1a2ff3db28e7892e2b.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.b01159b52abeac4e6216.js></script><script type=text/javascript src=./static/js/app.81caecc2ad6fe3c55e65.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.4c78fff43ba57d1a2ff3db28e7892e2b.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.4c78fff43ba57d1a2ff3db28e7892e2b.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.f5e0d9cb6894093c4572b73b2e560c73.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.19db2b314074996f7c07.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.81caecc2ad6fe3c55e65.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.81caecc2ad6fe3c55e65.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.3512a67a6213c2df4180.js.map


+ 18 - 3
src/components/pages/test/add/addTest.vue

@@ -86,14 +86,14 @@ export default {
                             this.$message.error("请补充填写课程名称");
                             return;
                         } else {
-                            this.addWork();
+                            this.addWork(5);
                         }
                     } else {
                         if (this.title == "") {
                             this.$message.error("请补充填写课程名称");
                             return;
                         } else {
-                            this.updateWork();
+                            this.updateWork(5);
                         }
                     }
                 })
@@ -116,7 +116,7 @@ export default {
         goTo(path) {
             this.$router.push(path);
         },
-        addWork() {
+        addWork(look) {
             let params = [
                 {
                     uid: this.userid,
@@ -137,6 +137,19 @@ export default {
                 .post(this.$store.state.api + "addTestCourse", params)
                 .then((res) => {
                     this.cid = res.data.courseId;
+                    if(look == 5){
+                        this.$message.success("保存成功")
+                        this.goTo(
+                            "/test?userid=" +
+                            this.userid +
+                            "&oid=" +
+                            this.oid +
+                            "&org=" +
+                            this.org +
+                            "&role=" +
+                            this.role
+                        );
+                    }
                 })
                 .catch((err) => {
                     this.$message.error("网络不佳");
@@ -178,6 +191,8 @@ export default {
                         );
                     }else if(look == 4){
                         this.$message.success("保存成功")
+                    }else if(look == 5){
+                        this.$message.success("保存成功")
                         this.goTo(
                             "/test?userid=" +
                             this.userid +

+ 16 - 2
src/components/pages/test/add/components/GapFilling/index.vue

@@ -1,5 +1,5 @@
 <template>
-    <div class="choice_box" @click.stop="">
+    <div class="choice_box jiao" @click.stop="">
         <div class="title">设置问答题</div>
         <div class="box">
             <div class="set_type">
@@ -117,11 +117,12 @@ export default {
 
 <style scoped>
 .choice_box {
-    margin-top: 10px;
+    margin-top: 20px;
     width: 100%;
     background: #f6f6f6;
     padding: 10px;
     box-sizing: border-box;
+    position: relative;
 }
 
 .choice_box>.box {}
@@ -191,4 +192,17 @@ export default {
 .binfo_input:focus-visible {
     border: 1.5px solid #3681FC !important;
 }
+
+.jiao::before{
+    content: '';
+    position: absolute;
+    width: 0px;
+    height: 0px;
+    top: -20px;
+    left: 15px;
+    border-left: 12px solid transparent;
+    border-right: 12px solid transparent;
+    border-bottom: 10px solid #f6f6f6;
+    border-top: 10px solid transparent;
+}
 </style>

+ 16 - 2
src/components/pages/test/add/components/choice/index.vue

@@ -1,5 +1,5 @@
 <template>
-    <div class="choice_box" @click.stop="">
+    <div class="choice_box jiao" @click.stop="">
         <div class="title">设置选择题</div>
         <div class="box">
             <div class="set_type">
@@ -126,11 +126,12 @@ export default {
 
 <style scoped>
 .choice_box {
-    margin-top: 10px;
+    margin-top: 20px;
     width: 100%;
     background: #f6f6f6;
     padding: 10px;
     box-sizing: border-box;
+    position: relative;
 }
 
 .choice_box>.box {}
@@ -222,4 +223,17 @@ export default {
 .set_options>.btn {
     margin-top: 10px;
 }
+
+.jiao::before{
+    content: '';
+    position: absolute;
+    width: 0px;
+    height: 0px;
+    top: -20px;
+    left: 15px;
+    border-left: 12px solid transparent;
+    border-right: 12px solid transparent;
+    border-bottom: 10px solid #f6f6f6;
+    border-top: 10px solid transparent;
+}
 </style>

+ 7 - 5
src/components/pages/test/add/edit/check/gap.vue

@@ -69,12 +69,14 @@ export default {
     },
     mounted() {
         this.checkJson = this.cJson ? this.depthCopy(this.cJson) : undefined
-        setTimeout(() => {
-            this.checkJson.answer2 += "*0*%*";
+        if(this.checkJson.answer2){
             setTimeout(() => {
-                this.checkJson.answer2 = this.checkJson.answer2.replaceAll("*0*%*", "");
-            }, 0);
-        }, 100);
+                this.checkJson.answer2 += "*0*%*";
+                setTimeout(() => {
+                    this.checkJson.answer2 = this.checkJson.answer2.replaceAll("*0*%*", "");
+                }, 0);
+            }, 100);
+        }
     }
 }
 </script>

+ 8 - 4
src/components/pages/test/add/edit/check/index.vue

@@ -16,7 +16,7 @@
             <div v-if="item2.ttype == 1" class="answerBox">
               <choiceV :cJson.sync="item2.json" v-if="item2.type == 1"></choiceV>
               <gapV :cJson.sync="item2.json" v-if="item2.type == 3"></gapV>
-              <span v-else>暂未设置题目</span>
+              <!-- <span v-else>暂未设置题目</span> -->
             </div>
           </div>
         </div>
@@ -27,14 +27,14 @@
           <div v-if="item.ttype == 1" class="answerBox">
             <choiceV :cJson.sync="item.json" v-if="item.type == 1"></choiceV>
             <gapV :cJson.sync="item.json" v-if="item.type == 3"></gapV>
-            <span v-else>暂未设置题目</span>
+            <!-- <span v-else>暂未设置题目</span> -->
           </div>
           <div v-for="(item2, index2) in item.array" :key="`${index}-${index2}`" class="check_box_xia">
             <div class="title">{{ selectType(item2, index2) }}</div>
             <div v-if="item2.ttype == 1" class="answerBox">
               <choiceV :cJson.sync="item2.json" v-if="item2.type == 1"></choiceV>
               <gapV :cJson.sync="item2.json" v-if="item2.type == 3"></gapV>
-              <span v-else>暂未设置题目</span>
+              <!-- <span v-else>暂未设置题目</span> -->
             </div>
           </div>
         </div>
@@ -224,7 +224,11 @@ export default {
 }
 
 .check_box_xia {
-  margin-top: 10px;
+  padding: 15px 0;
+}
+
+.check_box_xia + .check_box_xia {
+  border-top: 1px solid #eee;
 }
 
 .check_box_xia>.title {

+ 2 - 2
src/components/pages/test/add/setInfo/manualCreated.vue

@@ -24,7 +24,7 @@
         <div class="mc_checkBox">
             <checkOrder :checkC.sync="checkC" :checkJson="checkJson" @changeJson="changeJson"></checkOrder>
             <div class="e_btn">
-                <el-button type="primary" size="mini" @click="nextSteps()">下一步</el-button>
+                <el-button type="primary" size="small" @click="nextSteps()" style="width: 100px;">下一步</el-button>
             </div>
         </div>
     </div>
@@ -330,6 +330,6 @@ export default {
     width: 100%;
     margin-top: auto;
     display: flex;
-    justify-content: flex-end;
+    justify-content: center;
 }
 </style>

+ 11 - 5
src/components/pages/test/index.vue

@@ -57,7 +57,12 @@
                         <div class="xtCourse" v-else>协同项目</div>
                        
                         <div class="bottom_box">
-                            <div><span>{{ item.title }}</span><span>{{ item.look == '1' ? '未发布' : '已发布' }}</span></div>
+                            <div>
+                                <el-tooltip :content="item.title" placement="top" effect="dark">
+                                    <span>{{ item.title }}</span>
+                                </el-tooltip>
+                                <span>{{ item.look == '1' ? '未发布' : '已发布' }}</span>
+                            </div>
                             <div class="kc_t">
                                 创建人:{{ item.uname }}
                             </div>
@@ -73,6 +78,7 @@
                                 (item.course_teacher &&
                                     item.course_teacher.indexOf(userid) !== -1) || role == '1')">编辑</div>
                             <div @click="checkToTest(item.courseId)">查看</div>
+                            <div @click="deleteCourse(item.courseId)">删除</div>
                             <!-- <div @click="get(item.courseId)">预览</div> -->
                             <!-- 项目进展 -->
                             <!-- <div @click="copyCourse(item.courseId)">复制</div> -->
@@ -479,18 +485,18 @@ export default {
         // },
         deleteCourse(cid) {
             // if (this.time()) {
-            this.$confirm("确定删除此项目吗?", "提示", {
+            this.$confirm("确定删除此评测吗?", "提示", {
                 confirmButtonText: "确定",
                 cancelButtonText: "取消",
                 type: "warning",
             })
                 .then(() => {
                     this.isLoading = true;
-                    let params = {
+                    let params = [{
                         cid: cid,
-                    };
+                    }];
                     this.ajax
-                        .get(this.$store.state.api + "deleteStudentCourse", params)
+                        .post(this.$store.state.api + "deleteTestCourse", params)
                         .then((res) => {
                             this.isLoading = false;
                             this.$message.success("删除成功");

+ 116 - 157
src/components/pages/testStudent/index.vue

@@ -11,25 +11,12 @@
     <div class="pb_content_body" style="height: 100%">
       <div class="student_head">
         <div class="choose">
-          <div
-            class="all_choose"
-            v-for="(item, index) in CourseType[0]"
-            :key="index"
-          >
+          <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
             <span v-if="CourseTypeJson[item.id].length">{{ item.name }}</span>
-            <el-select
-              v-if="CourseTypeJson[item.id].length"
-              v-model="courseTypeId[item.id]"
-              placeholder="请选择"
-              @change="getTypeName"
-            >
+            <el-select v-if="CourseTypeJson[item.id].length" v-model="courseTypeId[item.id]" placeholder="请选择"
+              @change="getTypeName">
               <el-option label="全部" value="1">全部</el-option>
-              <el-option
-                v-for="item1 in CourseTypeJson[item.id]"
-                :key="item1.id"
-                :label="item1.name"
-                :value="item1.id"
-              >
+              <el-option v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.name" :value="item1.id">
               </el-option>
             </el-select>
           </div>
@@ -39,6 +26,7 @@
               <el-option value="0" label="全部"></el-option>
               <el-option value="1" label="已完成"></el-option>
               <el-option value="2" label="未完成"></el-option>
+              <el-option value="3" label="已批改"></el-option>
             </el-select>
             <!-- <el-select v-model="groupA" @change="search" v-else>
                 <el-option value="4" label="全部"></el-option>
@@ -49,14 +37,8 @@
 
         <div class="student_right">
           <div class="head_left">
-            <el-input
-              v-model="courseName"
-              class="student_input"
-              placeholder="请输入项目名称"
-            ></el-input>
-            <el-button class="course_button" @click="searchCourse"
-              >查询</el-button
-            >
+            <el-input v-model="courseName" class="student_input" placeholder="请输入项目名称"></el-input>
+            <el-button class="course_button" @click="searchCourse">查询</el-button>
           </div>
         </div>
       </div>
@@ -65,8 +47,11 @@
           <div class="out_box" v-for="(item, index) in course" :key="index">
             <div class="bottom_box">
               <div class="title">
-                <span>{{ item.title }}</span
-                ><span :class="{ is:item.testCount > 0,no:item.testCount == 0}">{{ item.testCount > 0 ? "已完成" : "未完成" }}</span>
+                <el-tooltip :content="item.title" placement="top" effect="dark">
+                  <span>{{ item.title }}</span>
+                </el-tooltip>
+                <span :class="{ is: item.testCount > 0 && item.type != 3, no: item.testCount == 0, isR: item.type == 3 }">{{
+                  item.testCount > 0 ? item.type == 3 ? "已批改" : "已完成" : "未完成" }}</span>
               </div>
               <div class="kc_t">创建人:{{ item.uname }}</div>
               <div class="kc_time">
@@ -78,7 +63,7 @@
             </div>
             <div class="three_bottom">
               <div @click="checkTest(item.courseId)" v-if="item.testCount > 0">查看答题</div>
-              <div @click="goToCourse2(item.courseId)">{{item.testCount > 0 ? '重新答题' : '进入答题'}}</div>
+              <div @click="goToCourse2(item.courseId)">{{ item.testCount > 0 ? '重新答题' : '进入答题' }}</div>
             </div>
           </div>
           <div class="course_empty" v-if="course.length == 0">暂无数据</div>
@@ -86,27 +71,14 @@
       </div>
     </div>
     <div class="student_page">
-      <el-pagination
-        background
-        layout="prev, pager, next"
-        :page-size="pageSize"
-        :total="total"
-        v-if="page && course.length"
-        style="padding-bottom: 20px"
-        @current-change="handleCurrentChange"
-      ></el-pagination>
+      <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
+        v-if="page && course.length" style="padding-bottom: 20px" @current-change="handleCurrentChange"></el-pagination>
     </div>
     <el-dialog :visible.sync="dialogVisible1" size="tiny">
       <img width="100%" :src="dialogImageUrl" alt />
     </el-dialog>
-    <el-dialog
-      title="查看提问"
-      :visible.sync="dialogVisible"
-      :append-to-body="true"
-      width="750px"
-      :before-close="handleClose"
-      class="dialog_diy"
-    >
+    <el-dialog title="查看提问" :visible.sync="dialogVisible" :append-to-body="true" width="750px" :before-close="handleClose"
+      class="dialog_diy">
       <div>
         <div class="a_addBox">
           <CourseProblem :problemCourse="problemCourse"></CourseProblem>
@@ -116,32 +88,17 @@
         <el-button @click="dialogVisible = false">关 闭</el-button>
       </span>
     </el-dialog>
-    <el-dialog
-      title="查看协同项目"
-      :visible.sync="dialogVisibleCourse"
-      :append-to-body="true"
-      width="850px"
-      :before-close="handleClose"
-      class="dialog_diy"
-    >
+    <el-dialog title="查看协同项目" :visible.sync="dialogVisibleCourse" :append-to-body="true" width="850px"
+      :before-close="handleClose" class="dialog_diy">
       <div class="ct_box">
-        <div
-          class="out_box"
-          v-for="(item, index) in courseTeam"
-          :key="index"
-          style="margin-left: 15px"
-        >
+        <div class="out_box" v-for="(item, index) in courseTeam" :key="index" style="margin-left: 15px">
           <div class="tup">
-            <img
-              :src="
-                item.cover != null && item.cover != ''
-                  ? JSON.parse(item.cover).length > 0
-                    ? JSON.parse(item.cover)[0].url
-                    : mr
+            <img :src="item.cover != null && item.cover != ''
+                ? JSON.parse(item.cover).length > 0
+                  ? JSON.parse(item.cover)[0].url
                   : mr
-              "
-              alt
-            />
+                : mr
+              " alt />
           </div>
           <div class="bottom_box">
             <div>{{ item.title }}</div>
@@ -150,22 +107,20 @@
           </div>
           <div class="three_bottom">
             <!-- <div @click="jump(item.courseId)">查看内容</div> -->
-            <div
-              @click="
-                goTo(
-                  '/studentAddCourse?cid=' +
-                    item.courseId +
-                    '&userid=' +
-                    userid +
-                    '&oid=' +
-                    oid +
-                    '&org=' +
-                    org +
-                    '&role=' +
-                    role
-                )
-              "
-            >
+            <div @click="
+              goTo(
+                '/studentAddCourse?cid=' +
+                item.courseId +
+                '&userid=' +
+                userid +
+                '&oid=' +
+                oid +
+                '&org=' +
+                org +
+                '&role=' +
+                role
+              )
+              ">
               编辑
             </div>
           </div>
@@ -264,58 +219,58 @@ export default {
       if (courseId) {
         this.$router.push(
           "/studentAddCourse?cid=" +
-            courseId +
-            "&userid=" +
-            this.userid +
-            "&oid=" +
-            this.oid +
-            "&org=" +
-            this.org +
-            "&role=" +
-            this.role
+          courseId +
+          "&userid=" +
+          this.userid +
+          "&oid=" +
+          this.oid +
+          "&org=" +
+          this.org +
+          "&role=" +
+          this.role
         );
       } else {
         this.$router.push(
           "/addTest?userid=" +
-            this.userid +
-            "&oid=" +
-            this.oid +
-            "&org=" +
-            this.org +
-            "&role=" +
-            this.role
-        );
-      }
-      // this.$router.push(path);
-    },
-    goToCourse2(cid) {
-      this.$router.push(
-        "/doTest?cid=" +
-          cid +
-          "&userid=" +
           this.userid +
           "&oid=" +
           this.oid +
           "&org=" +
           this.org +
-          "&type=2" +
           "&role=" +
           this.role
+        );
+      }
+      // this.$router.push(path);
+    },
+    goToCourse2(cid) {
+      this.$router.push(
+        "/doTest?cid=" +
+        cid +
+        "&userid=" +
+        this.userid +
+        "&oid=" +
+        this.oid +
+        "&org=" +
+        this.org +
+        "&type=2" +
+        "&role=" +
+        this.role
       );
     },
     checkTest(cid) {
       this.$router.push(
         "/checkTest?cid=" +
-          cid +
-          "&userid=" +
-          this.userid +
-          "&oid=" +
-          this.oid +
-          "&org=" +
-          this.org +
-          "&type=2" +
-          "&role=" +
-          this.role
+        cid +
+        "&userid=" +
+        this.userid +
+        "&oid=" +
+        this.oid +
+        "&org=" +
+        this.org +
+        "&type=2" +
+        "&role=" +
+        this.role
       );
     },
     tableRowClassName({ row, rowIndex }) {
@@ -340,13 +295,13 @@ export default {
     getA(cid) {
       this.$router.push(
         "/courseProgress?cid=" +
-          cid +
-          "&userid=" +
-          this.userid +
-          "&oid=" +
-          this.oid +
-          "&org=" +
-          this.org
+        cid +
+        "&userid=" +
+        this.userid +
+        "&oid=" +
+        this.oid +
+        "&org=" +
+        this.org
       );
     },
     handle_remove(file, fileList) {
@@ -374,7 +329,7 @@ export default {
       this.page = val;
       this.getCourse();
     },
-    init() {},
+    init() { },
     handleClose(done) {
       done();
     },
@@ -736,28 +691,28 @@ export default {
 </script>
   
 <style scoped>
-.dialog_diy >>> .el-dialog__header {
+.dialog_diy>>>.el-dialog__header {
   background: #3d67bc !important;
   padding: 15px 20px;
 }
 
-.dialog_diy >>> .el-dialog__title {
+.dialog_diy>>>.el-dialog__title {
   color: #fff;
 }
 
-.dialog_diy >>> .el-dialog__headerbtn {
+.dialog_diy>>>.el-dialog__headerbtn {
   top: 19px;
 }
 
-.dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
+.dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
   color: #fff;
 }
 
-.dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
+.dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
   color: #fff;
 }
 
-.student_head >>> .el-button--primary {
+.student_head>>>.el-button--primary {
   background-color: #2268bc;
 }
 
@@ -826,7 +781,7 @@ export default {
   align-items: center;
 }
 
-.el-table >>> .even_row {
+.el-table>>>.even_row {
   background-color: #f1f1f1;
 }
 
@@ -938,7 +893,7 @@ export default {
   justify-content: center;
 }
 
-.el_cards >>> .el-card__body {
+.el_cards>>>.el-card__body {
   height: 100%;
 }
 
@@ -954,7 +909,7 @@ export default {
   display: flex;
 }
 
-.wordUpload > .buttonUp {
+.wordUpload>.buttonUp {
   margin-right: 5px;
 }
 
@@ -985,14 +940,14 @@ export default {
   justify-content: space-evenly;
 }
 
-.bottom_box > .title {
+.bottom_box>.title {
   width: 230px;
   display: flex;
   align-items: center;
   justify-content: space-between;
 }
 
-.bottom_box > .title > span:nth-child(1) {
+.bottom_box>.title>span:nth-child(1) {
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
@@ -1001,7 +956,7 @@ export default {
   width: 100%;
 }
 
-.bottom_box > .title > span:nth-child(2) {
+.bottom_box>.title>span:nth-child(2) {
   font-size: 14px;
   min-width: 60px;
   border: 1px solid;
@@ -1010,12 +965,16 @@ export default {
   /* margin-left: 10px; */
 }
 
-.bottom_box > .title > .is{
-    color: rgb(0, 182, 0);
+.bottom_box>.title>.is {
+  color: rgb(0, 182, 0);
+}
+
+.bottom_box>.title>.no {
+  color: rgb(240, 66, 66);
 }
 
-.bottom_box > .title > .no{
-    color: rgb(240, 66, 66);
+.bottom_box>.title>.isR {
+  color: #0061FF;
 }
 
 .tup {
@@ -1027,7 +986,7 @@ export default {
   align-items: center;
 }
 
-.tup > img {
+.tup>img {
   width: 100%;
   height: 100%;
   object-fit: contain;
@@ -1057,11 +1016,11 @@ export default {
   font-size: 14px;
 }
 
-.three_bottom > div {
+.three_bottom>div {
   cursor: pointer;
 }
 
-.three_bottom > div:hover {
+.three_bottom>div:hover {
   color: #79a2ff;
 }
 
@@ -1069,7 +1028,7 @@ export default {
   display: flex;
 }
 
-.student_input >>> .el-input__inner {
+.student_input>>>.el-input__inner {
   height: 40px;
   width: 190px;
   font-size: 13px;
@@ -1095,7 +1054,7 @@ export default {
   max-width: calc(100% / 3 - 50px);
 }
 
-.all_choose > span {
+.all_choose>span {
   min-width: 75px;
   display: block;
   margin-right: 10px;
@@ -1114,26 +1073,26 @@ export default {
   align-items: center;
 }
 
-.choose > div:nth-child(2) {
+.choose>div:nth-child(2) {
   margin-left: 1%;
   width: 32.33333%;
 }
 
-.choose > div:nth-child(3) {
+.choose>div:nth-child(3) {
   margin-left: 1%;
   width: 32.33333%;
 }
 
-.choose > div:nth-child(5) {
+.choose>div:nth-child(5) {
   margin: 5px 0 0 1%;
 }
 
-.choose > div:nth-child(4) > span {
+.choose>div:nth-child(4)>span {
   /* width: 74px !important;
     min-width: 74px; */
 }
 
-.choose > div:nth-child(4) >>> .el-select {
+.choose>div:nth-child(4)>>>.el-select {
   /* width: 217.5px;
     min-width: 215.06px; */
 }
@@ -1215,17 +1174,17 @@ export default {
   display: none;
 }
 
-.more div > span + span {
+.more div>span+span {
   margin-top: 10px;
 }
 
-.more div > span {
+.more div>span {
   display: block;
   width: 100%;
   text-align: center;
 }
 
-.more div > span:hover {
+.more div>span:hover {
   color: #79a2ff;
 }
 </style>

+ 3 - 0
src/components/pages/testStudent/view/component/choice.vue

@@ -8,6 +8,9 @@
                 <div class="p_box" v-if="isTeacher == 1 && checkJson.score">
                     <el-input v-model="score2" class="c_input" disabled></el-input><span style="margin: 0 10px;">/</span><span>{{ checkJson.score }}分</span>
                 </div>
+                <div class="p_box" v-if="isTeacher == 2 && checkJson.score2">
+                    <span>{{ checkJson.score2 }}分</span><span style="margin: 0 10px;">/</span><span>{{ checkJson.score }}分</span>
+                </div>
             </div>
             <div class="choices">
                 <div class="choice" v-for="(item, index) in checkJson.array" :key="index">

+ 10 - 5
src/components/pages/testStudent/view/component/gap.vue

@@ -13,6 +13,9 @@
                 <div class="p_box" v-if="isTeacher == 1 && checkJson.score">
                     <el-input v-model="checkJson.score2" class="c_input" @change="numberPan" placeholder="请输入得分"></el-input><span style="margin: 0 10px;">/</span><span>{{ checkJson.score }}分</span>
                 </div>
+                <div class="p_box" v-if="isTeacher == 2 && checkJson.score2">
+                    <span>{{ checkJson.score2 }}分</span><span style="margin: 0 10px;">/</span><span>{{ checkJson.score }}分</span>
+                </div>
             </div>
             <div class="choices">
                 <textarea  :readonly="checktype == 2" rows="2" v-autoHeight="68" class="binfo_input binfo_textarea" cols v-model="checkJson.answer2"
@@ -90,12 +93,14 @@ export default {
     },
     mounted() {
         this.checkJson = this.cJson ? this.depthCopy(this.cJson) : undefined
-        setTimeout(() => {
-            this.checkJson.answer2 += "*0*%*";
+        if(this.checkJson.answer2){
             setTimeout(() => {
-                this.checkJson.answer2 = this.checkJson.answer2.replaceAll("*0*%*", "");
-            }, 0);
-        }, 100);
+                this.checkJson.answer2 += "*0*%*";
+                setTimeout(() => {
+                    this.checkJson.answer2 = this.checkJson.answer2.replaceAll("*0*%*", "");
+                }, 0);
+            }, 100);
+        }
     }
 }
 </script>

+ 9 - 5
src/components/pages/testStudent/view/component/topic.vue

@@ -13,14 +13,14 @@
           <div v-if="item.ttype == 1" class="answerBox">
             <choiceV :cJson.sync="item.json" :checktype="checktype" v-if="item.type == 1" :see="see" :isTeacher="isTeacher"></choiceV>
             <gapV :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 3" :see="see" :isTeacher="isTeacher"></gapV>
-            <span v-else>暂未设置题目</span>
+            <!-- <span v-else>暂未设置题目</span> -->
           </div>
           <div v-for="(item2, index2) in item.array" :key="`${index}-${index2}`" class="check_box_xia">
             <div class="title">{{ selectType(item2, index2) }}</div>
             <div v-if="item2.ttype == 1" class="answerBox">
               <choiceV :cJson.sync="item2.json" :checktype="checktype" v-if="item2.type == 1" :see="see" :isTeacher="isTeacher"></choiceV>
               <gapV :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 3" :see="see" :isTeacher="isTeacher"></gapV>
-              <span v-else>暂未设置题目</span>
+              <!-- <span v-else>暂未设置题目</span> -->
             </div>
           </div>
         </div>
@@ -31,14 +31,14 @@
           <div v-if="item.ttype == 1" class="answerBox">
             <choiceV :cJson.sync="item.json" :checktype="checktype" v-if="item.type == 1" :see="see" :isTeacher="isTeacher"></choiceV>
             <gapV :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 3" :see="see" :isTeacher="isTeacher"></gapV>
-            <span v-else>暂未设置题目</span>
+            <!-- <span v-else>暂未设置题目</span> -->
           </div>
           <div v-for="(item2, index2) in item.array" :key="`${index}-${index2}`" class="check_box_xia">
             <div class="title">{{ selectType(item2, index2) }}</div>
             <div v-if="item2.ttype == 1" class="answerBox">
               <choiceV :cJson.sync="item2.json" :checktype="checktype" v-if="item2.type == 1" :see="see" :isTeacher="isTeacher"></choiceV>
               <gapV :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 3" :see="see" :isTeacher="isTeacher"></gapV>
-              <span v-else>暂未设置题目</span>
+              <!-- <span v-else>暂未设置题目</span> -->
             </div>
           </div>
         </div>
@@ -265,7 +265,11 @@ export default {
 }
 
 .check_box_xia {
-  margin-top: 10px;
+  padding: 15px 0;
+}
+
+.check_box_xia + .check_box_xia {
+  border-top: 1px solid #eee;
 }
 
 .check_box_xia>.title {

Some files were not shown because too many files changed in this diff