watch: {
tableData: function () {
let _this = this;
this.$nextTick(() => {
let html = _this.$refs.tableRef.$refs.footerWrapper
.querySelector(".el-table__footer")
.querySelectorAll("td")[8]
.querySelector(".cell");
html.innerHTML =
"<el-button type='text' size='small' style='z-index:99999;cursor: pointer;color: #409EFF;' >全部详情</el-button>";
html.onclick = () => {
_this.gotoAllDetail();
};
});
},
},
el-table合计行添加按钮操作
于 2022-02-15 11:03:41 首次发布