From e4783ea8ef8de95478be98d6a5fe73a599cdf593 Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Fri, 3 Dec 2021 10:44:35 +0800 Subject: [PATCH] 12.3 --- src/views/Transaction.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/views/Transaction.vue b/src/views/Transaction.vue index b19249c..10b5914 100644 --- a/src/views/Transaction.vue +++ b/src/views/Transaction.vue @@ -342,7 +342,10 @@ export default { components: {quill, MyTree}, data() { return { + count: 0, + fromCountIndex: -999, checkChange: [], + changeArr: [], lcId: "", // 流程类判分点id isAdd: Boolean(this.$route.query.isAdd), // 添加 @@ -485,8 +488,17 @@ export default { }); }, handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 - this.checkChange.splice(index, 1, true) - this.checkChange.push(false) + this.changeArr.push(checked) + if(this.changeArr.length === 4) { + if(this.changeArr[0] && this.changeArr[2]) { + this.checkChange.splice(index, 1, true) + }else { + this.checkChange.splice(index, 1, false) + } + this.changeArr.splice(0, 4) + }else { + this.checkChange.splice(index, 1, true) + } let divTree = '#divTree'+index; let dom = document.querySelector(divTree) let depTree = '#depTree'+index; @@ -660,7 +672,8 @@ export default { } }, addRule() { // 新增规则 - + this.changeArr.splice(0, this.changeArr.length) + this.checkChange.push(false) if(!this.isAddRule) { this.isAddRule = true; // this.tableData.length && this.tableData.push({ruleOperation: 0, indexNo: ""});