xiatian 2 gadi atpakaļ
vecāks
revīzija
593539b7af
1 mainītis faili ar 9 papildinājumiem un 1 dzēšanām
  1. 9 1
      src/modules/marking/views/MarkPaperCheck.vue

+ 9 - 1
src/modules/marking/views/MarkPaperCheck.vue

@@ -376,7 +376,15 @@ export default {
         });
         return false;
       }
-
+      let regx = /^\d*$/;
+      if (!regx.test(this.formSearch.examRecordDataId)) {
+        this.$notify({
+          title: "警告",
+          message: "试卷ID只能输入数字",
+          type: "warning",
+        });
+        return false;
+      }
       this.$confirm("确定执行导出?", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",