| | |
| | | </el-col>
|
| | | <el-col :span="12">
|
| | | <el-form-item v-if="form.userId == undefined" label="用户密码" prop="password">
|
| | | <el-input v-model="form.password" placeholder="请输入用户密码" type="password" maxlength="20" />
|
| | | <el-input v-model="form.password" placeholder="请输入用户密码" type="password" maxlength="20" show-password/>
|
| | | </el-form-item>
|
| | | </el-col>
|
| | | </el-row>
|
| | |
| | | // 表单校验
|
| | | rules: {
|
| | | userName: [
|
| | | { required: true, message: "用户名称不能为空", trigger: "blur" }
|
| | | { required: true, message: "用户名称不能为空", trigger: "blur" },
|
| | | { min: 2, max: 20, message: '用户名称长度必须介于 2 和 20 之间', trigger: 'blur' }
|
| | | ],
|
| | | nickName: [
|
| | | { required: true, message: "用户昵称不能为空", trigger: "blur" }
|
| | |
| | | /** 分配角色操作 */
|
| | | handleAuthRole: function(row) {
|
| | | const userId = row.userId;
|
| | | this.$router.push("/auth/role/" + userId);
|
| | | this.$router.push("/system/user-auth/role/" + userId);
|
| | | },
|
| | | /** 提交按钮 */
|
| | | submitForm: function() {
|