|
@@ -336,11 +336,10 @@ export default {
|
|
|
// 监听screenHeight从而改变table的高度
|
|
|
screenHeight(val) {
|
|
|
this.screenHeight = val
|
|
|
- this.tableHeight = this.screenHeight - 260
|
|
|
+ this.tableHeight = this.screenHeight - 120
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.getHeigth()
|
|
|
this.getList()
|
|
|
},
|
|
|
mounted: function() {
|
|
@@ -354,16 +353,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- // 根据不同设备设置表格高度
|
|
|
- getHeigth() {
|
|
|
- const windowWidth = document.documentElement.clientWidth
|
|
|
- if (windowWidth > 1200) {
|
|
|
- this.tableheight = 900
|
|
|
- } else {
|
|
|
- this.tableheight = 500
|
|
|
- }
|
|
|
- console.log('tabheight', this.tableheight)
|
|
|
- },
|
|
|
// tab切换
|
|
|
handleClick(tab, event) {
|
|
|
if (tab.name === 'first') {
|