heyang 2 年之前
父节点
当前提交
8c7cebfae5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/views/safetyInfo/safetyInfoCategory/infoConfig.vue

+ 2 - 0
src/views/safetyInfo/safetyInfoCategory/infoConfig.vue

@@ -42,10 +42,12 @@
         <el-table-column label="" align="left" class-name="small-padding fixed-width" width="120">
           <template slot-scope="scope">
             <el-input
+              onkeyup="value=value.replace(/[^\d]/g,'')"
               :disabled="scope.row.isSpecial==2"
               class="serial"
               v-model="scope.row.sort"
               @change="categorySort(scope.row)"
+              maxLength="3"
               placeholder="序号">
             </el-input>
           </template>