Browse Source

refactor: 删除午用的mixin

chenhao 2 years ago
parent
commit
b9705f1cd3

+ 0 - 51
src/features/invigilation/RealtimeMonitoring/mixins/RealtimeMonitoringMixin.js

@@ -1,51 +0,0 @@
-import { invigilateExamFinish } from "@/api/invigilation";
-
-export default {
-  data() {
-    return {
-      filter: {
-        examId: "",
-        roomCode: "",
-        paperDownload: null,
-        status: null,
-        monitorStatusSource: null,
-        monitorVideoSource: null,
-        name: null,
-        identity: null,
-        maxWarningCount: undefined,
-        minWarningCount: undefined,
-      },
-    };
-  },
-  methods: {
-    /** 结束监考 */
-    async finishInvigilationExam() {
-      const result = await this.$confirm(
-        "确定要结束监考吗?",
-        "结束监考确认提醒",
-        {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          iconClass: "el-icon-warning",
-          customClass: "el-message-box__error",
-        }
-      ).catch(() => {});
-
-      if (!result) return;
-
-      await invigilateExamFinish(this.filter.examId);
-      this.$refs.ExamBatchDialog.getExamList();
-      this.$message({
-        type: "success",
-        message: "操作成功!",
-      });
-    },
-    /** 查看详情 */
-    toDetail(row) {
-      this.$router.push({
-        name: "WarningDetail",
-        params: { examRecordId: row.examRecordId },
-      });
-    },
-  },
-};