lsc 2 tahun lalu
induk
melakukan
62bb06fa6f

+ 1 - 1
dist/index.html

@@ -25,4 +25,4 @@
       height: 100%;
       width: 100%;
       background: #e6eaf0;
-    }</style><link href=./static/css/app.d885c6cd39bbbba83d18b067801fec1e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.e8eb4c1cc481dbb543fc.js></script><script type=text/javascript src=./static/js/app.e4cb0cb155a1dfda4379.js></script></body></html><script>document.domain = document.domain.split(".").slice(-2).join(".");</script>
+    }</style><link href=./static/css/app.7c9125275ea6a5cf23f1a7378988279f.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.e8eb4c1cc481dbb543fc.js></script><script type=text/javascript src=./static/js/app.a476d9596d7022eec226.js></script></body></html><script>document.domain = document.domain.split(".").slice(-2).join(".");</script>

File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/css/app.7c9125275ea6a5cf23f1a7378988279f.css


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/css/app.7c9125275ea6a5cf23f1a7378988279f.css.map


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/css/app.d885c6cd39bbbba83d18b067801fec1e.css.map


TEMPAT SAMPAH
dist/static/img/csBg.86b5321.png


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/app.a476d9596d7022eec226.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/app.a476d9596d7022eec226.js.map


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/app.e4cb0cb155a1dfda4379.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/manifest.3512a67a6213c2df4180.js.map


+ 13 - 6
src/components/pages/GM/school.vue

@@ -16,7 +16,7 @@
           background: #fff;
           padding: 0px 25px;
           box-sizing: border-box;
-          border-radius: 5px;
+          margin: 10px auto 0;
         "
       >
         <div class="pb_head">
@@ -26,6 +26,7 @@
         <div class="student_head">
           <div class="student_search">
             <el-button
+                class="btnClassGM"
               size="small"
               type="primary"
               @click="dialogVisible = true"
@@ -34,7 +35,8 @@
             >
           </div>
         </div>
-
+      </div>
+      <div class="pb_content_body" style="margin: 0 auto 10px;">
         <div class="student_table">
           <el-table
             ref="table"
@@ -56,12 +58,14 @@
               <template slot-scope="scope">
                 <div class="pb_buttonBox">
                   <el-button
+                  class="btnClassGM"
                     size="mini"
                     type="primary"
                     @click="updateS(scope.row.id, scope.row.name)"
                     >修改</el-button
                   >
                   <el-button
+                  class="btnClassGM"
                     size="mini"
                     type="primary"
                     @click="deleteSchool(scope.row.id)"
@@ -102,7 +106,7 @@
       </div>
       <span slot="footer" class="dialog-footer">
         <el-button @click="dialogVisible = false">取 消</el-button>
-        <el-button type="primary" @click="addSchool">确 定</el-button>
+        <el-button class="btnClassGM" type="primary" @click="addSchool">确 定</el-button>
       </span>
     </el-dialog>
     <el-dialog
@@ -123,7 +127,7 @@
       </div>
       <span slot="footer" class="dialog-footer">
         <el-button @click="dialogVisible1 = false">取 消</el-button>
-        <el-button type="primary" @click="updateSchool">确 定</el-button>
+        <el-button class="btnClassGM" type="primary" @click="updateSchool">确 定</el-button>
       </span>
     </el-dialog>
   </div>
