lsc 1 jaar geleden
bovenliggende
commit
13646afeb6

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: 'Source Han Sans SC', sans-serif;
-    }</style><link href=./static/css/app.c92e15eba08aa80dfa7c844494a9a67d.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.11d8a4dfbebdec332b5f.js></script><script type=text/javascript src=./static/js/app.847c74f17a702faed0c1.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.2388cf3cd3af2cf50f154a96662c9cb1.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.11d8a4dfbebdec332b5f.js></script><script type=text/javascript src=./static/js/app.86895ecb13e9f7177587.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.2388cf3cd3af2cf50f154a96662c9cb1.css


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


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


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


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


+ 26 - 5
src/components/pages/testStudent/view/component/course.vue

@@ -16,11 +16,16 @@
                     <div class="content">
                         <div class="c_c">
                             <span>课程名字:</span>
-                            <span>{{ courseDetail.title }}</span>
+                            <el-tooltip :content="courseDetail.title" placement="top" effect="dark">
+                                <span>{{ courseDetail.title }}</span>
+                            </el-tooltip>
                         </div>
                         <div class="c_c">
                             <span>课程类型:</span>
-                            <span>{{ courseDetail.name ? courseDetail.name : '暂无' }}</span>
+                            <span v-if="!courseDetail.name">{{  '暂无' }}</span>
+                            <el-tooltip v-else :content="courseDetail.name" placement="top" effect="dark">
+                                <span>{{ courseDetail.name }}</span>
+                            </el-tooltip>
                         </div>
                         <div class="c_c">
                             <span>创建人:</span>
@@ -28,7 +33,10 @@
                         </div>
                         <div class="c_c">
                             <span>协作者:</span>
-                            <span>{{ courseDetail.xieName ? courseDetail.xieName : '暂无' }}</span>
+                            <span v-if="!courseDetail.xieName">{{  '暂无' }}</span>
+                            <el-tooltip v-else :content="courseDetail.xieName" placement="top" effect="dark">
+                                <span>{{ courseDetail.xieName }}</span>
+                            </el-tooltip>
                         </div>
                     </div>    
                 </div>
@@ -194,6 +202,10 @@ export default {
 
 .choice_box>.choices {
     margin-top: 10px;
+    display: flex;
+    flex-direction: column;
+    justify-content: center;
+    align-items: center;
 }
 
 .choices > .page{
@@ -226,10 +238,19 @@ export default {
     object-fit: cover;
 }
 .course > .content {}
-.course > .content > .c_c {}
+.course > .content > .c_c {
+    display: flex;
+    align-items: center;
+}
 .course > .content > .c_c + .c_c{
     margin-top: 5px;
 }
 .course > .content > .c_c span:nth-child(1){}
-.course > .content > .c_c span:nth-child(2){}
+.course > .content > .c_c span:nth-child(2){
+    max-width: 250px;
+    overflow: hidden;
+    white-space: nowrap;
+    display: block;
+    text-overflow: ellipsis;
+}
 </style>

+ 9 - 3
src/components/pages/testStudent/view/preview.vue

@@ -385,17 +385,21 @@ export default {
       let checkArray = _json.filter((item) => {
         if (item.array) {
           item.array = item.array.filter((item2) => {
-            if (item2.ttype == 1 && item2.json && !item2.json.answer2 && item2.type != 6) {
+            if (item2.ttype == 1 && item2.json && !item2.json.answer2 && item2.type != 6 && item2.type != 7) {
               item2.json.answer2 = [];
             }else if(item2.type == 6){
               item2.json.answer2 = this.courseid ? this.courseid : '';
+            }else if(item2.type == 7){
+              item2.json.answer2 = '';
             }
             if (item2.array) {
               item2.array = item2.array.filter((item3) => {
-                if (item3.ttype == 1 && item3.json && !item3.json.answer2 && item3.type != 6) {
+                if (item3.ttype == 1 && item3.json && !item3.json.answer2 && item3.type != 6 && item3.type != 7) {
                   item3.json.answer2 = [];
                 }else if(item3.type == 6){
                   item3.json.answer2 = this.courseid ? this.courseid : '';
+                }else if(item3.type == 7){
+                  item3.json.answer2 = '';
                 }
                 return item3;
               });
@@ -405,10 +409,12 @@ export default {
             );
           });
         }
-        if (item.ttype == 1 && item.json && !item.json.answer2 && item.type != 6) {
+        if (item.ttype == 1 && item.json && !item.json.answer2 && item.type != 6 && item.type != 6 && item.type != 7) {
           item.json.answer2 = [];
         }else if(item.type == 6){
           item.json.answer2 = this.courseid ? this.courseid : '';
+        }else if(item.type == 7){
+          item.json.answer2 = '';
         }
         console.log(item.array);
         return (item.ttype != 1 && item.array.length > 0) || item.ttype == 1;

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