el-table合计放表头

生命周期中使用

//生命周期
mounted(){
    this.$nextTick(()=>{
        this.showSummariesPosition();
    })
}

方法

//方法
showSummariesPosition(){
    let table = document.querySelector('.el-table');
    let footer = document.querySelector('.el-table__footer-wrapper');
    let body = document.querySelector('.el-table__body-wrapper');
    table.removeChild(footer);
    table.insertBefore(footer,body);
}