|
@@ -31,7 +31,7 @@
|
|
|
size="small"
|
|
|
ref="windLifeTable"
|
|
|
v-loading="loading"
|
|
|
- show-summary
|
|
|
+ :show-summary="hj"
|
|
|
:summary-method="getSummaries"
|
|
|
:max-height="tableHeight"
|
|
|
:style="{ width: '100%' }"
|
|
@@ -136,6 +136,12 @@ export default {
|
|
|
return false;
|
|
|
},
|
|
|
},
|
|
|
+ showHj: {
|
|
|
+ type: Boolean,
|
|
|
+ default: () => {
|
|
|
+ return true;
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -143,11 +149,13 @@ export default {
|
|
|
nodata: nodata,
|
|
|
tableHeight: window.innerHeight - 200 + "px",
|
|
|
tableData: [],
|
|
|
+ hj: true,
|
|
|
};
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
this.tableData = this.data || [];
|
|
|
+ this.hj = this.showHj;
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
@@ -309,7 +317,9 @@ export default {
|
|
|
data(value) {
|
|
|
this.tableData = value || [];
|
|
|
},
|
|
|
- theme(bool) {},
|
|
|
+ showHj(bool) {
|
|
|
+ this.hj = bool;
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|