fix:用户注册添加申报类型

dev
wangxy 12 months ago
parent 9846d18420
commit 322a3d6563

@ -3,9 +3,14 @@
<el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form"> <el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
<h3 class="title">黄炎培职业教育奖网上申报系统</h3> <h3 class="title">黄炎培职业教育奖网上申报系统</h3>
<el-form-item prop="roleKey"> <el-form-item prop="roleKey">
<el-input v-model="registerForm.roleKey" type="text" auto-complete="off" placeholder="申报类型"> <el-select v-model="registerForm.roleKey" style="width: 348px;" placeholder="请选择申报类型">
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" /> <el-option
</el-input> v-for="dict in dict.type.rew_apply_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item prop="username"> <el-form-item prop="username">
<el-input v-model="registerForm.username" type="text" auto-complete="off" placeholder="账号:保持和申报学校的名称一致"> <el-input v-model="registerForm.username" type="text" auto-complete="off" placeholder="账号:保持和申报学校的名称一致">
@ -73,10 +78,9 @@
<script> <script>
import { getCodeImg, register } from "@/api/login"; import { getCodeImg, register } from "@/api/login";
import { getDicts } from "@/api/system/dict/data";
export default { export default {
name: "Register", name: "Register",
dicts: [ 'rew_apply_type'],
data() { data() {
const equalToPassword = (rule, value, callback) => { const equalToPassword = (rule, value, callback) => {
if (this.registerForm.password !== value) { if (this.registerForm.password !== value) {
@ -110,7 +114,8 @@ export default {
{ required: true, trigger: "blur", message: "请再次输入您的密码" }, { required: true, trigger: "blur", message: "请再次输入您的密码" },
{ required: true, validator: equalToPassword, trigger: "blur" } { required: true, validator: equalToPassword, trigger: "blur" }
], ],
code: [{ required: true, trigger: "change", message: "请输入验证码" }] code: [{ required: true, trigger: "blur", message: "请输入验证码" }],
roleKey: [{ required: true, trigger: "change", message: "请选择申报类型" }]
}, },
loading: false, loading: false,
captchaEnabled: true captchaEnabled: true

Loading…
Cancel
Save