|
@@ -61,7 +61,6 @@
|
|
|
<div
|
|
|
class="pb_content_body"
|
|
|
style="margin: 0 auto"
|
|
|
- v-if="tableData.length > 0"
|
|
|
>
|
|
|
<div class="student_table">
|
|
|
<el-table
|
|
@@ -338,24 +337,24 @@ export default {
|
|
|
reCid: "",
|
|
|
};
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.$nextTick(function () {
|
|
|
- this.tableHeight =
|
|
|
- window.innerHeight - this.$refs.table.$el.offsetTop - 200;
|
|
|
- if (this.tableHeight <= 530) {
|
|
|
- this.tableHeight = 530;
|
|
|
- }
|
|
|
- // 监听窗口大小变化
|
|
|
- let self = this;
|
|
|
- window.onresize = function () {
|
|
|
- self.tableHeight =
|
|
|
- window.innerHeight - self.$refs.table.$el.offsetTop - 200;
|
|
|
- if (self.tableHeight <= 530) {
|
|
|
- self.tableHeight = 530;
|
|
|
- }
|
|
|
- };
|
|
|
- });
|
|
|
- },
|
|
|
+ // mounted() {
|
|
|
+ // this.$nextTick(function () {
|
|
|
+ // this.tableHeight =
|
|
|
+ // window.innerHeight - this.$refs.table.$el.offsetTop - 200;
|
|
|
+ // if (this.tableHeight <= 530) {
|
|
|
+ // this.tableHeight = 530;
|
|
|
+ // }
|
|
|
+ // // 监听窗口大小变化
|
|
|
+ // let self = this;
|
|
|
+ // window.onresize = function () {
|
|
|
+ // self.tableHeight =
|
|
|
+ // window.innerHeight - self.$refs.table.$el.offsetTop - 200;
|
|
|
+ // if (self.tableHeight <= 530) {
|
|
|
+ // self.tableHeight = 530;
|
|
|
+ // }
|
|
|
+ // };
|
|
|
+ // });
|
|
|
+ // },
|
|
|
methods: {
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
if ((rowIndex + 1) % 2 === 0) {
|
|
@@ -496,10 +495,12 @@ export default {
|
|
|
this.isLoading = false;
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ this.isLoading = false;
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
selectPwScore(p) {
|
|
|
+ this.isLoading = true;
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "selectAllScore")
|
|
|
.then((res) => {
|
|
@@ -528,9 +529,11 @@ export default {
|
|
|
p[j].sum = isScore == 0 ? 0 : (sum / isScore).toFixed(2)
|
|
|
}
|
|
|
this.tableData = p;
|
|
|
+ this.isLoading = false;
|
|
|
this.$forceUpdate();
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ this.isLoading = false;
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|