班级不能为空

main
xy 3 weeks ago
parent 9baff1e903
commit 1c4eccee74
  1. 8
      src/layout/loginPage.vue

@ -71,7 +71,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item prop="clssid">
<div style="display: flex; align-items: center;"> <div style="display: flex; align-items: center;">
<div class="left" style="display: flex; align-items: center ;width: 90px;"> <div class="left" style="display: flex; align-items: center ;width: 90px;">
<div style="padding-right: 10px; color: #1084c1"> <div style="padding-right: 10px; color: #1084c1">
@ -236,8 +236,7 @@
</el-form-item> --> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button class="hexagon-button" type="primary" auto-insert-space @click="login">登录</el-button> <el-button class="hexagon-button" type="primary" auto-insert-space @click="login">登录</el-button>
<el-button class="hexagon-button" type="primary" auto-insert-space <el-button class="hexagon-button" type="primary" auto-insert-space @click="toRegister">去注册</el-button>
@click="toRegister">去注册</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-col> </el-col>
@ -354,6 +353,9 @@ const rules = {
trigger: "blur", trigger: "blur",
}, },
], ],
clssid:[
{ required: true, message: "请选择所属班级", trigger: "blur" },
],
mobile:[ mobile:[
{ required: true, message: "请输入手机号", trigger: "blur" }, { required: true, message: "请输入手机号", trigger: "blur" },
{ {

Loading…
Cancel
Save