From ca6d83c85a0496a32042326bddc4026934008daa Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Wed, 1 Dec 2021 14:25:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=91=E6=8E=A7=E4=BB=B6=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E5=88=B0=E9=BB=98=E8=AE=A4=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E4=BD=8D=E7=BD=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/myTree/src/tree.vue | 1 - src/views/Transaction.vue | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/myTree/src/tree.vue b/src/components/myTree/src/tree.vue index 44cf9f4..4362231 100644 --- a/src/components/myTree/src/tree.vue +++ b/src/components/myTree/src/tree.vue @@ -486,7 +486,6 @@ }, mounted() { - console.log(this.data) this.initTabIndex(); this.$el.addEventListener('keydown', this.handleKeydown); }, diff --git a/src/views/Transaction.vue b/src/views/Transaction.vue index 4fa4c96..b0c88b5 100644 --- a/src/views/Transaction.vue +++ b/src/views/Transaction.vue @@ -479,18 +479,14 @@ export default { }); }, handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 - console.log('=================') let divTree = '#divTree'+index; let dom = document.querySelector(divTree) let depTree = '#depTree'+index; let dom1 = document.querySelector(depTree) - let nodeHight =20 + let nodeHight =26 dom1.style.height = (data.number * nodeHight) + "px" let contHeight=(data.number * nodeHight)//总高度,盒子高度的一半 - console.log(contHeight) dom.scrollTo(0, contHeight) - console.log(data) - console.log('=================') this.checkChange = true if (checked && data.isNode === 1) { this.tableData[index].operationIds = data.id; // 操作id串 @@ -808,7 +804,11 @@ export default { } }; - +