Commit f5ec0c47 authored by 季圣华's avatar 季圣华
Browse files

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

parent 0d3b8c07
......@@ -1234,6 +1234,8 @@
}
},
created () {
let realScreenWidth = window.screen.width * window.devicePixelRatio
this.width = realScreenWidth<1600?'1300px':'1600px'
},
methods: {
initSetting(record, type, ds) {
......
......@@ -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() {
......
......@@ -473,6 +473,8 @@
}
},
created () {
let realScreenWidth = window.screen.width * window.devicePixelRatio
this.width = realScreenWidth<1600?'1300px':'1600px'
},
methods: {
show(record, type) {
......
......@@ -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() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment