lsc 2 hete
szülő
commit
32623e670a
2 módosított fájl, 14 hozzáadás és 14 törlés
  1. 11 11
      src/components/pages/course.vue
  2. 3 3
      src/components/pages/sz/teacher.vue

+ 11 - 11
src/components/pages/course.vue

@@ -166,7 +166,7 @@
           </div>
         </div>
       </div>
-      <div class="student_table">
+      <div class="student_table" v-loading="isLoading">
         <div class="course_box">
           <div class="out_box" v-for="(item, index) in course" :key="index">
             <!-- <div class="myCourse" v-if="item.isCourseType == 1 && groupA == 0">
@@ -1129,11 +1129,11 @@ export default {
       this.getCourse();
     },
     getCourse() {
-      if (!this.loading) {
-        this.loading = this.openLoading(
-          document.querySelector(".student_table")
-        );
-      }
+      // if (!this.loading) {
+      //   this.loading = this.openLoading(
+      //     document.querySelector(".student_table")
+      //   );
+      // }
       // var typeE = [];
       // var typea, typeb, typec, typed;
       // if (this.isChoose == 1) {
@@ -1182,8 +1182,8 @@ export default {
       this.ajax
         .get(this.$store.state.api + "selectCourseNew2", params)
         .then((res) => {
-          this.loading.close();
-          this.loading = "";
+          // this.loading.close();
+          // this.loading = "";
           this.isLoading = false;
           this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
           this.course = res.data[0];
@@ -1225,9 +1225,9 @@ export default {
         type: "warning",
       })
         .then(() => {
-          const loading = this.openLoading(
-            document.querySelector(".student_table")
-          );
+          // const loading = this.openLoading(
+          //   document.querySelector(".student_table")
+          // );
           this.isLoading = true;
           let params = {
             cid: cid,

+ 3 - 3
src/components/pages/sz/teacher.vue

@@ -587,7 +587,7 @@ export default {
       if(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(this.sMail)){
         mail = this.sMail;
       }else{
-        mail = this.sMail + "@" + this.userSuffix
+        mail = this.sMail + this.userSuffix
       }
       
       if (this.time()) {
@@ -621,7 +621,7 @@ export default {
       if(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(this.sMail)){
         mail = this.sMail;
       }else{
-        mail = this.sMail + "@" + this.userSuffix
+        mail = this.sMail + this.userSuffix
       }
       let params = [
         {
@@ -888,7 +888,7 @@ export default {
             if(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(v["教师账号"])){
               obj.mail = v["教师账号"];
             }else{
-              obj.mail = v["教师账号"] + "@" + _this.userSuffix
+              obj.mail = v["教师账号"] + _this.userSuffix
             }
             obj.school = v["学校"];
             arr.push(obj);