|
@@ -88,6 +88,9 @@
|
|
<el-button type="primary" @click="refresh">
|
|
<el-button type="primary" @click="refresh">
|
|
<i class="el-icon-refresh"></i>
|
|
<i class="el-icon-refresh"></i>
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button type="primary" @click="updateMaxHeight">
|
|
|
|
+ <i class="el-icon-refresh"></i>改高
|
|
|
|
+ </el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" @click="checkTrans()"
|
|
<el-button type="primary" @click="checkTrans()"
|
|
@@ -2463,12 +2466,16 @@ export default {
|
|
computed: {},
|
|
computed: {},
|
|
mounted() {
|
|
mounted() {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
|
+ const that = this
|
|
window.onresize = () => {
|
|
window.onresize = () => {
|
|
return (() => {
|
|
return (() => {
|
|
- this.maxHeight =
|
|
|
|
- window.innerHeight -
|
|
|
|
- document.querySelector('.tableTop').offsetHeight -
|
|
|
|
- 40
|
|
|
|
|
|
+ console.log('我触发了表格分辨率变化的时间')
|
|
|
|
+ that.$nextTick(() => {
|
|
|
|
+ that.maxHeight =
|
|
|
|
+ window.innerHeight -
|
|
|
|
+ document.querySelector('.tableTop').offsetHeight -
|
|
|
|
+ 40
|
|
|
|
+ })
|
|
})()
|
|
})()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -2491,6 +2498,10 @@ export default {
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ updateMaxHeight() {
|
|
|
|
+ this.maxHeight = 900
|
|
|
|
+ console.log(this.maxHeight)
|
|
|
|
+ },
|
|
openBlank() {
|
|
openBlank() {
|
|
let page = this.$router.resolve({
|
|
let page = this.$router.resolve({
|
|
name: 'saleSteelReports',
|
|
name: 'saleSteelReports',
|