|
@@ -55,7 +55,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="账号" min-width="15" align="center">
|
|
|
+ <el-table-column label="学生账号" min-width="15" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<div>{{ scope.row.un ? scope.row.un : "" }}</div>
|
|
|
</template>
|
|
@@ -104,7 +104,7 @@
|
|
|
<el-form>
|
|
|
<el-form-item label="学生姓名" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入学生昵称" clearable v-model="sName" class="add_input"></el-input>
|
|
|
+ <el-input placeholder="请输入学生姓名" clearable v-model="sName" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="学生学号" :label-width="formLabelWidth">
|
|
@@ -117,9 +117,9 @@
|
|
|
<el-input placeholder="请输入学生手机号" clearable v-model="sPhone" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="学生邮箱" :label-width="formLabelWidth">
|
|
|
+ <el-form-item label="学生账号" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入学生邮箱" clearable v-model="sMail" class="add_input"></el-input>
|
|
|
+ <el-input placeholder="请输入学生账号" clearable v-model="sMail" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="所属学校" :label-width="formLabelWidth">
|
|
@@ -147,7 +147,7 @@
|
|
|
<el-form>
|
|
|
<el-form-item label="学生名称" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入学生昵称" clearable v-model="userinfo.name" class="add_input"></el-input>
|
|
|
+ <el-input placeholder="请输入学生姓名" clearable v-model="userinfo.name" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="学生学号" :label-width="formLabelWidth">
|
|
@@ -160,9 +160,9 @@
|
|
|
<el-input placeholder="请输入学生手机号" clearable v-model="userinfo.phonenumber" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="学生邮箱" :label-width="formLabelWidth">
|
|
|
+ <el-form-item label="学生账号" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入学生邮箱" clearable v-model="userinfo.un" class="add_input"></el-input>
|
|
|
+ <el-input placeholder="请输入学生账号" clearable v-model="userinfo.un" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="所属学校" :label-width="formLabelWidth">
|
|
@@ -258,7 +258,7 @@ export default {
|
|
|
getExcel(res) {
|
|
|
require.ensure([], () => {
|
|
|
const { export_json_to_excel } = require("../../common/Export2Excel");
|
|
|
- const tHeader = ["学号", "学生姓名", "学生邮箱", "学生手机号", "班级"];
|
|
|
+ const tHeader = ["学号", "学生姓名", "学生账号", "学生手机号", "班级"];
|
|
|
const data = [];
|
|
|
export_json_to_excel(tHeader, data, "上传学生样例");
|
|
|
});
|
|
@@ -285,7 +285,7 @@ export default {
|
|
|
insertStudent() {
|
|
|
this.dialogVisible = true;
|
|
|
if (this.sName === "") {
|
|
|
- this.$message.error("学生昵称不能为空");
|
|
|
+ this.$message.error("学生姓名不能为空");
|
|
|
return;
|
|
|
} else if (this.sByClass === "") {
|
|
|
this.$message.error("请为学生选择班级");
|
|
@@ -320,7 +320,7 @@ export default {
|
|
|
.get(this.$store.state.api + "findMail", params)
|
|
|
.then((res) => {
|
|
|
if (res.data[0].length > 0) {
|
|
|
- this.$message.error("此学生邮箱已被注册");
|
|
|
+ this.$message.error("此学生账号已被注册");
|
|
|
} else {
|
|
|
// let params = { un: this.sId };
|
|
|
// this.ajax
|
|
@@ -588,7 +588,7 @@ export default {
|
|
|
"@cocorobo.cc";
|
|
|
obj.sId = v["学号"];
|
|
|
obj.name = v["学生姓名"];
|
|
|
- obj.mail = v["学生邮箱"] ? v["学生邮箱"] : a;
|
|
|
+ obj.mail = v["学生账号"] ? v["学生账号"] : a;
|
|
|
obj.phone = v["学生手机号"];
|
|
|
obj.class = v["班级"];
|
|
|
arr.push(obj);
|
|
@@ -620,7 +620,7 @@ export default {
|
|
|
// }
|
|
|
else if (item.mail === "") {
|
|
|
_b = 1;
|
|
|
- _this.$message.error("学生邮箱不能为空,请重新上传");
|
|
|
+ _this.$message.error("学生账号不能为空,请重新上传");
|
|
|
break;
|
|
|
} else if (
|
|
|
!/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(
|
|
@@ -628,7 +628,7 @@ export default {
|
|
|
)
|
|
|
) {
|
|
|
_b = 1;
|
|
|
- _this.$message.error("有学生邮箱格式不正确,请重新上传");
|
|
|
+ _this.$message.error("有学生账号格式不正确,请重新上传");
|
|
|
break;
|
|
|
}
|
|
|
// else if (item.school === "") {
|
|
@@ -750,7 +750,7 @@ export default {
|
|
|
// beforeSend: function (xhr) {},
|
|
|
// success: function (res, textStatus, jqXHR) {
|
|
|
// if (res[0].length > 0) {
|
|
|
- // _this.$message.error("有学生邮箱已被注册");
|
|
|
+ // _this.$message.error("有学生账号已被注册");
|
|
|
// _a = 1;
|
|
|
// }
|
|
|
// },
|
|
@@ -874,7 +874,7 @@ export default {
|
|
|
z = 1;
|
|
|
}
|
|
|
if (res.data.type == 2) {
|
|
|
- _this.$message.error("有学生邮箱已被注册");
|
|
|
+ _this.$message.error("有学生账号已被注册");
|
|
|
z = 1;
|
|
|
}
|
|
|
if (res.data.type == 3) {
|
|
@@ -950,7 +950,7 @@ export default {
|
|
|
},
|
|
|
updateStudent() {
|
|
|
if (this.userinfo.name === "") {
|
|
|
- this.$message.error("学生昵称不能为空");
|
|
|
+ this.$message.error("学生姓名不能为空");
|
|
|
return;
|
|
|
} else if (!this.userinfo.classid) {
|
|
|
this.$message.error("请为学生选择班级");
|
|
@@ -973,7 +973,7 @@ export default {
|
|
|
.get(this.$store.state.api + "findMail", params)
|
|
|
.then((res) => {
|
|
|
if (res.data[0].length > 0) {
|
|
|
- this.$message.error("此学生邮箱已被注册");
|
|
|
+ this.$message.error("此学生账号已被注册");
|
|
|
} else {
|
|
|
this.update_Student();
|
|
|
}
|