From 0e4984e9c6cf5a384a3e67fc6178d38aa9a2e4a2 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期四, 28 九月 2023 11:31:03 +0800 Subject: [PATCH] feat: 销售明细单页列表配置列显隐控制 --- src/components/makepager/TableCommonView.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/components/makepager/TableCommonView.vue b/src/components/makepager/TableCommonView.vue index 124fc97..3057f95 100644 --- a/src/components/makepager/TableCommonView.vue +++ b/src/components/makepager/TableCommonView.vue @@ -216,10 +216,16 @@ .querySelector(".el-table__footer") var cell = current.rows[0].cells for (let i = 0; i < this.showSummary.mergeNumber; i++) { - cell[i].style.display = "none" + cell[i] && cell[i].style && (cell[i].style.display = "none") } - cell[this.showSummary.mergeNumber].classList.remove("is-left") - cell[this.showSummary.mergeNumber].colSpan = this.showSummary.mergeNumber.toString() + if (cell[this.showSummary.mergeNumber]){ + if (cell[this.showSummary.mergeNumber].classList){ + cell[this.showSummary.mergeNumber].classList.remove("is-left") + } + if (cell[this.showSummary.mergeNumber].colSpan){ + cell[this.showSummary.mergeNumber].colSpan = this.showSummary.mergeNumber.toString() + } + } } }) } @@ -454,7 +460,7 @@ // line-height: 26px; // background: #06c062; top: 0; - right: 2px; + right: -6px; z-index: 9999; .label { position: absolute; -- Gitblit v1.8.0