11wqe1 5 hónapja
szülő
commit
8819f7067f
1 módosított fájl, 13 hozzáadás és 13 törlés
  1. 13 13
      src/components/pages/studentManageNew/component/addstu.vue

+ 13 - 13
src/components/pages/studentManageNew/component/addstu.vue

@@ -564,7 +564,7 @@ export default {
       console.log(box, "box");
       this.uploadfileLoading = true;
       this.impbox = box;
-      const batchSize = 3;
+      const batchSize = 50;
       if (box.length > batchSize) {
         // 计算总批次数
         const totalBatches = Math.ceil(box.length / batchSize);
@@ -578,19 +578,19 @@ export default {
         await this.uploadBatch(box);
       }
       this.$message({
-            message: this.lang.ssAddOk,
-            type: "success",
-          });
-          this.uploadfileLoading = false;
+        message: this.lang.ssAddOk,
+        type: "success",
+      });
+      this.uploadfileLoading = false;
 
-          this.deltypy = 0;
-          this.popBoxdia= true;
-          // this.addStuVisible = false;
-          console.log('this.selectedStuData',this.selectedStuData);
-          
-          // this.selectedStuData = [];
-          this.$emit("getCascaderData");
-          this.addOp3('1', "", { type: "student_add" }, "success")
+      this.deltypy = 0;
+      this.popBoxdia= true;
+      // this.addStuVisible = false;
+      console.log('this.selectedStuData',this.selectedStuData);
+      
+      // this.selectedStuData = [];
+      this.$emit("getCascaderData");
+      this.addOp3('1', "", { type: "student_add" }, "success")
     },
     async uploadBatch(box){
       return new Promise((resolve, reject) => {