|
@@ -333,8 +333,8 @@
|
|
|
<el-button
|
|
|
v-if="
|
|
|
null != scope.row.enable &&
|
|
|
- !scope.row.enable &&
|
|
|
- rolePrivileges.change_student_availability
|
|
|
+ !scope.row.enable &&
|
|
|
+ rolePrivileges.change_student_availability
|
|
|
"
|
|
|
size="mini"
|
|
|
type="primary"
|
|
@@ -698,7 +698,7 @@ import {
|
|
|
CORE_API,
|
|
|
EXAM_WORK_API,
|
|
|
EXCHANGE_API,
|
|
|
- REPORTS_API,
|
|
|
+ REPORTS_API
|
|
|
} from "@/constants/constants.js";
|
|
|
import { mapState } from "vuex";
|
|
|
|
|
@@ -711,7 +711,7 @@ export default {
|
|
|
reset_student_password: false,
|
|
|
change_student_availability: false,
|
|
|
unbind_student_code: false,
|
|
|
- unbind_security_phone: false,
|
|
|
+ unbind_security_phone: false
|
|
|
},
|
|
|
rootOrgList: null,
|
|
|
stuExamLoading: false,
|
|
@@ -726,7 +726,7 @@ export default {
|
|
|
getOrgList4RestPasswordLoading: false,
|
|
|
resetPasswordByOrgIdDialog: false,
|
|
|
resetPasswordByOrgIdForm: {
|
|
|
- orgId: "",
|
|
|
+ orgId: ""
|
|
|
},
|
|
|
formSearch: {
|
|
|
orgId: "",
|
|
@@ -735,18 +735,18 @@ export default {
|
|
|
studentCode: "",
|
|
|
identityNumber: "",
|
|
|
enable: "UNDEFINED",
|
|
|
- hasPhoto: "UNDEFINED",
|
|
|
+ hasPhoto: "UNDEFINED"
|
|
|
},
|
|
|
selectedStuIds: [],
|
|
|
statusList: [
|
|
|
{
|
|
|
value: true,
|
|
|
- label: "启用",
|
|
|
+ label: "启用"
|
|
|
},
|
|
|
{
|
|
|
value: false,
|
|
|
- label: "禁用",
|
|
|
- },
|
|
|
+ label: "禁用"
|
|
|
+ }
|
|
|
],
|
|
|
|
|
|
tableData: [],
|
|
@@ -759,7 +759,7 @@ export default {
|
|
|
|
|
|
unbindStudentCodeDialog: false,
|
|
|
unbindStudentCodeData: {
|
|
|
- tableData: [],
|
|
|
+ tableData: []
|
|
|
},
|
|
|
|
|
|
errMessages: [],
|
|
@@ -789,7 +789,7 @@ export default {
|
|
|
courseName: "",
|
|
|
infoCollector: "",
|
|
|
identityNumber: "",
|
|
|
- identityNumberLike: false,
|
|
|
+ identityNumberLike: false
|
|
|
},
|
|
|
resetPasswordByOrgIdRules: {
|
|
|
orgId: [
|
|
@@ -797,9 +797,9 @@ export default {
|
|
|
type: "number",
|
|
|
required: true,
|
|
|
message: "请选择学习中心",
|
|
|
- trigger: "change",
|
|
|
- },
|
|
|
- ],
|
|
|
+ trigger: "change"
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
examStageDisabled4Search: true,
|
|
|
queryExamStages4SearchLoading: false,
|
|
@@ -812,17 +812,17 @@ export default {
|
|
|
operate: null,
|
|
|
studentId: "",
|
|
|
startTime: null,
|
|
|
- endTime: null,
|
|
|
+ endTime: null
|
|
|
},
|
|
|
tableData: [],
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
- total: 10,
|
|
|
- },
|
|
|
+ total: 10
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState({ user: (state) => state.user }),
|
|
|
+ ...mapState({ user: state => state.user }),
|
|
|
stuIds() {
|
|
|
var stuIds = "";
|
|
|
for (let stuId of this.selectedStuIds) {
|
|
@@ -838,8 +838,8 @@ export default {
|
|
|
return this.selectedStuIds.length === 0;
|
|
|
},
|
|
|
isSuperAdmin() {
|
|
|
- return this.user.roleList.some((role) => role.roleCode == "SUPER_ADMIN");
|
|
|
- },
|
|
|
+ return this.user.roleList.some(role => role.roleCode == "SUPER_ADMIN");
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
gotoOperateLog(studentId) {
|
|
@@ -887,12 +887,12 @@ export default {
|
|
|
this.studentLog.pageSize;
|
|
|
this.$httpWithMsg
|
|
|
.get(url, { params: this.studentLog.formSearch })
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.studentLog.tableData = response.data.list;
|
|
|
this.studentLog.total = response.data.total;
|
|
|
this.studentLog.loading = false;
|
|
|
|
|
|
- this.$nextTick(function () {
|
|
|
+ this.$nextTick(function() {
|
|
|
this.studentLog.paginationShow = true;
|
|
|
});
|
|
|
})
|
|
@@ -903,7 +903,7 @@ export default {
|
|
|
this.resetPasswordByOrgIdForm.orgId = null;
|
|
|
if (this.pureLC) {
|
|
|
this.orgList4RestPassword = [
|
|
|
- { id: this.lc_id, name: this.lc_name, code: this.lc_code },
|
|
|
+ { id: this.lc_id, name: this.lc_name, code: this.lc_code }
|
|
|
];
|
|
|
this.resetPasswordByOrgIdForm.orgId = this.lc_id;
|
|
|
} else {
|
|
@@ -912,17 +912,17 @@ export default {
|
|
|
this.resetPasswordByOrgIdDialog = true;
|
|
|
},
|
|
|
submitResetPasswordByOrgId() {
|
|
|
- this.$refs.resetPasswordByOrgIdForm.validate((valid) => {
|
|
|
+ this.$refs.resetPasswordByOrgIdForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
var url =
|
|
|
CORE_API +
|
|
|
"/student/resetPasswordByOrgId/" +
|
|
|
this.resetPasswordByOrgIdForm.orgId;
|
|
|
- this.$httpWithMsg.put(url).then((response) => {
|
|
|
+ this.$httpWithMsg.put(url).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
|
- message: "重置密码成功",
|
|
|
+ message: "重置密码成功"
|
|
|
});
|
|
|
this.searchForm();
|
|
|
this.resetPasswordByOrgIdDialog = false;
|
|
@@ -945,11 +945,11 @@ export default {
|
|
|
orgName;
|
|
|
this.$httpWithMsg
|
|
|
.get(url)
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.getOrgList4SearchLoading = false;
|
|
|
this.orgList4Search = response.data;
|
|
|
})
|
|
|
- .catch((response) => {
|
|
|
+ .catch(response => {
|
|
|
console.log(response);
|
|
|
this.getOrgList4SearchLoading = false;
|
|
|
});
|
|
@@ -964,11 +964,11 @@ export default {
|
|
|
orgName;
|
|
|
this.$httpWithMsg
|
|
|
.get(url)
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.getOrgList4RestPasswordLoading = false;
|
|
|
this.orgList4RestPassword = response.data;
|
|
|
})
|
|
|
- .catch((response) => {
|
|
|
+ .catch(response => {
|
|
|
console.log(response);
|
|
|
this.getOrgList4RestPasswordLoading = false;
|
|
|
});
|
|
@@ -982,8 +982,8 @@ export default {
|
|
|
this.queryExams4SearchLoading = true;
|
|
|
}
|
|
|
this.$httpWithMsg
|
|
|
- .get(EXAM_WORK_API + "/exam/queryByNameLike?name=" + name)
|
|
|
- .then((response) => {
|
|
|
+ .get(EXAM_WORK_API + "/exam/queryByNameLike?enable=true&name=" + name)
|
|
|
+ .then(response => {
|
|
|
if ("search" == where) {
|
|
|
this.queryExams4SearchLoading = false;
|
|
|
this.examList4Search = response.data;
|
|
@@ -1022,12 +1022,12 @@ export default {
|
|
|
param;
|
|
|
this.$httpWithMsg
|
|
|
.get(url)
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.stuExamList = response.data.list;
|
|
|
this.stuExamTotal = response.data.total;
|
|
|
this.stuExamLoading = false;
|
|
|
})
|
|
|
- .catch(function (response) {
|
|
|
+ .catch(function(response) {
|
|
|
console.log(response);
|
|
|
this.stuExamLoading = false;
|
|
|
});
|
|
@@ -1052,7 +1052,7 @@ export default {
|
|
|
this.$notify({
|
|
|
showClose: true,
|
|
|
message: "未上传照片",
|
|
|
- type: "error",
|
|
|
+ type: "error"
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -1098,7 +1098,7 @@ export default {
|
|
|
this.pageSize +
|
|
|
"?" +
|
|
|
param;
|
|
|
- this.$httpWithMsg.get(url).then((response) => {
|
|
|
+ this.$httpWithMsg.get(url).then(response => {
|
|
|
this.tableData = response.data.list;
|
|
|
this.total = response.data.total;
|
|
|
});
|
|
@@ -1122,7 +1122,7 @@ export default {
|
|
|
if (this.stuIds.length == 0) {
|
|
|
this.$notify({
|
|
|
type: "warning",
|
|
|
- message: "请选择学生",
|
|
|
+ message: "请选择学生"
|
|
|
});
|
|
|
return "";
|
|
|
} else {
|
|
@@ -1137,7 +1137,7 @@ export default {
|
|
|
studentCode: cur,
|
|
|
rootOrgId: row.rootOrgId,
|
|
|
name: row.name,
|
|
|
- identityNumber: row.identityNumber,
|
|
|
+ identityNumber: row.identityNumber
|
|
|
});
|
|
|
}
|
|
|
this.unbindStudentCodeDialog = true;
|
|
@@ -1145,15 +1145,15 @@ export default {
|
|
|
unbindStudentCode(row) {
|
|
|
var params = new URLSearchParams({
|
|
|
studentCode: row.studentCode,
|
|
|
- rootOrgId: row.rootOrgId,
|
|
|
+ rootOrgId: row.rootOrgId
|
|
|
});
|
|
|
this.$confirm("是否解绑学号?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}).then(() => {
|
|
|
var url = CORE_API + "/student/unbindStudentCode?" + params;
|
|
|
- this.$httpWithMsg.post(url).then((response) => {
|
|
|
+ this.$httpWithMsg.post(url).then(response => {
|
|
|
console.log(response);
|
|
|
let newTableData = [];
|
|
|
for (let cur of this.unbindStudentCodeData.tableData) {
|
|
@@ -1164,7 +1164,7 @@ export default {
|
|
|
this.unbindStudentCodeData.tableData = newTableData;
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
|
- message: "解绑成功",
|
|
|
+ message: "解绑成功"
|
|
|
});
|
|
|
this.searchForm();
|
|
|
});
|
|
@@ -1176,14 +1176,14 @@ export default {
|
|
|
this.$confirm("是否解绑安全手机号?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}).then(() => {
|
|
|
var url = CORE_API + "/student/unbindSecurityPhone/" + stuIds;
|
|
|
- this.$httpWithMsg.put(url).then((response) => {
|
|
|
+ this.$httpWithMsg.put(url).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
|
- message: "解绑成功",
|
|
|
+ message: "解绑成功"
|
|
|
});
|
|
|
this.searchForm();
|
|
|
});
|
|
@@ -1196,14 +1196,14 @@ export default {
|
|
|
this.$confirm("是否重置所选学生的密码?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}).then(() => {
|
|
|
var url = CORE_API + "/student/resetPass/" + stuIds;
|
|
|
- this.$httpWithMsg.put(url).then((response) => {
|
|
|
+ this.$httpWithMsg.put(url).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
|
- message: "重置密码成功",
|
|
|
+ message: "重置密码成功"
|
|
|
});
|
|
|
this.searchForm();
|
|
|
});
|
|
@@ -1217,14 +1217,14 @@ export default {
|
|
|
this.$confirm("是否禁用所选学生?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}).then(() => {
|
|
|
var url = CORE_API + "/student/disable/" + stuIds;
|
|
|
- this.$httpWithMsg.put(url).then((response) => {
|
|
|
+ this.$httpWithMsg.put(url).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
|
- message: "禁用成功",
|
|
|
+ message: "禁用成功"
|
|
|
});
|
|
|
this.searchForm();
|
|
|
});
|
|
@@ -1238,14 +1238,14 @@ export default {
|
|
|
this.$confirm("是否启用所选学生?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}).then(() => {
|
|
|
var url = CORE_API + "/student/enable/" + stuIds;
|
|
|
- this.$httpWithMsg.put(url).then((response) => {
|
|
|
+ this.$httpWithMsg.put(url).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
|
- message: "启用成功",
|
|
|
+ message: "启用成功"
|
|
|
});
|
|
|
this.searchForm();
|
|
|
});
|
|
@@ -1266,7 +1266,7 @@ export default {
|
|
|
console.log(fileList);
|
|
|
this.$notify({
|
|
|
message: "上传成功",
|
|
|
- type: "success",
|
|
|
+ type: "success"
|
|
|
});
|
|
|
this.fileLoading = false;
|
|
|
this.photoUploadDialog = false;
|
|
@@ -1280,7 +1280,7 @@ export default {
|
|
|
if (response.status == 500) {
|
|
|
this.$notify({
|
|
|
message: json.desc,
|
|
|
- type: "error",
|
|
|
+ type: "error"
|
|
|
});
|
|
|
}
|
|
|
this.fileLoading = false;
|
|
@@ -1293,14 +1293,14 @@ export default {
|
|
|
if (fileList.length == 0) {
|
|
|
this.$notify({
|
|
|
message: "上传文件不能为空",
|
|
|
- type: "error",
|
|
|
+ type: "error"
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
if (fileList.length > 1) {
|
|
|
this.$notify({
|
|
|
message: "每次只能上传一个文件",
|
|
|
- type: "error",
|
|
|
+ type: "error"
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
@@ -1309,7 +1309,7 @@ export default {
|
|
|
if (!f.endsWith(".jpg") && !f.endsWith(".png")) {
|
|
|
this.$notify({
|
|
|
message: "上传文件必须为jpg或者png格式",
|
|
|
- type: "error",
|
|
|
+ type: "error"
|
|
|
});
|
|
|
this.initUpload();
|
|
|
return false;
|
|
@@ -1336,7 +1336,7 @@ export default {
|
|
|
Object.keys(this.rolePrivileges).toString()
|
|
|
);
|
|
|
let url = CORE_API + "/rolePrivilege/checkPrivileges?" + params;
|
|
|
- this.$httpWithMsg.post(url).then((response) => {
|
|
|
+ this.$httpWithMsg.post(url).then(response => {
|
|
|
this.rolePrivileges = response.data;
|
|
|
});
|
|
|
},
|
|
@@ -1356,13 +1356,13 @@ export default {
|
|
|
|
|
|
if (this.pureLC) {
|
|
|
let url = CORE_API + "/user/" + this.user.userId;
|
|
|
- this.$httpWithMsg.get(url).then((response) => {
|
|
|
+ this.$httpWithMsg.get(url).then(response => {
|
|
|
var userInfo = response.data;
|
|
|
this.lc_id = userInfo.orgId;
|
|
|
this.lc_name = userInfo.orgName;
|
|
|
this.lc_code = userInfo.orgCode;
|
|
|
this.orgList4Search = [
|
|
|
- { id: this.lc_id, name: this.lc_name, code: this.lc_code },
|
|
|
+ { id: this.lc_id, name: this.lc_name, code: this.lc_code }
|
|
|
];
|
|
|
this.formSearch.orgId = this.lc_id;
|
|
|
});
|
|
@@ -1370,7 +1370,7 @@ export default {
|
|
|
|
|
|
let url = CORE_API + "/org/getRootOrgList";
|
|
|
|
|
|
- this.$httpWithMsg.get(url).then((response) => {
|
|
|
+ this.$httpWithMsg.get(url).then(response => {
|
|
|
this.rootOrgList = response.data;
|
|
|
});
|
|
|
|
|
@@ -1380,7 +1380,7 @@ export default {
|
|
|
},
|
|
|
handleExamChange4Search(value) {
|
|
|
if (this.examList4Search.length > 0) {
|
|
|
- let examArr = this.examList4Search.filter((p) => p.id == value);
|
|
|
+ let examArr = this.examList4Search.filter(p => p.id == value);
|
|
|
if (examArr && examArr.length > 0) {
|
|
|
let exam = examArr[0];
|
|
|
if (
|
|
@@ -1410,7 +1410,7 @@ export default {
|
|
|
"&enable=true&name=" +
|
|
|
name
|
|
|
)
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
if ("search" == where) {
|
|
|
this.queryExamStages4SearchLoading = false;
|
|
|
this.examStageList4Search = response.data;
|
|
@@ -1419,7 +1419,7 @@ export default {
|
|
|
this.examStageList4InsertOrUpdate = response.data;
|
|
|
}
|
|
|
})
|
|
|
- .catch((response) => {
|
|
|
+ .catch(response => {
|
|
|
console.log(response);
|
|
|
if ("search" == where) {
|
|
|
this.queryExamStages4SearchLoading = false;
|
|
@@ -1427,15 +1427,15 @@ export default {
|
|
|
this.queryExamStages4InsertOrUpdateLoading = false;
|
|
|
}
|
|
|
});
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
this.init();
|
|
|
this.uploadHeaders = {
|
|
|
key: this.user.key,
|
|
|
- token: this.user.token,
|
|
|
+ token: this.user.token
|
|
|
};
|
|
|
- },
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style scoped>
|