From 84bad8865df003755e8131b746435fe7e81270c4 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Fri, 3 Dec 2021 10:09:01 +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/views/Transaction.vue | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/views/Transaction.vue b/src/views/Transaction.vue index b19249c..01b201c 100644 --- a/src/views/Transaction.vue +++ b/src/views/Transaction.vue @@ -485,16 +485,6 @@ export default { }); }, handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 - this.checkChange.splice(index, 1, true) - this.checkChange.push(false) - let divTree = '#divTree'+index; - let dom = document.querySelector(divTree) - let depTree = '#depTree'+index; - let dom1 = document.querySelector(depTree) - let nodeHight =26 - dom1.style.height = (data.number * nodeHight) + "px" - let contHeight=(data.number * nodeHight)//总高度,盒子高度的一半 - dom.scrollTo(0, contHeight) if (checked && data.isNode === 1) { this.tableData[index].operationIds = data.id; // 操作id串 // for () @@ -511,6 +501,15 @@ export default { this.currentNodeData = {}; this.$refs[`tree-${index}`].setCheckedNodes([data]); } + let divTree = '#divTree'+index; + let dom = document.querySelector(divTree) + let depTree = '#depTree'+index; + let dom1 = document.querySelector(depTree) + let nodeHight =26 + dom.scrollTo(0, 26) + dom1.style.height = (data.number * nodeHight) + "px" + let contHeight=(data.number * nodeHight)//总高度,盒子高度的一半 + dom.scrollTo(0, contHeight) } }, getTreeData() { // 获取树结构数据 @@ -518,7 +517,6 @@ export default { if (res.status == 200 && res.list.length>0) { if (res.list.length>0) { this.treeData = this.toTreeId(res.list, res.list[0].parentId); - console.log(this.treeData) if (this.$route.query.lcId) { this.lcId = this.$route.query.lcId; this.getInfoData(this.$route.query.lcId); @@ -660,7 +658,7 @@ export default { } }, addRule() { // 新增规则 - + if(!this.isAddRule) { this.isAddRule = true; // this.tableData.length && this.tableData.push({ruleOperation: 0, indexNo: ""});