CN-1551 feat: 升级element-ui版本的样式修改

This commit is contained in:
刘洪洪
2024-02-18 09:58:45 +08:00
parent b02d8ecb8b
commit 22c164d2f5
27 changed files with 303 additions and 54 deletions

View File

@@ -3,8 +3,9 @@
<el-table
id="reportTable"
ref="dataTable"
:header-cell-class-name="headerCellClass"
:data="tableData"
:height="height"
height="100%"
:expand-row-keys="expandedIds"
border
empty-text=" "
@@ -213,7 +214,7 @@ import Loading from '@/components/common/Loading'
import axios from 'axios'
import { api } from '@/utils/api'
import { storageKey, report } from '@/utils/constants'
import { urlParamsHandler, overwriteUrl } from '@/utils/tools'
import { urlParamsHandler, overwriteUrl, headerCellClass } from '@/utils/tools'
import { ref } from 'vue'
import { dateFormatToUTC, getNowTime } from '@/utils/date-util'
import chartDetectionPagination from '@/views/charts/charts/chartDetectionPagination'
@@ -479,6 +480,7 @@ export default {
})
},
methods: {
headerCellClass,
/**
* 进入页面判断是否需要展开表格
* 即展开表格后刷新界面,保持展开效果
@@ -783,3 +785,9 @@ export default {
}
}
</script>
<style lang="scss">
.list-page .cn-table .el-table:not(.chart-table) td {
padding: 7.5px 0;
}
</style>