소스 검색

推送提示修改

zhangjie 2 년 전
부모
커밋
3c15001e44
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      src/features/examwork/ExamManagement/PushSetDialog.vue

+ 11 - 0
src/features/examwork/ExamManagement/PushSetDialog.vue

@@ -74,6 +74,17 @@ export default {
       this.modalIsShow = true;
     },
     async submit() {
+      if (this.exam.cloudMarkPushDataStatus === "FINISH") {
+        const confirm = await this.$confirm(
+          `当前批次已经推送过,确定要重新推送吗?`,
+          "提示",
+          {
+            type: "warning",
+          }
+        ).catch(() => {});
+        if (confirm !== "confirm") return;
+      }
+
       if (this.isSubmit) return;
       this.isSubmit = true;
       const data = await pushCloudMarkExam(this.modalForm).catch(() => {});