Sfoglia il codice sorgente

自动组卷调整

zhangjie 2 anni fa
parent
commit
58d0546c3e

+ 21 - 15
src/assets/styles/pages.scss

@@ -959,20 +959,7 @@
       }
     }
   }
-}
-
-.build-paper-simple {
-  .build-step-title {
-    margin-bottom: 10px;
-  }
 
-  .el-input-number .el-input__inner {
-    border: none;
-    width: 180px;
-  }
-}
-// build-paper-manual
-.build-paper {
   .detail-header {
     flex-grow: 2;
     display: flex;
@@ -996,12 +983,32 @@
   .el-collapse-item__header {
     height: 36px;
     line-height: 36px;
+    font-size: 14px;
   }
   .el-collapse-item__content {
     padding-left: 10px;
     padding-right: 10px;
+    font-size: 14px;
+  }
+  .el-input-number .el-input {
+    font-size: 14px;
   }
 }
+// build-paper-simple
+.build-paper-simple {
+  .build-step-title {
+    margin-bottom: 10px;
+  }
+
+  .el-input-number {
+    width: auto;
+    .el-input__inner {
+      border: none;
+      width: 180px;
+    }
+  }
+}
+// build-paper-manual
 .question-group-struct {
   overflow: hidden;
   .struct-set {
@@ -1030,8 +1037,7 @@
   }
   .struct-prop {
     flex-grow: 2;
-    overflow-x: hidden;
-    overflow-y: auto;
+    overflow: hidden;
 
     .el-input-number {
       width: 60px;

+ 4 - 2
src/modules/paper/components/BuildPaperSimple.vue

@@ -27,13 +27,14 @@
       <el-table-column
         label="抽取试题数量"
         prop="questionSelectCount"
-        min-width="200"
+        width="220"
         align="center"
       >
         <template slot-scope="scope">
           <el-input-number
             v-model="scope.row.selectCount"
             placeholder="请输入抽取试题数量"
+            size="mini"
             :step="1"
             :min="1"
             :max="scope.row.questionCount"
@@ -46,13 +47,14 @@
       <el-table-column
         label="试题分值"
         prop="questionScore"
-        min-width="200"
+        width="220"
         align="center"
       >
         <template slot-scope="scope">
           <el-input-number
             v-model="scope.row.questionScore"
             placeholder="请输入抽取试题分值"
+            size="mini"
             :step="0.1"
             :min="0.1"
             :max="999"

+ 5 - 1
src/modules/paper/components/QuestionGroupStruct.vue

@@ -24,7 +24,7 @@
         ></el-option>
       </el-select>
     </div>
-    <div class="struct-box">
+    <div v-if="!IS_NONE_SET" class="struct-box">
       <div v-if="isClassify" class="struct-folder">
         <el-tree
           class="folder-tree"
@@ -45,6 +45,7 @@
           :tree-props="tableTreeProps"
           row-key="id"
           border
+          max-height="400"
         >
           <el-table-column label="分类" prop="name">
             <template slot-scope="scope">
@@ -160,6 +161,9 @@ export default {
     IS_ONLY_PROPERTY() {
       return !this.isClassify && !this.isDifficult && this.isProperty;
     },
+    IS_NONE_SET() {
+      return !this.isClassify && !this.isDifficult && !this.isProperty;
+    },
   },
   watch: {
     "filterData.questionType": {