瀏覽代碼

推送提示修改

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(() => {});