11wqe1 1 månad sedan
förälder
incheckning
1722a886b1
1 ändrade filer med 14 tillägg och 11 borttagningar
  1. 14 11
      src/components/pages/studentManageNew/component/table.vue

+ 14 - 11
src/components/pages/studentManageNew/component/table.vue

@@ -183,7 +183,7 @@
         </div>
       </div>
     </div>
-    <div class="tabList" v-loading="isLoading">
+    <div class="tabList" v-loading="boxType == 0 ? tab0Loading : boxType == 1 ? tab1Loading : boxType == 2 ? tab2Loading : false">
       <el-table
         :data="tableDataList"
         ref="tableData"
@@ -687,6 +687,9 @@ export default {
       popBoxdia: false,
       insort: 0,
       EditStubox: "",
+      tab0Loading: false,
+      tab1Loading: false,
+      tab2Loading: false,
 
       delClaid: "",
       delClaidtype: "",
@@ -1474,7 +1477,7 @@ export default {
           this.cascaderDataPath = [];
         })
         .catch(err => {
-          this.isLoading = false;
+          // this.isLoading = false;
           this.$message({
             message: this.lang.Modificationfailed,
             type: "error"
@@ -1593,7 +1596,7 @@ export default {
       }
     },
     getStudent() {
-      this.isLoading = true;
+      this.tab0Loading = true;
       this.tableColumns = [];
       this.tableColumns = this.studentColumns;
       let params = {
@@ -1604,7 +1607,7 @@ export default {
       this.ajax
         .get(this.$store.state.api + "selectclaStu", params)
         .then(res => {
-          this.isLoading = false;
+          this.tab0Loading = false;
           let box1 = res.data[0];
           box1.forEach(e => {
             let kk = [];
@@ -1625,13 +1628,13 @@ export default {
           );
         })
         .catch(err => {
-          this.isLoading = false;
+          this.tab0Loading = false;
           console.error(err);
         });
     },
     // 获取兴趣班
     getInterestClass() {
-      this.isLoading = true;
+      this.tab1Loading = true;
       this.tableColumns = this.tableInterestClaColumns;
       let params = {
         oid: this.oid,
@@ -1645,18 +1648,18 @@ export default {
       this.ajax
         .get(this.$store.state.api + "selectInterestcla", params)
         .then(res => {
-          this.isLoading = false;
+          this.tab1Loading = false;
           this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
           this.interestTableData = res.data[0];
         })
         .catch(err => {
-          this.isLoading = false;
+          this.tab1Loading = false;
           console.error(err);
         });
     },
     // 学生管理全部学生
     getAllStudent() {
-      this.isLoading = true;
+      this.tab2Loading = true;
       this.cancelAllSelection();
       this.tableColumns = this.studentColumns;
       let params = {
@@ -1670,7 +1673,7 @@ export default {
       this.ajax
         .get(this.$store.state.api + "selectStudentManagesrt", params)
         .then(res => {
-          this.isLoading = false;
+          this.tab2Loading = false;
           this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
           let box1 = res.data[0];
           box1.forEach(e => {
@@ -1688,7 +1691,7 @@ export default {
           this.allTableData = res.data[0];
         })
         .catch(err => {
-          this.isLoading = false;
+          this.tab2Loading = false;
           console.error(err);
         });
     },