由于谷歌浏览器新版本,导致table的表头样式变形,修改优化进行适配

This commit is contained in:
jishenghua 2024-02-05 23:18:50 +08:00
parent 8f2ea06175
commit 353b0eac40
12 changed files with 2 additions and 35 deletions

View File

@ -418,6 +418,7 @@ export const JeecgListMixin = {
if (this.isMobile()) { if (this.isMobile()) {
this.scroll.y = '' this.scroll.y = ''
} else { } else {
let basicWidth = 150
let basicLength = 274 let basicLength = 274
let searchWrapperDomLen=0, operatorDomLen=0 let searchWrapperDomLen=0, operatorDomLen=0
//搜索区域 //搜索区域
@ -430,7 +431,7 @@ export const JeecgListMixin = {
if(operatorDom && operatorDom[0]) { if(operatorDom && operatorDom[0]) {
operatorDomLen = operatorDom[0].offsetHeight+10 operatorDomLen = operatorDom[0].offsetHeight+10
} }
this.scroll.x = 1640 this.scroll.x = document.documentElement.clientWidth-basicWidth-64
this.scroll.y = document.documentElement.clientHeight-searchWrapperDomLen-operatorDomLen-basicLength this.scroll.y = document.documentElement.clientHeight-searchWrapperDomLen-operatorDomLen-basicLength
} }
}, },

View File

@ -217,9 +217,6 @@
this.loadAllOrgaData() this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)] this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
}, },
mounted () {
this.scroll.x = 1620
},
methods: { methods: {
moment, moment,
getQueryParams() { getQueryParams() {

View File

@ -189,9 +189,6 @@
this.loadAllOrgaData() this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)] this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
}, },
mounted () {
this.scroll.x = 1620
},
methods: { methods: {
moment, moment,
getQueryParams() { getQueryParams() {

View File

@ -167,9 +167,6 @@
this.initSupplier() this.initSupplier()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)] this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
}, },
mounted () {
this.scroll.x = 1620
},
methods: { methods: {
getQueryParams() { getQueryParams() {
let param = Object.assign({}, this.queryParam, this.isorter); let param = Object.assign({}, this.queryParam, this.isorter);

View File

@ -222,9 +222,6 @@
this.loadAllOrgaData() this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)] this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
}, },
mounted () {
this.scroll.x = 1620
},
methods: { methods: {
moment, moment,
getQueryParams() { getQueryParams() {

View File

@ -180,9 +180,6 @@
this.loadTreeData() this.loadTreeData()
this.getTotalCountMoney() this.getTotalCountMoney()
}, },
mounted () {
this.scroll.x = 1620
},
methods: { methods: {
moment, moment,
getQueryParams() { getQueryParams() {

View File

@ -206,9 +206,6 @@
this.getDepotData() this.getDepotData()
this.loadTreeData() this.loadTreeData()
}, },
mounted () {
this.scroll.x = 1620
},
methods: { methods: {
moment, moment,
getQueryParams() { getQueryParams() {

View File

@ -222,9 +222,6 @@
this.loadAllOrgaData() this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)] this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
}, },
mounted () {
this.scroll.x = 1620
},
methods: { methods: {
moment, moment,
getQueryParams() { getQueryParams() {

View File

@ -189,9 +189,6 @@
this.loadAllOrgaData() this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)] this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
}, },
mounted () {
this.scroll.x = 1620
},
methods: { methods: {
moment, moment,
create(){ create(){

View File

@ -189,9 +189,6 @@
this.loadAllOrgaData() this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)] this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
}, },
mounted () {
this.scroll.x = 1620
},
methods: { methods: {
moment, moment,
create(){ create(){

View File

@ -167,9 +167,6 @@
this.initSupplier() this.initSupplier()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)] this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
}, },
mounted () {
this.scroll.x = 1620
},
methods: { methods: {
getQueryParams() { getQueryParams() {
let param = Object.assign({}, this.queryParam, this.isorter); let param = Object.assign({}, this.queryParam, this.isorter);

View File

@ -96,7 +96,6 @@
:dataSource="dataSource" :dataSource="dataSource"
:components="handleDrag(columns)" :components="handleDrag(columns)"
:pagination="ipagination" :pagination="ipagination"
:scroll="scroll"
:loading="loading" :loading="loading"
@change="handleTableChange"> @change="handleTableChange">
<span slot="billNoCustomRender" slot-scope="text, record"> <span slot="billNoCustomRender" slot-scope="text, record">
@ -195,9 +194,6 @@
this.initPerson() this.initPerson()
this.initAccount() this.initAccount()
}, },
mounted () {
this.scroll.x = 1520
},
methods: { methods: {
show() { show() {
if(this.queryParam.type === '付款') { if(this.queryParam.type === '付款') {