进一步优化单据的宽度屏幕自适应
This commit is contained in:
@@ -238,7 +238,7 @@
|
|||||||
},
|
},
|
||||||
// 触发屏幕自适应
|
// 触发屏幕自适应
|
||||||
resetScreenSize() {
|
resetScreenSize() {
|
||||||
let realScreenWidth = window.screen.width * window.devicePixelRatio
|
let realScreenWidth = window.screen.width
|
||||||
this.modalWidth = realScreenWidth<1600?'1200px':'1450px'
|
this.modalWidth = realScreenWidth<1600?'1200px':'1450px'
|
||||||
let screenWidth = document.body.clientWidth;
|
let screenWidth = document.body.clientWidth;
|
||||||
if (screenWidth < 500) {
|
if (screenWidth < 500) {
|
||||||
|
|||||||
@@ -1297,7 +1297,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
let realScreenWidth = window.screen.width * window.devicePixelRatio
|
let realScreenWidth = window.screen.width
|
||||||
this.width = realScreenWidth<1500?'1300px':'1550px'
|
this.width = realScreenWidth<1500?'1300px':'1550px'
|
||||||
this.tableWidth = {
|
this.tableWidth = {
|
||||||
'width': realScreenWidth<1500?'1250px':'1500px'
|
'width': realScreenWidth<1500?'1250px':'1500px'
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export const BillModalMixin = {
|
|||||||
created () {
|
created () {
|
||||||
let userInfo = Vue.ls.get(USER_INFO)
|
let userInfo = Vue.ls.get(USER_INFO)
|
||||||
this.isTenant = userInfo.id === userInfo.tenantId? true:false
|
this.isTenant = userInfo.id === userInfo.tenantId? true:false
|
||||||
let realScreenWidth = window.screen.width * window.devicePixelRatio
|
let realScreenWidth = window.screen.width
|
||||||
this.width = realScreenWidth<1500?'1300px':'1550px'
|
this.width = realScreenWidth<1500?'1300px':'1550px'
|
||||||
this.minWidth = realScreenWidth<1500?1250:1500
|
this.minWidth = realScreenWidth<1500?1250:1500
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -266,7 +266,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
let realScreenWidth = window.screen.width * window.devicePixelRatio
|
let realScreenWidth = window.screen.width
|
||||||
this.minWidth = realScreenWidth<1500?900:1100
|
this.minWidth = realScreenWidth<1500?900:1100
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -277,7 +277,7 @@
|
|||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.initPayTypeList()
|
this.initPayTypeList()
|
||||||
let realScreenWidth = window.screen.width * window.devicePixelRatio
|
let realScreenWidth = window.screen.width
|
||||||
this.minWidth = realScreenWidth<1500?900:1100
|
this.minWidth = realScreenWidth<1500?900:1100
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -467,7 +467,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
let realScreenWidth = window.screen.width * window.devicePixelRatio
|
let realScreenWidth = window.screen.width
|
||||||
this.width = realScreenWidth<1500?'1300px':'1550px'
|
this.width = realScreenWidth<1500?'1300px':'1550px'
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export const FinancialModalMixin = {
|
|||||||
created () {
|
created () {
|
||||||
let userInfo = Vue.ls.get(USER_INFO)
|
let userInfo = Vue.ls.get(USER_INFO)
|
||||||
this.isTenant = userInfo.id === userInfo.tenantId? true:false
|
this.isTenant = userInfo.id === userInfo.tenantId? true:false
|
||||||
let realScreenWidth = window.screen.width * window.devicePixelRatio
|
let realScreenWidth = window.screen.width
|
||||||
this.width = realScreenWidth<1500?'1300px':'1550px'
|
this.width = realScreenWidth<1500?'1300px':'1550px'
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
Reference in New Issue
Block a user