Commit a033b525 authored by 康振飞's avatar 康振飞

height优化

parent 12a9d5df
......@@ -259,7 +259,7 @@ export default {
},
created() {
this.laoedPage()
this.tbHeight = window.innerHeight - 250
this.tbHeight = window.innerHeight - 280
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
......@@ -428,7 +428,7 @@ this.laoedPage()
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
this.tbHeight = window.innerHeight - 250
this.tbHeight = window.innerHeight - 280
})()
}
}
......
......@@ -261,7 +261,7 @@ export default {
},
created() {
this.laoed()
this.tbHeight = window.innerHeight - 250
this.tbHeight = window.innerHeight - 280
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
......@@ -438,7 +438,7 @@ export default {
///浏览器窗口大小变化
return (() => {
// window.screenHeight = window.innerHeight
this.tbHeight = window.innerHeight - 250
this.tbHeight = window.innerHeight - 280
})()
}
}
......
......@@ -20,7 +20,7 @@ export default {
}
},
created() {
this.tabHeight = window.innerHeight - 250
this.tabHeight = window.innerHeight - 260
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
......@@ -30,7 +30,7 @@ export default {
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
this.tabHeight = window.innerHeight - 250
this.tabHeight = window.innerHeight - 260
})()
}
},
......
......@@ -10,9 +10,9 @@
</div>
<Button type="primary" class="title_btn" @click='searchModel'>高级查询</Button>
</div>
<div class="tableBox mb10">
<!-- :height="tbHeight" -->
<div class="tableBox mb10" :style="{height:tbHeight}">
<div class="table">
<div v-if="listTask.length==0" class="wu_data">暂无数据</div>
<Card class="card" v-for="(item,index) in listTask"
:key="index">
<h3 slot="title">
......@@ -227,6 +227,7 @@ export default {
data1: [],
noData: false,
selectdata: [],
tbHeight:"550px",
itemData:{},//追溯传的数据
actValue:1,//追溯传的选中meniu
orderSearchForm: { //高级搜索字段内容
......@@ -264,7 +265,7 @@ export default {
},
created(){
this.laode();
// this.tbHeight = window.innerHeight - 500
this.tbHeight = window.innerHeight - 208 + 'px'
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
......@@ -405,16 +406,14 @@ export default {
return arry
},
},
// mounted() {
// window.onresize = () => {
// ///浏览器窗口大小变化
// return (() => {
// window.screenHeight = window.innerHeight
// this.tbHeight = window.screenHeight - 500
// console.log(this.tbHeight)
// })()
// }
// },
mounted() {
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
this.tbHeight = window.innerHeight - 208 + 'px'
})()
}
},
}
</script>
<style scoped>
......@@ -434,7 +433,7 @@ ul,li{
}
.tableBox{
/* height: 582px; 笔记本高度*/
height: 778px;
/* height: 778px; */
border: #ddd solid 1px;
overflow-y: scroll;
overflow-x: hidden;
......@@ -454,6 +453,10 @@ ul,li{
width: 388px;
margin: 10px 0 10px 20px;
}
.wu_data{
margin: 200px auto;
font-size: 18px;
}
/* .card_body01{
margin: 0 0 10px 0;
} */
......
......@@ -278,7 +278,7 @@ export default {
},
created(){
this.laode();
this.tbHeight = window.innerHeight - 160
this.tbHeight = window.innerHeight - 200
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
......@@ -389,7 +389,7 @@ export default {
///浏览器窗口大小变化
return (() => {
window.screenHeight = window.innerHeight
this.tbHeight = window.screenHeight - 160
this.tbHeight = window.screenHeight - 200
})()
}
},
......
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