|
@@ -87,10 +87,9 @@
|
|
|
ref="table"
|
|
|
:data="tableData"
|
|
|
border
|
|
|
- :height="tableHeight"
|
|
|
:fit="true"
|
|
|
v-loading="isLoading"
|
|
|
- style="width: 100%"
|
|
|
+ style="width: 100%;"
|
|
|
@sort-change="ownScoreSort"
|
|
|
:header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
|
|
|
:row-class-name="tableRowClassName"
|
|
@@ -479,7 +478,7 @@ export default {
|
|
|
page: 1,
|
|
|
total: 0,
|
|
|
// anliType: "",
|
|
|
- tableHeight: "100%",
|
|
|
+ tableHeight: "",
|
|
|
isLoading: false,
|
|
|
CourseType: [],
|
|
|
CourseTypeJson: {},
|
|
@@ -581,6 +580,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+
|
|
|
this.$nextTick(function () {
|
|
|
this.tableHeight =
|
|
|
window.innerHeight - this.$refs.table.$el.offsetTop - 200;
|
|
@@ -598,6 +598,9 @@ export default {
|
|
|
};
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
methods: {
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
if ((rowIndex + 1) % 2 === 0) {
|