Browse Source

日常打印M100信息table自适应更改

FoShanPG
安虹睿 1 year ago
parent
commit
2c5da653b9
  1. 28
      vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue

28
vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue

@ -244,7 +244,7 @@
<ScrapZHB v-bind:customerInfosZHB="customerInfosZHB"></ScrapZHB>
</el-drawer>
<div class="l-table" style="margin-top: -10px">
<div class="l-table" style="margin-top: -15px">
<!--表格渲染-->
<el-table
ref="multipleTable"
@ -434,7 +434,7 @@
<pagination
v-show="totalCount > 0"
:total="totalCount"
style="margin-bottom: -5px; float: right"
style="float: right"
:page.sync="page"
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
@ -674,13 +674,7 @@ export default {
};
},
mounted() {
this.$nextTick(() => {
var offsetHei = document.documentElement.clientHeight;
//console.log(offsetHei);
let boxH = this.$refs.box.offsetHeight;
this.tableHeight = offsetHei - boxH - 67 - 79; //57footer79
//this.tableHeight = offsetHei -260
});
this.setTableHeight()
let timer = setInterval(() => {
this.open();
@ -766,6 +760,15 @@ export default {
...mapGetters(["userInfo"]), //
},
methods: {
setTableHeight(){
this.$nextTick(() => {
var offsetHei = document.documentElement.clientHeight;
//console.log(offsetHei);
let boxH = this.$refs.box.offsetHeight;
this.tableHeight = offsetHei - boxH - 67 - 79 - 10; //57footer79
//this.tableHeight = offsetHei -260
});
},
opens() {
this.getList();
@ -820,7 +823,7 @@ export default {
if (JKITEM.timeoutMinutes >= JKITEM.configMinutes) {
//
console.log(
"222222222222222222222222222222222222222222222222"
"222222222222222222222222222222222222222222222222-1"
);
this.$refs.sp01.style.color = "red";
this.$refs.sp01.style.fontWeight = "bold";
@ -837,8 +840,9 @@ export default {
if (JKITEM.timeoutMinutes >= JKITEM.configMinutes) {
//
console.log(
"222222222222222222222222222222222222222222222222"
"222222222222222222222222222222222222222222222222-2"
);
this.setTableHeight()
this.$refs.sp05.style.color = "red";
this.$refs.sp05.style.fontWeight = "bold";
} else {
@ -1914,6 +1918,7 @@ export default {
return a.productLineCode - b.productLineCode;
});
//console.log(this.PLList)
this.setTableHeight()
//
if (this.listQuery.productType === 1) {
this.$refs.btn1.$el.innerText = "打印门板发货排序单";
@ -1929,6 +1934,7 @@ export default {
this.listQuery.state = [];
this.isShowState = false;
}
if (this.listQuery.productType === 2) {
this.listQueryList.ZHBBillStatus = 2;
} else {

Loading…
Cancel
Save