|
@@ -65,8 +65,8 @@
|
|
|
<!-- 新增用户 -->
|
|
|
<div>
|
|
|
<el-form ref="ruleForm" :model="addForm" label-width="80px" :rules="userRules">
|
|
|
- <el-form-item label="用户名" prop="username">
|
|
|
- <el-input v-model="addForm.username" maxlength="20" placeholder="请输入用户名" />
|
|
|
+ <el-form-item label="账号" prop="username">
|
|
|
+ <el-input v-model="addForm.username" maxlength="20" placeholder="请输入账号" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="姓名" prop="name">
|
|
|
<el-input v-model="addForm.name" maxlength="20" placeholder="请输入姓名" />
|
|
@@ -138,6 +138,7 @@ export default {
|
|
|
currentPage: 1,
|
|
|
userState: 1,
|
|
|
addForm: {
|
|
|
+ username: '', // 账号
|
|
|
name: '', // 昵称
|
|
|
password: '', // 密码
|
|
|
email: '', // 邮箱
|
|
@@ -149,7 +150,7 @@ export default {
|
|
|
addFormDialog: false,
|
|
|
userRules: {
|
|
|
username: [
|
|
|
- { required: true, message: '请输入用户名', trigger: 'blur' }
|
|
|
+ { required: true, message: '请输入账号', trigger: 'blur' }
|
|
|
],
|
|
|
name: [ { required: true, message: '请输入姓名', trigger: 'blur' } ],
|
|
|
phone: [
|