|
@@ -107,6 +107,15 @@
|
|
|
v-model="formSearch.examSite"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="状态">
|
|
|
+ <el-select v-model="formSearch.enable" class="input">
|
|
|
+ <el-option label="未选择" value="UNDEFINED"></el-option>
|
|
|
+ <el-option label="已启用" value="TRUE"></el-option>
|
|
|
+ <el-option label="已禁用" value="FALSE"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<el-form-item class="d-block">
|
|
|
<el-button
|
|
|
v-if="rolePrivileges.search_examStudent"
|
|
@@ -153,6 +162,26 @@
|
|
|
<div class="block-seperator"></div>
|
|
|
<div>
|
|
|
<span>批量操作:</span>
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ v-if="rolePrivileges.change_exam_student_availability"
|
|
|
+ size="small"
|
|
|
+ type="success"
|
|
|
+ icon="el-icon-check"
|
|
|
+ :disabled="noBatchSelected"
|
|
|
+ @click="enableExamStudent('')"
|
|
|
+ >启用</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ v-if="rolePrivileges.change_exam_student_availability"
|
|
|
+ size="small"
|
|
|
+ type="danger"
|
|
|
+ icon="el-icon-close"
|
|
|
+ :disabled="noBatchSelected"
|
|
|
+ @click="disableExamStudent('')"
|
|
|
+ >禁用</el-button
|
|
|
+ >
|
|
|
+
|
|
|
<el-button
|
|
|
v-if="rolePrivileges.del_examStudent"
|
|
|
size="small"
|
|
@@ -920,7 +949,8 @@ export default {
|
|
|
courseId: "",
|
|
|
infoCollector: "",
|
|
|
identityNumber: "",
|
|
|
- examSite: ""
|
|
|
+ examSite: "",
|
|
|
+ enable: "UNDEFINED"
|
|
|
},
|
|
|
paperTypeList: PAPER_TYPE,
|
|
|
courseList4Search: [],
|
|
@@ -1475,12 +1505,15 @@ export default {
|
|
|
},
|
|
|
//禁用
|
|
|
disableExamStudent(row) {
|
|
|
+ let stuIds = this.checkIds(row);
|
|
|
+ if (!stuIds) return;
|
|
|
+
|
|
|
this.$confirm("是否禁用所选考生?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
- var url = EXAM_WORK_API + "/exam_student/disable/" + row.id;
|
|
|
+ var url = EXAM_WORK_API + "/exam_student/disable/" + stuIds;
|
|
|
this.$httpWithMsg.put(url).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
@@ -1493,12 +1526,15 @@ export default {
|
|
|
},
|
|
|
//启用
|
|
|
enableExamStudent(row) {
|
|
|
+ let stuIds = this.checkIds(row);
|
|
|
+ if (!stuIds) return;
|
|
|
+
|
|
|
this.$confirm("是否启用所选考生?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
- var url = EXAM_WORK_API + "/exam_student/enable/" + row.id;
|
|
|
+ var url = EXAM_WORK_API + "/exam_student/enable/" + stuIds;
|
|
|
this.$httpWithMsg.put(url).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
@@ -1509,6 +1545,21 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ checkIds(row) {
|
|
|
+ if (row) {
|
|
|
+ return row.id;
|
|
|
+ } else {
|
|
|
+ if (this.examStuIds.length == 0) {
|
|
|
+ this.$notify({
|
|
|
+ type: "warning",
|
|
|
+ message: "请选择考生"
|
|
|
+ });
|
|
|
+ return "";
|
|
|
+ } else {
|
|
|
+ return this.examStuIds;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
closeAddingStudentDialog() {
|
|
|
this.addingStudentDialog = false;
|
|
|
},
|