|
@@ -7,7 +7,7 @@
|
|
|
:close-on-click-modal="false"
|
|
|
width="40%"
|
|
|
style="border-radius: 40px"
|
|
|
- top="5vh"
|
|
|
+ top="15vh"
|
|
|
>
|
|
|
<div slot="title">
|
|
|
<el-form
|
|
@@ -42,7 +42,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="性别" prop="name">
|
|
|
+ <el-form-item label="性别" prop="sex">
|
|
|
<el-radio-group v-model="ruleForm.sex" style="margin-left: 20px">
|
|
|
<el-radio label="1">男</el-radio>
|
|
|
<el-radio label="0">女</el-radio>
|
|
@@ -51,7 +51,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-form-item v-if="isView" label="密码" prop="password">
|
|
|
+ <!-- <el-form-item v-if="isView" label="密码" prop="password">
|
|
|
<el-input
|
|
|
type="password"
|
|
|
v-model="ruleForm.password"
|
|
@@ -64,7 +64,7 @@
|
|
|
v-model="ruleForm.comPassword"
|
|
|
autocomplete="off"
|
|
|
></el-input>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
<div class="dig_button">
|
|
|
<el-button type="info" round @click="resetData()">重置</el-button>
|
|
|
<!-- <el-button type="success" round @click="submitForm('ruleForm')"
|
|
@@ -159,10 +159,11 @@ export default {
|
|
|
rules: {
|
|
|
group: [{ required: true, message: "请选择组织架构", trigger: "blur" }],
|
|
|
studentNumber: [{ required: true, message: "请输入学号", trigger: "blur" }],
|
|
|
- name: [{ required: true, message: "请输入学号", trigger: "blur" }],
|
|
|
+ name: [{ required: true, message: "请输入姓名", trigger: "blur" }],
|
|
|
+ sex: [{ required: true, message: "请选择性别", trigger: "blur" }],
|
|
|
// password: [{ required: true, message: "请输密码", trigger: "blur" }],
|
|
|
- password: [{ required: true, validator: validatePass, trigger: "blur" }],
|
|
|
- comPassword: [{ required: true, validator: validateComPass, trigger: "blur" }],
|
|
|
+ // password: [{ required: true, validator: validatePass, trigger: "blur" }],
|
|
|
+ // comPassword: [{ required: true, validator: validateComPass, trigger: "blur" }],
|
|
|
},
|
|
|
};
|
|
|
},
|
|
@@ -177,8 +178,8 @@ export default {
|
|
|
this.ruleForm.group = "";
|
|
|
this.ruleForm.name = "";
|
|
|
this.ruleForm.studentNumber = "";
|
|
|
- this.ruleForm.password = "";
|
|
|
- this.ruleForm.comPassword = "";
|
|
|
+ // this.ruleForm.password = "";
|
|
|
+ // this.ruleForm.comPassword = "";
|
|
|
this.ruleForm.sex = "";
|
|
|
},
|
|
|
//获取组织架构方法--------------------开始-----------------------
|
|
@@ -354,8 +355,8 @@ export default {
|
|
|
this.ruleForm.group = "";
|
|
|
this.ruleForm.name = "";
|
|
|
this.ruleForm.studentNumber = "";
|
|
|
- this.ruleForm.password = "";
|
|
|
- this.ruleForm.comPassword = "";
|
|
|
+ // this.ruleForm.password = "";
|
|
|
+ // this.ruleForm.comPassword = "";
|
|
|
this.ruleForm.sex = "";
|
|
|
this.dialogVisible = false;
|
|
|
},
|
|
@@ -371,7 +372,7 @@ export default {
|
|
|
this.disableFlag = true;
|
|
|
let validSp = [];
|
|
|
if (this.isView) {
|
|
|
- validSp = ["group", "studentNumber", "name", "sex", "password", "comPassword"];
|
|
|
+ validSp = ["group", "studentNumber", "name", "sex"];
|
|
|
} else {
|
|
|
validSp = ["group", "studentNumber", "name", "sex"];
|
|
|
}
|
|
@@ -381,7 +382,7 @@ export default {
|
|
|
aa.push(valid);
|
|
|
//判断是编辑还是新增
|
|
|
if (this.isView) {
|
|
|
- if (aa.length == 6) {
|
|
|
+ if (aa.length == 4) {
|
|
|
this.register();
|
|
|
} else {
|
|
|
this.disableFlagStatus();
|
|
@@ -402,13 +403,13 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
register() {
|
|
|
- if (this.ruleForm.group.length == 1) {
|
|
|
- this.$message({
|
|
|
- message: "请选择专业节点",
|
|
|
- type: "warning",
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (this.ruleForm.group.length == 1) {
|
|
|
+ // this.$message({
|
|
|
+ // message: "请选择专业节点",
|
|
|
+ // type: "warning",
|
|
|
+ // });
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
this.queryOrgName();
|
|
|
|
|
|
console.log(this.ruleForm.group);
|
|
@@ -422,8 +423,8 @@ export default {
|
|
|
userNo: this.ruleForm.studentNumber,
|
|
|
userName: this.ruleForm.name,
|
|
|
gender: this.ruleForm.sex,
|
|
|
- password: md5(this.ruleForm.password),
|
|
|
- //roleType 1普通用户 roleType 管理员
|
|
|
+ // password: md5(this.ruleForm.password),
|
|
|
+ //roleType 1学生
|
|
|
roleType: "1",
|
|
|
},
|
|
|
(res) => {
|
|
@@ -522,6 +523,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.dig_button {
|
|
|
+ margin-top: 20px;
|
|
|
display: flex;
|
|
|
width: 100%;
|
|
|
justify-content: space-around;
|