@@ -156,6 +160,7 @@ export default {
       total2: 0,
       userid: this.$route.query.userid,
       oid: this.$route.query.oid,
+      org: this.$route.query.org,
       dialogVisible: false,
       dialogVisible1: false,
       dialogVisible2: false,
@@ -393,10 +398,11 @@ export default {
     selectSchool() {
       this.isLoading = true;
       let params = {
+        org: this.org,
         page: this.page,
       };
       this.ajax
-        .get(this.$store.state.api + "selectSchoolName", params)
+        .get(this.$store.state.api + "selectSchoolNameOrg", params)
         .then((res) => {
           this.isLoading = false;
           this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
@@ -412,10 +418,11 @@ export default {
         {
           n: this.schoolName,
           cuid: this.userid,
+          org: this.org,
         },
       ];
       this.ajax
-        .post(this.$store.state.api + "addSchoolAdmin", params)
+        .post(this.$store.state.api + "addSchoolOrg", params)
         .then((res) => {
           this.$message({
             message: "添加成功",

+ 15 - 247
src/components/pages/studentGM.vue

@@ -218,7 +218,8 @@ export default {
       sPhoneUser: "",
       userid: this.$route.query.userid,
       oid: this.$route.query.oid,
-      cid: this.$route.query.cid,
+      org: this.$route.query.org,
+      cid: '',
       tx: require("../../assets/avatar.png"),
     };
   },
@@ -363,10 +364,11 @@ export default {
           ph: this.sPhone,
           sid: this.sId,
           cid: this.sByClass,
+          org: this.org,
         },
       ];
       this.ajax
-        .post(this.$store.state.api + "batchRegistration", params)
+        .post(this.$store.state.api + "batchRegistrationOrg", params)
         .then((res) => {
           // console.log(res.data.uid, res.data.ph, res.data.oid, res.data.cid);
           // this.isLoading = false;
@@ -585,16 +587,16 @@ export default {
             let obj = {};
             let a = "";
             var num = "";
-            for (var cj = 0; cj < 3; cj++) {
-              num += Math.floor(Math.random() * 10);
-            }
-            a =
-              pinyin.getFullChars(v["学生姓名"]).toLowerCase() +
-              num +
-              "@cocorobo.cc";
+            // for (var cj = 0; cj < 3; cj++) {
+            //   num += Math.floor(Math.random() * 10);
+            // }
+            // a =
+            //   pinyin.getFullChars(v["学生姓名"]).toLowerCase() +
+            //   num +
+            //   "@cocorobo.cc";
             obj.sId = v["学号"];
             obj.name = v["学生姓名"];
-            obj.mail = v["学生邮箱"] ? v["学生邮箱"] : a;
+            obj.mail = v["学生邮箱"];
             obj.phone = v["学生手机号"];
             obj.class = v["班级"];
             arr.push(obj);
@@ -614,17 +616,7 @@ export default {
             } else if (item.sId === "") {
               _b = 1;
               _this.$message.error("学生学号不能为空,请重新上传");
-            }
-            // else if (item.phone === "") {
-            //   _b = 1;
-            //   _this.$message.error("学生手机号不能为空,请重新上传");
-            //   break;
-            // } else if (!/^[1][3,4,5,7,8][0-9]{9}$/.test(item.phone)) {
-            //   _b = 1;
-            //   _this.$message.error("有学生手机号格式不正确,请重新上传");
-            //   break;
-            // }
-            else if (item.mail === "") {
+            }else if (item.mail === "") {
               _b = 1;
               _this.$message.error("学生邮箱不能为空,请重新上传");
               break;
@@ -637,231 +629,6 @@ export default {
               _this.$message.error("有学生邮箱格式不正确,请重新上传");
               break;
             }
-            //  else if (item.school === "") {
-            // 	_b = 1;
-            // 	_this.$message.error("学生学校不能为空,请重新上传");
-            // 	break;
-            // }
-            // else if (item.sex === "") {
-            // 	_b = 1;
-            // 	_this.$message.error("学生性别不能为空,请重新上传");
-            // 	break;
-            // }
-            // if (item.class != "") {
-            //   let _a;
-            //   let params = {
-            //     className: item.class,
-            //   };
-
-            //   _$.ajax({
-            //     url: _this.$store.state.api + "selectC", //url路径
-            //     type: "GET", //GET
-            //     async: false, //或false,是否异步
-            //     data: params,
-            //     timeout: 5000, //超时时间
-            //     dataType: "json", //返回的数据格式:
-            //     beforeSend: function (xhr) {},
-            //     success: function (res, textStatus, jqXHR) {
-            //       if (res[0].length == 0) {
-            //         _a = 1;
-            //         _this.$message.error(
-            //           "有学生班级不存在,请去添加后并重新上传"
-            //         );
-            //       } else {
-            //         item.classid = res[0][0].id;
-            //       }
-            //     },
-            //     error: function (xhr, textStatus) {
-            //       console.log(textStatus);
-            //     },
-            //     complete: function () {},
-            //   });
-            //   if (_a == 1) {
-            //     _b = 1;
-            //     break;
-            //   }
-            // }
-            // if (item.school != "") {
-            // 	let _a;
-            // 	let params = {
-            // 		schoolName: item.school,
-            // 	};
-
-            // 	_$.ajax({
-            // 		url: _this.$store.state.api + "selectS", //url路径
-            // 		type: "GET", //GET
-            // 		async: false, //或false,是否异步
-            // 		data: params,
-            // 		timeout: 5000, //超时时间
-            // 		dataType: "json", //返回的数据格式:
-            // 		beforeSend: function (xhr) {},
-            // 		success: function (res, textStatus, jqXHR) {
-            // 			if (res[0].length == 0) {
-            // 				_a = 1;
-            // 				_this.$message.error(
-            // 					"有学生学校不存在,请去添加后并重新上传"
-            // 				);
-            // 			} else {
-            // 				item.schoolid = res[0][0].id;
-            // 			}
-            // 		},
-            // 		error: function (xhr, textStatus) {
-            // 			console.log(textStatus);
-            // 		},
-            // 		complete: function () {},
-            // 	});
-            // 	if (_a == 1) {
-            // 		_b = 1;
-            // 		break;
-            // 	}
-            // }
-            //   for (var k = 0; k < arr.length; k++) {
-            //     if (item.phone != "") {
-            //       let params = { un: item.phone };
-            //       let _a;
-            //       _$.ajax({
-            //         url: _this.$store.state.api + "findPhone", //url路径
-            //         type: "GET", //GET
-            //         async: false, //或false,是否异步
-            //         data: params,
-            //         timeout: 5000, //超时时间
-            //         dataType: "json", //返回的数据格式:
-            //         beforeSend: function (xhr) {},
-            //         success: function (res, textStatus, jqXHR) {
-            //           if (res[0].length > 0) {
-            //             _this.$message.error("有学生手机号码已被注册");
-            //             _a = 1;
-            //           }
-            //         },
-            //         error: function (xhr, textStatus) {
-            //           console.log(textStatus);
-            //         },
-            //         complete: function () {},
-            //       });
-            //       if (_a == 1) {
-            //         _b = 1;
-            //         break;
-            //       }
-            //     }
-            //     if (item.mail != "") {
-            //       let params = { un: item.mail };
-            //       let _a;
-            //       _$.ajax({
-            //         url: _this.$store.state.api + "findMail", //url路径
-            //         type: "GET", //GET
-            //         async: false, //或false,是否异步
-            //         data: params,
-            //         timeout: 5000, //超时时间
-            //         dataType: "json", //返回的数据格式:
-            //         beforeSend: function (xhr) {},
-            //         success: function (res, textStatus, jqXHR) {
-            //           if (res[0].length > 0) {
-            //             _this.$message.error("有学生邮箱已被注册");
-            //             _a = 1;
-            //           }
-            //         },
-            //         error: function (xhr, textStatus) {
-            //           console.log(textStatus);
-            //         },
-            //         complete: function () {},
-            //       });
-            //       if (_a == 1) {
-            //         _b = 1;
-            //         break;
-            //       }
-            //     }
-            //     if (item.sId != "") {
-            //       let params = { un: item.sId };
-            //       let _a;
-            //       _$.ajax({
-            //         url: _this.$store.state.api + "findSid", //url路径
-            //         type: "GET", //GET
-            //         async: false, //或false,是否异步
-            //         data: params,
-            //         timeout: 5000, //超时时间
-            //         dataType: "json", //返回的数据格式:
-            //         beforeSend: function (xhr) {},
-            //         success: function (res, textStatus, jqXHR) {
-            //           if (res[0].length > 0) {
-            //             _this.$message.error("有学生学号重复");
-            //             _a = 1;
-            //           }
-            //         },
-            //         error: function (xhr, textStatus) {
-            //           console.log(textStatus);
-            //         },
-            //         complete: function () {},
-            //       });
-            //       if (_a == 1) {
-            //         _b = 1;
-            //         break;
-            //       }
-            //     }
-            //     _b = 2;
-            //   }
-            // }
-            // if (_b == 2) {
-
-            // for (var i = 0; i < arr.length; i++) {
-            //   let _i = i;
-            //   let item = arr[i];
-            //   let params = [
-            //     {
-            //       alias: item.name,
-            //       username: item.mail,
-            //       userpassword: 123456,
-            //       oid: _this.oid,
-            //       ph: item.phone,
-            //       cid: item.class,
-            //     },
-            //   ];
-
-            //   _this.ajax
-            //     .post(_this.$store.state.api + "batchRegistration", params)
-            //     .then((res) => {
-            //       let params = [
-            //         {
-            //           userid: res.data.uid,
-            //           username: item.name,
-            //           sId: item.sId,
-            //           type: 2,
-            //           oid: res.data.oid,
-            //           phone: res.data.ph ? res.data.ph : "",
-            //           cid: res.data.cid ? res.data.cid : "",
-            //           intro: "",
-            //           sex: "0",
-            //         },
-            //       ];
-            //       _this.ajax
-            //         .post(_this.$store.state.api + "updateUserByEdu", params)
-            //         .then((res) => {
-            //           console.log(res);
-            //         })
-            //         .catch((err) => {
-            //           console.error(err);
-            //         });
-            //       loading.close();
-            //       // _this.$message({
-            //       //   message: "新增成功",
-            //       //   type: "success",
-            //       // });
-            //       _this.getStudent();
-            //       // if (_i == arr.length - 1) {
-            //       //   loading.close();
-            //       //   _this.$message({
-            //       //     message: "上传成功",
-            //       //     type: "success",
-            //       //   });
-            //       //   _this.getStudent();
-            //       // }
-            //     })
-            //     .catch((err) => {
-            //       _this.$message.error("上传失败");
-            //       console.error(err);
-            //     });
-            // }
-            // } else {
-            //   loading.close();
           }
           let z = 2;
           let newArr = JSON.stringify(arr);
@@ -870,10 +637,11 @@ export default {
               arr: newArr,
               userpassword: 123456,
               oid: _this.oid,
+              org: _this.org,
             },
           ];
           _this.ajax
-            .post(_this.$store.state.api + "batchRegistrationMore", params)
+            .post(_this.$store.state.api + "batchRegistrationMoreOrg", params)
             .then((res) => {
               if (res.data.type == 1) {
                 _this.$message.error("有学生手机号码已被注册");

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini