guanqb
2022-10-24 bf96ed7feb77715067462844757a9c63ee523406
表格改成内容区滚动条
2 files modified
29 ■■■■ changed files
src/styles/element-ui/element-ui.scss 11 ●●●●● patch | view | raw | blame | history
src/views/home/index.vue 18 ●●●●● patch | view | raw | blame | history
src/styles/element-ui/element-ui.scss
@@ -24,6 +24,17 @@
    height: 0px;
}
.el-table__body-wrapper{
    height: calc(100% - 48px);
    overflow: scroll;
}
.el-table__header-wrapper {
    height: 48px;
}
.el-table {
    height: 100%;
}
src/views/home/index.vue
@@ -49,7 +49,7 @@
                </div>
                <div id="PersonEcharts" class="echarts-box" v-show="peopletype == 0"></div>
                <div v-show="peopletype == 1">
                <div class="peopleTable" v-show="peopletype == 1">
                    <el-table
                        :data="acttype == 0 ? underwayArr : historyArr"
                        style="width: 100%"
@@ -107,7 +107,7 @@
                    <i></i> 案件统计
                    <div class="timer">
                        <el-date-picker
                            v-model="value2"
                            v-model="eventTime"
                            type="daterange"
                            align="right"
                            unlink-panels
@@ -510,8 +510,7 @@
                    }
                }]
            },
            value1: '',
            value2: ''
            eventTime: ''
        }
    },
@@ -550,6 +549,7 @@
        this.setDomLeft()
        window.addEventListener('resize', this.setDomLeft)
    },
    updated () {
    },
@@ -1515,7 +1515,6 @@
        .person-box {
            height: 35%;
            overflow: scroll;
            .peopleTap {
                color: rgb(98, 95, 95);
                cursor: pointer;
@@ -1536,6 +1535,10 @@
            }
            .before {
                margin-left: 108px;
            }
            .peopleTable {
                height: 100%;
                overflow: hidden;
            }
        }
        .house-box {
@@ -1658,6 +1661,9 @@
            .sub-tab + .echarts-box {
                margin-top: 10px;
            }
            #peopleList {
                height: 100%;
            }
        }
    }
@@ -1822,7 +1828,7 @@
            height: calc(100% - 40px);
            width: calc(100% - 40px);
            margin: 10px 0 0 20px;
            overflow: scroll;
            overflow: hidden;
        }
    }