修改禅道已知bug
This commit is contained in:
@@ -725,6 +725,29 @@
|
||||
getAction(this.url.list, query).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result || []
|
||||
if (this.dataSource.length == 0) {
|
||||
this.$nextTick(() => {
|
||||
let anttablebody = document.getElementsByClassName('ant-table-body')
|
||||
let antfixedLeft = document.querySelectorAll('.ant-table-fixed-left .ant-table-body-inner')
|
||||
let antfixedRight = document.querySelectorAll('.ant-table-fixed-right .ant-table-body-inner')
|
||||
anttablebody[0].classList.add('ant-table-body-one')
|
||||
antfixedLeft[0].classList.add('antfixedLeft')
|
||||
antfixedRight[0].classList.add('antfixedRight')
|
||||
})
|
||||
} else {
|
||||
let anttablebody = document.getElementsByClassName('ant-table-body-one')
|
||||
let antfixedLeft = document.getElementsByClassName('antfixedLeft')
|
||||
let antfixedRight = document.getElementsByClassName('antfixedRight')
|
||||
if (anttablebody && anttablebody.length > 0) {
|
||||
anttablebody[0].classList.remove('ant-table-body-one')
|
||||
}
|
||||
if (antfixedLeft && antfixedLeft.length > 0) {
|
||||
antfixedLeft[0].classList.remove('antfixedLeft')
|
||||
}
|
||||
if (antfixedRight && antfixedRight.length > 0) {
|
||||
antfixedRight[0].classList.remove('antfixedRight')
|
||||
}
|
||||
}
|
||||
this.loading = false
|
||||
} else {
|
||||
this.loading = false
|
||||
@@ -1030,6 +1053,37 @@
|
||||
::v-deep .ant-table-body {
|
||||
background: transparent!important;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-fixed-header .ant-table-body-inner {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body {
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body-inner {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-scroll .ant-table-header::-webkit-scrollbar {
|
||||
/*height: 0;*/
|
||||
width: 0;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body-one {
|
||||
padding-bottom: 0!important;
|
||||
}
|
||||
|
||||
::v-deep .antfixedLeft {
|
||||
padding-bottom: 0!important;
|
||||
overflow: scroll!important;
|
||||
}
|
||||
|
||||
::v-deep .antfixedRight {
|
||||
padding-bottom: 0!important;
|
||||
overflow: scroll!important;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.box-input .ant-select-selection {
|
||||
|
||||
Reference in New Issue
Block a user