From 502ae60db5dbb97257fdf01781e69417a9b036f1 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 2 Dec 2021 16:02:25 +0800 Subject: [PATCH] Transaction_create --- src/views/Transaction.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/views/Transaction.vue b/src/views/Transaction.vue index 1fbef06..b19249c 100644 --- a/src/views/Transaction.vue +++ b/src/views/Transaction.vue @@ -302,11 +302,11 @@ @@ -342,7 +342,7 @@ export default { components: {quill, MyTree}, data() { return { - checkChange: [false], + checkChange: [], lcId: "", // 流程类判分点id isAdd: Boolean(this.$route.query.isAdd), // 添加 @@ -377,6 +377,7 @@ export default { this.$route.query.token && this.$store.commit("setParam", { token: atob(decodeURI(this.$route.query.token)) }); + this.checkChange.push(false) this.getTreeData(); console.log(this.treeData) @@ -484,9 +485,7 @@ export default { }); }, handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 - console.log('---') - console.log(this.checkChange) - this.checkChange[this.checkChange.length -1 ] = true + this.checkChange.splice(index, 1, true) this.checkChange.push(false) let divTree = '#divTree'+index; let dom = document.querySelector(divTree) @@ -496,7 +495,6 @@ export default { dom1.style.height = (data.number * nodeHight) + "px" let contHeight=(data.number * nodeHight)//总高度,盒子高度的一半 dom.scrollTo(0, contHeight) - this.checkChange = true if (checked && data.isNode === 1) { this.tableData[index].operationIds = data.id; // 操作id串 // for () @@ -510,7 +508,6 @@ export default { this.$refs[`tree-${index}`].setCheckedNodes([data]); this.getSubjectData(data.subjectId, index); } else { - row.type = ""; this.currentNodeData = {}; this.$refs[`tree-${index}`].setCheckedNodes([data]); } @@ -521,6 +518,7 @@ 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);