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