Commit eeb76ba5 authored by 黄奎's avatar 黄奎

新增固定表头

parent 3bb7e09f
...@@ -2,23 +2,28 @@ ...@@ -2,23 +2,28 @@
.tripPlanTab { .tripPlanTab {
border-collapse: collapse; border-collapse: collapse;
border-radius: 5px; border-radius: 5px;
table-layout: fixed;
background: white;
} }
.tripPlanTab tr th, .tripPlanTab tr th {
.tripPlanTab tr td { border: 1px solid#d2d2d2;
border: 1px solid gray;
text-align: center; text-align: center;
padding-left: 1px; padding-left: 1px;
padding-right: 1px; padding-right: 1px;
}
.tripPlanTab tr th {
min-width: 55px; min-width: 55px;
height: 29px; height: 29px;
position: sticky;
top: 0;
z-index: 10;
background:#E6E6E6;
} }
.tripPlanTab tr td { .tripPlanTab tr td {
border: 1px solid #d2d2d2;
text-align: center;
padding-left: 1px;
padding-right: 1px;
height: 28px; height: 28px;
line-height: 28px; line-height: 28px;
} }
...@@ -64,8 +69,7 @@ ...@@ -64,8 +69,7 @@
</ul> </ul>
</div> </div>
<el-tag effect="dark" color="#29b6f6">已制单</el-tag> <el-tag effect="dark" color="#29b6f6">已制单</el-tag>
<div style="width: 98%; overflow-x: hidden;padding-bottom: 50px; " :style="{height: boxHeight + 'px'}"
<div style="width:100%;overflow-x:auto;padding-bottom:10px;margin-top:10px;min-height:100px;"
class="ownScrollbarStyle" v-loading="loading"> class="ownScrollbarStyle" v-loading="loading">
<table class="tripPlanTab" v-if="dataList&&dataList.length>0"> <table class="tripPlanTab" v-if="dataList&&dataList.length>0">
<thead> <thead>
...@@ -189,6 +193,7 @@ ...@@ -189,6 +193,7 @@
dialogTitle: "", dialogTitle: "",
carList: [], carList: [],
isHaveAuth: false, isHaveAuth: false,
boxHeight: 0,
} }
}, },
components: { components: {
...@@ -319,6 +324,8 @@ ...@@ -319,6 +324,8 @@
// this.msg.CarId = 1030; // this.msg.CarId = 1030;
//this.msg.CarId = 1021; //this.msg.CarId = 1021;
//this.msg.QOrderId="483" //this.msg.QOrderId="483"
let height = window.innerHeight - 65 - 55;
this.boxHeight = height;
this.getCarList(); this.getCarList();
this.getList(); this.getList();
}, },
......
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