|
|
|
@ -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: ""}); |
|
|
|
|