Explorar el Código

编辑绑卷:输入数字校验

Michael Wang hace 4 años
padre
commit
1a903db488
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  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>