根据电脑分辨率适配录入框的宽度

This commit is contained in:
季圣华
2022-05-10 23:58:05 +08:00
parent 0d3b8c0790
commit f5ec0c4767
4 changed files with 8 additions and 0 deletions

View File

@@ -1234,6 +1234,8 @@
}
},
created () {
let realScreenWidth = window.screen.width * window.devicePixelRatio
this.width = realScreenWidth<1600?'1300px':'1600px'
},
methods: {
initSetting(record, type, ds) {

View File

@@ -44,6 +44,8 @@ export const BillModalMixin = {
created () {
let userInfo = Vue.ls.get(USER_INFO)
this.isTenant = userInfo.id === userInfo.tenantId? true:false
let realScreenWidth = window.screen.width * window.devicePixelRatio
this.width = realScreenWidth<1600?'1300px':'1600px'
},
computed: {
readOnly: function() {

View File

@@ -473,6 +473,8 @@
}
},
created () {
let realScreenWidth = window.screen.width * window.devicePixelRatio
this.width = realScreenWidth<1600?'1300px':'1600px'
},
methods: {
show(record, type) {

View File

@@ -34,6 +34,8 @@ export const FinancialModalMixin = {
created () {
let userInfo = Vue.ls.get(USER_INFO)
this.isTenant = userInfo.id === userInfo.tenantId? true:false
let realScreenWidth = window.screen.width * window.devicePixelRatio
this.width = realScreenWidth<1600?'1300px':'1600px'
},
computed: {
readOnly: function() {