|
|
@@ -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) => {
|