Browse Source

修改期末打分

yuanyiming 1 year ago
parent
commit
d44e6d4b90

+ 8 - 3
src/components/pages/kindStudentEva/test/reportDialog/index.vue

@@ -13,6 +13,7 @@
       tooltip-effect="dark"
       style="width: 100%"
       border
+      v-loading="isLoading"
       header-align="center"
       :header-cell-style="{
         background: '#E0EAFB',
@@ -131,7 +132,9 @@ export default {
       // 总条数
       total: 0,
       // 当前页
-      page: 1
+      page: 1,
+      isLoading: true,
+
     };
   },
   watch: {
@@ -151,6 +154,8 @@ export default {
     },
     // 获取数据
     getData() {
+      this.isLoading = true;
+      this.tableData=[]
       // 获取筛选框数据
       let params = {
         uid: this.userid,
@@ -164,10 +169,10 @@ export default {
       this.ajax
         .get(this.$store.state.api + "selectVeidooType", params)
         .then(res => {
+          // console.log(" 获取筛选数据", res);
+          this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
           this.isLoading = false;
           this.tableData = res.data[0];
-          this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
-          // console.log(" 获取筛选数据", res);
         })
         .catch(err => {
           this.isLoading = false;

+ 3 - 1
src/components/pages/kindStudentEva/test/score.vue

@@ -236,6 +236,9 @@ export default {
             }
           }
           this.yearJuri = yearJuri;
+          this.searchStudentScore();
+
+
         })
         .catch((err) => {
           this.isLoading = false;
@@ -270,7 +273,6 @@ export default {
   },
   mounted() {
     this.getYear();
-    this.searchStudentScore();
   },
 };
 </script>