|
@@ -582,9 +582,18 @@
|
|
|
style="width: 100%;text-align:center;"
|
|
|
@selection-change="selectChange"
|
|
|
>
|
|
|
- <el-table-column type="selection" width="40"></el-table-column>
|
|
|
- <el-table-column prop="id" label="ID" sortable></el-table-column>
|
|
|
- <el-table-column label="考生">
|
|
|
+ <el-table-column
|
|
|
+ type="selection"
|
|
|
+ width="40"
|
|
|
+ fixed="left"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="id"
|
|
|
+ label="ID"
|
|
|
+ sortable
|
|
|
+ fixed="left"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column label="考生" fixed="left">
|
|
|
<template slot-scope="scope">
|
|
|
<el-popover trigger="hover" placement="left">
|
|
|
<div style="font-size: 18px;font-family: 新宋体">
|
|
@@ -676,13 +685,28 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="studentCode" label="学号" sortable>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="identityNumber" label="身份证号" sortable>
|
|
|
+ <el-table-column
|
|
|
+ prop="identityNumber"
|
|
|
+ label="身份证号"
|
|
|
+ width="120"
|
|
|
+ sortable
|
|
|
+ >
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="orgName" label="学习中心" sortable>
|
|
|
+ <el-table-column prop="orgName" label="学习中心" width="120" sortable>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="examName" label="考试名称" sortable>
|
|
|
+ <el-table-column
|
|
|
+ prop="examName"
|
|
|
+ label="考试名称"
|
|
|
+ width="120"
|
|
|
+ sortable
|
|
|
+ >
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="courseName" label="课程名称" sortable>
|
|
|
+ <el-table-column
|
|
|
+ prop="courseName"
|
|
|
+ label="课程名称"
|
|
|
+ width="120"
|
|
|
+ sortable
|
|
|
+ >
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="updateTime"
|
|
@@ -715,7 +739,7 @@
|
|
|
</span>
|
|
|
</span>
|
|
|
</el-table-column>
|
|
|
- <el-table-column width="300" label="操作">
|
|
|
+ <el-table-column width="300" label="操作" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<div v-if="scope.row.locked">锁定中,请稍后操作</div>
|
|
|
<div v-else>
|
|
@@ -1110,18 +1134,13 @@ export default {
|
|
|
this.getOrgList(orgName, "insertOrUpdate");
|
|
|
},
|
|
|
getOrgList(orgName, where) {
|
|
|
- if (Object.prototype.toString.call(orgName) != "[object String]") {
|
|
|
- return;
|
|
|
- }
|
|
|
- orgName = orgName.split(" - ")[0];
|
|
|
if ("search" == where) {
|
|
|
this.getOrgList4SearchLoading = true;
|
|
|
} else if ("insertOrUpdate" == where) {
|
|
|
this.getOrgList4InsertOrUpdateLoading = true;
|
|
|
}
|
|
|
|
|
|
- var url =
|
|
|
- CORE_API + "/org/query?" + new URLSearchParams({ name: orgName });
|
|
|
+ let url = CORE_API + "/org/query?name=" + orgName;
|
|
|
this.$httpWithMsg
|
|
|
.get(url)
|
|
|
.then(response => {
|
|
@@ -1229,32 +1248,22 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getCourses4Search(query) {
|
|
|
- query = query.split(" - ")[0];
|
|
|
- if (query) {
|
|
|
- this.courseLoading4Search = true;
|
|
|
- this.$httpWithMsg
|
|
|
- .get(CORE_API + "/course/query?name=" + query)
|
|
|
- .then(response => {
|
|
|
- this.courseList4Search = response.data;
|
|
|
- this.courseLoading4Search = false;
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.courseList4Search = [];
|
|
|
- }
|
|
|
+ this.courseLoading4Search = true;
|
|
|
+ this.$httpWithMsg
|
|
|
+ .get(CORE_API + "/course/query?name=" + query)
|
|
|
+ .then(response => {
|
|
|
+ this.courseList4Search = response.data;
|
|
|
+ this.courseLoading4Search = false;
|
|
|
+ });
|
|
|
},
|
|
|
getCourses4InsertOrUpdate(query) {
|
|
|
- query = query.split(" - ")[0];
|
|
|
- if (query) {
|
|
|
- this.courseLoading4InsertOrUpdate = true;
|
|
|
- this.$httpWithMsg
|
|
|
- .get(CORE_API + "/course/query?name=" + query)
|
|
|
- .then(response => {
|
|
|
- this.courseList4InsertOrUpdate = response.data;
|
|
|
- this.courseLoading4InsertOrUpdate = false;
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.courseList4InsertOrUpdate = [];
|
|
|
- }
|
|
|
+ this.courseLoading4InsertOrUpdate = true;
|
|
|
+ this.$httpWithMsg
|
|
|
+ .get(CORE_API + "/course/query?name=" + query)
|
|
|
+ .then(response => {
|
|
|
+ this.courseList4InsertOrUpdate = response.data;
|
|
|
+ this.courseLoading4InsertOrUpdate = false;
|
|
|
+ });
|
|
|
},
|
|
|
//新增信息
|
|
|
addStudent() {
|
|
@@ -1413,11 +1422,13 @@ export default {
|
|
|
} else {
|
|
|
this.examStudentForm.orgId = null;
|
|
|
this.orgList4InsertOrUpdate = null;
|
|
|
+ this.getOrgList4InsertOrUpdate("");
|
|
|
}
|
|
|
this.examList4InsertOrUpdate = [];
|
|
|
this.courseList4InsertOrUpdate = [];
|
|
|
|
|
|
this.queryExams4InsertOrUpdate("");
|
|
|
+ this.getCourses4InsertOrUpdate("");
|
|
|
this.addingStudentDialog = true;
|
|
|
},
|
|
|
//修改
|
|
@@ -1679,6 +1690,9 @@ export default {
|
|
|
this.pureLC = false;
|
|
|
}
|
|
|
|
|
|
+ this.getCourses4Search("");
|
|
|
+ this.getOrgList4Search("");
|
|
|
+ this.queryExams4Search("");
|
|
|
this.formSearch.rootOrgId = this.user.rootOrgId;
|
|
|
if (this.pureLC) {
|
|
|
var url = CORE_API + "/user/" + this.user.userId;
|
|
@@ -1695,11 +1709,9 @@ export default {
|
|
|
];
|
|
|
this.formSearch.orgId = this.lc_id;
|
|
|
this.examStudentForm.orgId = this.lc_id;
|
|
|
- this.queryExams4Search("");
|
|
|
this.searchForm();
|
|
|
});
|
|
|
} else {
|
|
|
- this.queryExams4Search("");
|
|
|
this.searchForm();
|
|
|
}
|
|
|
}
|