Browse Source

编辑绑卷:输入数字校验

Michael Wang 4 years ago
parent
commit
1a903db488
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/features/examwork/CourseManagement/CoursePaperDialog.vue

+ 7 - 2
src/features/examwork/CourseManagement/CoursePaperDialog.vue

@@ -40,14 +40,19 @@
           </el-table-column>
           <el-table-column width="170" label="抽卷几率">
             <span slot-scope="scope">
-              <el-input-number v-model.trim="scope.row.weight">
+              <el-input-number
+                v-model.trim="scope.row.weight"
+                :min="0"
+                :max="100"
+              >
                 <template slot="append">%</template></el-input-number
               >
             </span>
           </el-table-column>
-          <el-table-column width="170" :min="1" label="音频播放次数">
+          <el-table-column width="170" label="音频播放次数">
             <span slot-scope="scope">
               <el-input-number
+                :min="1"
                 v-model.trim="scope.row.audioPlayCount"
               ></el-input-number>
             </span>