Browse Source

页面布局修改,上半占1/3,下半占2/3

master
qiankanghui 1 day ago
parent
commit
8177eede74
  1. 8
      src/views/modules/production/outboundLabelScan.vue
  2. 8
      src/views/modules/production/shippingScan.vue

8
src/views/modules/production/outboundLabelScan.vue

@ -20,6 +20,7 @@ export default {
allNum:0, allNum:0,
notifyQty:0, notifyQty:0,
height:200, height:200,
detailHeight:250,
siteList: [], siteList: [],
delNotifyHeaderTableLoading:false, delNotifyHeaderTableLoading:false,
// 搜索表单对象 // 搜索表单对象
@ -61,7 +62,10 @@ export default {
}, },
mounted () { mounted () {
this.$nextTick(() => { this.$nextTick(() => {
this.height = window.innerHeight - 475
// 上下表格按 1/3 : 2/3 分配可用高度(225 为搜索表单、分页及导航等固定占用)
const available = window.innerHeight - 225
this.height = Math.floor(available / 3)
this.detailHeight = Math.floor(available * 2 / 3)
}) })
}, },
methods: { methods: {
@ -488,7 +492,7 @@ export default {
</div> </div>
<el-table :data="delNotifyDetailList" <el-table :data="delNotifyDetailList"
height="250"
:height="detailHeight"
border stripe border stripe
style="margin-top: 10px;"> style="margin-top: 10px;">
<el-table-column label="操作" width="150px" header-align="center" fixed align="center"> <el-table-column label="操作" width="150px" header-align="center" fixed align="center">

8
src/views/modules/production/shippingScan.vue

@ -21,6 +21,7 @@ export default {
allNum:0, allNum:0,
notifyQty:0, notifyQty:0,
height:200, height:200,
detailHeight:250,
siteList: [], siteList: [],
delNotifyHeaderTableLoading:false, delNotifyHeaderTableLoading:false,
// 搜索表单对象 // 搜索表单对象
@ -69,7 +70,10 @@ export default {
}, },
mounted () { mounted () {
this.$nextTick(() => { this.$nextTick(() => {
this.height = window.innerHeight - 475
// 上下表格按 1/3 : 2/3 分配可用高度(225 为搜索表单、分页及导航等固定占用)
const available = window.innerHeight - 225
this.height = Math.floor(available / 3)
this.detailHeight = Math.floor(available * 2 / 3)
}) })
}, },
methods: { methods: {
@ -630,7 +634,7 @@ export default {
</div> </div>
<el-table :data="delNotifyDetailList" <el-table :data="delNotifyDetailList"
height="250"
:height="detailHeight"
border stripe border stripe
style="margin-top: 10px;"> style="margin-top: 10px;">
<el-table-column label="操作" width="150px" header-align="center" fixed align="center"> <el-table-column label="操作" width="150px" header-align="center" fixed align="center">

Loading…
Cancel
Save