拆分详情修改

This commit is contained in:
caoyang
2022-04-13 23:10:03 +08:00
parent bba9732863
commit 313d071cfc
5 changed files with 37 additions and 14 deletions
@@ -282,6 +282,7 @@
parameter:{},
widthBrown:'',
creenWidth: document.body.clientWidth,
brownHeight:document.documentElement.clientHeight,
}
},
watch:{
@@ -302,9 +303,11 @@
const that = this;
let client=''
let width=''
this.widthBrown = document.documentElement.offsetWidth || document.body.offsetWidth
this.widthBrown = window.screenWidth || document.body.clientWidth;
client = document.querySelector('.split-detail-table .ant-table-content').getBoundingClientRect()
width = this.widthBrown - client.left
let iframeTop= document.querySelector('.split-detail-left').getBoundingClientRect().top
document.querySelector('.split-detail-left').style.height = this.brownHeight-iframeTop-24 + 'px'
document.querySelector('.split-detail-table .ant-table-content').style.width = width - 20 + 'px'
window.addEventListener('resize', () => {
that.screenWidth = window.screenWidth || document.body.clientWidth;
@@ -312,6 +315,8 @@
// console.log('screenWidth',that.screenWidth)
width = that.screenWidth - client.left
document.querySelector('.split-detail-table .ant-table-content').style.width = width - 20 + 'px'
iframeTop= document.querySelector('.split-detail-left').getBoundingClientRect().top
document.querySelector('.split-detail-left').style.height = this.brownHeight-iframeTop-24 + 'px'
}, false);
@@ -1131,6 +1136,7 @@
padding-right: 20px;
border-right: 1px solid #E6E7EC;
overflow-y: auto;
.split-detail-left-tree{
}