Sfoglia il codice sorgente

推送提示修改

zhangjie 2 anni fa
parent
commit
3c15001e44
1 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  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;
       this.modalIsShow = true;
     },
     },
     async submit() {
     async submit() {
+      if (this.exam.cloudMarkPushDataStatus === "FINISH") {
+        const confirm = await this.$confirm(
+          `当前批次已经推送过,确定要重新推送吗?`,
+          "提示",
+          {
+            type: "warning",
+          }
+        ).catch(() => {});
+        if (confirm !== "confirm") return;
+      }
+
       if (this.isSubmit) return;
       if (this.isSubmit) return;
       this.isSubmit = true;
       this.isSubmit = true;
       const data = await pushCloudMarkExam(this.modalForm).catch(() => {});
       const data = await pushCloudMarkExam(this.modalForm).catch(() => {});