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

表格高度优化

parent 6192f9b5
...@@ -283,10 +283,10 @@ export default { ...@@ -283,10 +283,10 @@ export default {
}, },
created() { created() {
this.getUserInfoFn() this.getUserInfoFn()
this.byheight = window.innerHeight - 230 + 'px' this.byheight = window.innerHeight - 208 + 'px'
}, },
mounted() { mounted() {
this.byheight = window.innerHeight - 150 + 'px' this.byheight = window.innerHeight - 208 + 'px'
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
......
...@@ -172,13 +172,13 @@ export default { ...@@ -172,13 +172,13 @@ export default {
} }
}, },
created(){ created(){
this.tableHeight = window.innerHeight - 170 this.tableHeight = window.innerHeight - 220
}, },
mounted() { mounted() {
window.onresize = () => {///浏览器窗口大小变化 window.onresize = () => {///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 150 this.tableHeight = window.screenHeight - 220
})() })()
} }
}, },
......
...@@ -171,14 +171,14 @@ export default { ...@@ -171,14 +171,14 @@ export default {
} }
}, },
created(){ created(){
this.tableHeight = window.innerHeight - 170 this.tableHeight = window.innerHeight - 220
}, },
mounted() { mounted() {
// console.log(this) // console.log(this)
window.onresize = () => {///浏览器窗口大小变化 window.onresize = () => {///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 150 this.tableHeight = window.screenHeight - 220
})() })()
} }
}, },
......
...@@ -196,14 +196,14 @@ export default { ...@@ -196,14 +196,14 @@ export default {
}, },
created() { created() {
this.getWeekTypeListFn() this.getWeekTypeListFn()
this.tableHeight = window.innerHeight - 170 this.tableHeight = window.innerHeight - 220
}, },
mounted() { mounted() {
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 150 this.tableHeight = window.screenHeight - 220
})() })()
} }
}, },
......
...@@ -184,13 +184,13 @@ export default { ...@@ -184,13 +184,13 @@ export default {
} }
}, },
created(){ created(){
this.tableHeight = window.innerHeight - 170 this.tableHeight = window.innerHeight - 220
}, },
mounted() { mounted() {
window.onresize = () => {///浏览器窗口大小变化 window.onresize = () => {///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 150 this.tableHeight = window.screenHeight - 220
})() })()
} }
}, },
......
...@@ -259,7 +259,7 @@ export default { ...@@ -259,7 +259,7 @@ export default {
}, },
created() { created() {
this.laoedPage() this.laoedPage()
this.tbHeight = window.innerHeight - 210 this.tbHeight = window.innerHeight - 250
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
...@@ -428,7 +428,7 @@ this.laoedPage() ...@@ -428,7 +428,7 @@ this.laoedPage()
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
this.tbHeight = window.innerHeight - 210 this.tbHeight = window.innerHeight - 250
})() })()
} }
} }
......
...@@ -261,7 +261,7 @@ export default { ...@@ -261,7 +261,7 @@ export default {
}, },
created() { created() {
this.laoed() this.laoed()
this.tbHeight = window.innerHeight - 210 this.tbHeight = window.innerHeight - 250
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
...@@ -438,7 +438,7 @@ export default { ...@@ -438,7 +438,7 @@ export default {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
// window.screenHeight = window.innerHeight // window.screenHeight = window.innerHeight
this.tbHeight = window.innerHeight - 210 this.tbHeight = window.innerHeight - 250
})() })()
} }
} }
......
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
} }
}, },
created() { created() {
this.tabHeight = window.innerHeight - 150 this.tabHeight = window.innerHeight - 250
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
this.tabHeight = window.innerHeight - 150 this.tabHeight = window.innerHeight - 250
})() })()
} }
}, },
......
...@@ -296,7 +296,7 @@ content="查看"; ...@@ -296,7 +296,7 @@ content="查看";
}, },
created(){ created(){
this.laode(); this.laode();
this.tbHeight = window.innerHeight - 160 this.tbHeight = window.innerHeight - 190
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
...@@ -406,7 +406,7 @@ content="查看"; ...@@ -406,7 +406,7 @@ content="查看";
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight 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