|
|
@ -342,7 +342,10 @@ export default { |
|
|
|
components: {quill, MyTree}, |
|
|
|
components: {quill, MyTree}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
count: 0, |
|
|
|
|
|
|
|
fromCountIndex: -999, |
|
|
|
checkChange: [], |
|
|
|
checkChange: [], |
|
|
|
|
|
|
|
changeArr: [], |
|
|
|
|
|
|
|
|
|
|
|
lcId: "", // 流程类判分点id |
|
|
|
lcId: "", // 流程类判分点id |
|
|
|
isAdd: Boolean(this.$route.query.isAdd), // 添加 |
|
|
|
isAdd: Boolean(this.$route.query.isAdd), // 添加 |
|
|
@ -485,8 +488,17 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 |
|
|
|
handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 |
|
|
|
this.checkChange.splice(index, 1, true) |
|
|
|
this.changeArr.push(checked) |
|
|
|
this.checkChange.push(false) |
|
|
|
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 divTree = '#divTree'+index; |
|
|
|
let dom = document.querySelector(divTree) |
|
|
|
let dom = document.querySelector(divTree) |
|
|
|
let depTree = '#depTree'+index; |
|
|
|
let depTree = '#depTree'+index; |
|
|
@ -660,7 +672,8 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
addRule() { // 新增规则 |
|
|
|
addRule() { // 新增规则 |
|
|
|
|
|
|
|
this.changeArr.splice(0, this.changeArr.length) |
|
|
|
|
|
|
|
this.checkChange.push(false) |
|
|
|
if(!this.isAddRule) { |
|
|
|
if(!this.isAddRule) { |
|
|
|
this.isAddRule = true; |
|
|
|
this.isAddRule = true; |
|
|
|
// this.tableData.length && this.tableData.push({ruleOperation: 0, indexNo: ""}); |
|
|
|
// this.tableData.length && this.tableData.push({ruleOperation: 0, indexNo: ""}); |
|
|
|