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);