瀏覽代碼

考务学习中心特殊设置支持删除

deason 6 年之前
父節點
當前提交
9a408800a7
共有 1 個文件被更改,包括 28 次插入0 次删除
  1. 28 0
      src/modules/examwork/view/onlineExamOrgSettings.vue

+ 28 - 0
src/modules/examwork/view/onlineExamOrgSettings.vue

@@ -87,6 +87,14 @@
           @click="batchLimit"
           @click="batchLimit"
           >禁考
           >禁考
         </el-button>
         </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>
         <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) {
     selectChange(row) {
       this.selectedOrgSettings = [];
       this.selectedOrgSettings = [];
       row.forEach((element, index) => {
       row.forEach((element, index) => {