Sfoglia il codice sorgente

指标管理-给norm添加了排序字段

sakura 1 anno fa
parent
commit
905b20cc71
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/views/norm/index.vue

+ 5 - 0
src/views/norm/index.vue

@@ -33,6 +33,7 @@
         </template>
       </el-table-column>
       <el-table-column label="指标分类编号" align="center" prop="code" />
+      <el-table-column label="排序" align="center" prop="sort" />
       <el-table-column label="状态" align="center" prop="status">
         <template slot-scope="scope">
           <el-switch v-model="scope.row.status" @change="changeSwitchHandler(scope.row)" active-color="#13ce66" inactive-color="#ff4949"></el-switch>
@@ -55,6 +56,9 @@
         <el-form-item label-width="100px" label="指标分类编号">
           <el-input v-model="form.code"></el-input>
         </el-form-item>
+        <el-form-item label-width="100px" label="指标排序">
+          <el-input v-model="form.sort"></el-input>
+        </el-form-item>
         <el-form-item label-width="100px" label="指标分类名称">
           <el-input v-model="form.name"></el-input>
         </el-form-item>
@@ -141,6 +145,7 @@ export default {
       // 表单校验
       rules: {
         id: [{ required: true, message: 'id不能为空', trigger: 'blur' }],
+        sort: [{ required: true, message: '排序为数值', trigger: 'blur' }],
         delFlag: [{ required: true, message: '删除标识不能为空', trigger: 'blur' }],
         deptId: [{ required: true, message: '部门id不能为空', trigger: 'blur' }],
         name: [{ required: true, message: '指标分类名称不能为空', trigger: 'blur' }],