zhangjie 2 anos atrás
pai
commit
7cb8bbd1ef

+ 1 - 1
src/modules/base/components/assignment/AssignConfig.vue

@@ -246,7 +246,7 @@ export default {
       }
       const result = await this.$confirm(`确定要发布赋分成绩吗?`, "提示", {
         type: "warning",
-      });
+      }).catch(() => {});
       if (result !== "confirm") return;
 
       if (this.publishing) return;

+ 2 - 2
src/modules/base/views/AssignmentCalculate.vue

@@ -157,7 +157,7 @@ export default {
     },
     async toPublish(row) {
       const canPublish =
-        !row.id || (row.id && row.formula && row.statue === "FINISH");
+        !row.id || (row.id && row.formula && row.status === "FINISH");
       if (!canPublish) {
         this.$message.error("赋分计算未完成,暂无法发布成绩!");
         return;
@@ -165,7 +165,7 @@ export default {
 
       const result = await this.$confirm(`确定要发布赋分成绩吗?`, "提示", {
         type: "warning",
-      });
+      }).catch(() => {});
       if (result !== "confirm") return;
 
       if (this.publishing) return;

+ 1 - 1
src/modules/base/views/UserManage.vue

@@ -238,7 +238,7 @@ export default {
         {
           type: "warning",
         }
-      );
+      ).catch(() => {});
       if (result !== "confirm") return;
 
       await resetPwd(row.id);