|
@@ -87,6 +87,14 @@
|
|
|
@click="batchLimit"
|
|
|
>禁考
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="danger"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ :disabled="noBatchSelected"
|
|
|
+ @click="batchDelete"
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
|
|
|
<div style="width: 100%;margin-bottom: 10px;"></div>
|
|
|
|
|
@@ -513,6 +521,26 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ batchDelete() {
|
|
|
+ this.$confirm("所选学生是否删除?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ let url =
|
|
|
+ EXAM_WORK_API +
|
|
|
+ "/exam/deleteExamOrgSettings/" +
|
|
|
+ this.selectedOrgSettings;
|
|
|
+ this.$httpWithMsg.put(url).then(response => {
|
|
|
+ console.log(response);
|
|
|
+ this.$notify({
|
|
|
+ type: "success",
|
|
|
+ message: "删除成功"
|
|
|
+ });
|
|
|
+ this.search();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
selectChange(row) {
|
|
|
this.selectedOrgSettings = [];
|
|
|
row.forEach((element, index) => {
|