Commit 2cf90c7e authored by 康振飞's avatar 康振飞

表格高度优化

parent 6192f9b5
......@@ -283,10 +283,10 @@ export default {
},
created() {
this.getUserInfoFn()
this.byheight = window.innerHeight - 230 + 'px'
this.byheight = window.innerHeight - 208 + 'px'
},
mounted() {
this.byheight = window.innerHeight - 150 + 'px'
this.byheight = window.innerHeight - 208 + 'px'
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
......
......@@ -172,13 +172,13 @@ export default {
}
},
created(){
this.tableHeight = window.innerHeight - 170
this.tableHeight = window.innerHeight - 220
},
mounted() {
window.onresize = () => {///浏览器窗口大小变化
return (() => {
window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 150
this.tableHeight = window.screenHeight - 220
})()
}
},
......
......@@ -171,14 +171,14 @@ export default {
}
},
created(){
this.tableHeight = window.innerHeight - 170
this.tableHeight = window.innerHeight - 220
},
mounted() {
// console.log(this)
window.onresize = () => {///浏览器窗口大小变化
return (() => {
window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 150
this.tableHeight = window.screenHeight - 220
})()
}
},
......
......@@ -196,14 +196,14 @@ export default {
},
created() {
this.getWeekTypeListFn()
this.tableHeight = window.innerHeight - 170
this.tableHeight = window.innerHeight - 220
},
mounted() {
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 150
this.tableHeight = window.screenHeight - 220
})()
}
},
......
......@@ -184,13 +184,13 @@ export default {
}
},
created(){
this.tableHeight = window.innerHeight - 170
this.tableHeight = window.innerHeight - 220
},
mounted() {
window.onresize = () => {///浏览器窗口大小变化
return (() => {
window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 150
this.tableHeight = window.screenHeight - 220
})()
}
},
......
......@@ -259,7 +259,7 @@ export default {
},
created() {
this.laoedPage()
this.tbHeight = window.innerHeight - 210
this.tbHeight = window.innerHeight - 250
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
......@@ -428,7 +428,7 @@ this.laoedPage()
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
this.tbHeight = window.innerHeight - 210
this.tbHeight = window.innerHeight - 250
})()
}
}
......
......@@ -261,7 +261,7 @@ export default {
},
created() {
this.laoed()
this.tbHeight = window.innerHeight - 210
this.tbHeight = window.innerHeight - 250
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
......@@ -438,7 +438,7 @@ export default {
///浏览器窗口大小变化
return (() => {
// window.screenHeight = window.innerHeight
this.tbHeight = window.innerHeight - 210
this.tbHeight = window.innerHeight - 250
})()
}
}
......
......@@ -20,7 +20,7 @@ export default {
}
},
created() {
this.tabHeight = window.innerHeight - 150
this.tabHeight = window.innerHeight - 250
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
......@@ -30,7 +30,7 @@ export default {
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
this.tabHeight = window.innerHeight - 150
this.tabHeight = window.innerHeight - 250
})()
}
},
......
......@@ -296,7 +296,7 @@ content="查看";
},
created(){
this.laode();
this.tbHeight = window.innerHeight - 160
this.tbHeight = window.innerHeight - 190
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
......@@ -406,7 +406,7 @@ content="查看";
///浏览器窗口大小变化
return (() => {
window.screenHeight = window.innerHeight
this.tbHeight = window.screenHeight - 160
this.tbHeight = window.screenHeight - 190
})()
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment