优化单据录入界面的宽度自适应

This commit is contained in:
季圣华
2022-05-15 23:16:52 +08:00
parent a00ea462db
commit 473edd3d0f
8 changed files with 12 additions and 448 deletions

View File

@@ -84,9 +84,10 @@
name: 'JSelectMaterialModal',
mixins:[JeecgListMixin],
components: {},
props: ['modalWidth', 'rows', 'multi', 'barCode'],
props: ['rows', 'multi', 'barCode'],
data() {
return {
modalWidth: 1450,
queryParam: {
q: '',
depotId: ''
@@ -212,6 +213,8 @@
},
// 触发屏幕自适应
resetScreenSize() {
let realScreenWidth = window.screen.width * window.devicePixelRatio
this.modalWidth = realScreenWidth<1600?'1200px':'1450px'
let screenWidth = document.body.clientWidth;
if (screenWidth < 500) {
this.scrollTrigger = {x: 800};