|
@@ -776,9 +776,8 @@ export default {
|
776
|
776
|
this.form_data = new FormData();
|
777
|
777
|
this.form_data.append("file", file);
|
778
|
778
|
this.form_data.append("schoolid", this.powerParams.objectid);
|
779
|
|
- let _regionids = this.$store.state.userPower.regionids;
|
780
|
|
- _regionids = [..._regionids];
|
781
|
|
- this.form_data.append("regionid", _regionids.pop());
|
|
779
|
+ let regionid = this.$store.state.userPower.schoolRegid;
|
|
780
|
+ this.form_data.append("regionid", regionid);
|
782
|
781
|
} else {
|
783
|
782
|
this.importInfo.file = null;
|
784
|
783
|
this.$Message.error("请上传excel文件");
|
|
@@ -850,8 +849,7 @@ export default {
|
850
|
849
|
this.$Message.error("请选择班级!");
|
851
|
850
|
return;
|
852
|
851
|
}
|
853
|
|
- let _regionids = this.$store.state.userPower.regionids;
|
854
|
|
- _regionids = [..._regionids];
|
|
852
|
+ let regionid = this.$store.state.userPower.schoolRegid;
|
855
|
853
|
let form = {
|
856
|
854
|
username: this.addInfo.username,
|
857
|
855
|
loginname: this.addInfo.loginname,
|
|
@@ -859,7 +857,7 @@ export default {
|
859
|
857
|
loginpwd: this.addInfo.loginpwd,
|
860
|
858
|
rtype: this.powerParams.rtype,
|
861
|
859
|
objectid: this.powerParams.objectid,
|
862
|
|
- regionid: _regionids.pop(),
|
|
860
|
+ regionid: regionid,
|
863
|
861
|
schoolid: this.powerParams.objectid,
|
864
|
862
|
enabled: this.addInfo.enabled,
|
865
|
863
|
studentno: this.addInfo.studentno,
|