浏览代码

新增中西部排名

lcmxs 1 年之前
父节点
当前提交
cc1b3e00e7
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      src/views/RANK/index.vue

+ 13 - 0
src/views/RANK/index.vue

@@ -80,6 +80,11 @@
           {{scope.row.ranking}}
         </template>
       </el-table-column>
+      <el-table-column label="中西部排名" align="center" prop="midwestRanking">
+        <template slot-scope="scope">
+          {{scope.row.midwestRanking}}
+        </template>
+      </el-table-column>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
@@ -136,6 +141,10 @@
           <el-input  v-model="form.ranking" placeholder="请输入排名" ></el-input>
         </el-form-item>
 
+        <el-form-item prop="midwestRanking" label-width="100px" label="中西部排名">
+          <el-input  v-model="form.midwestRanking" placeholder="请输入排名" ></el-input>
+        </el-form-item>
+
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitForm">确 定</el-button>
@@ -202,6 +211,10 @@ export default {
           { required: true, message: "排名不能为空", trigger: "blur" },
           { trigger: 'blur', validator: this.validatorFloatNum }
         ],
+        midwestRanking: [
+          { required: true, message: "中西部排名不能为空", trigger: "blur" },
+          { trigger: 'blur', validator: this.validatorFloatNum }
+        ]
       }
     };
   },