master
luoJunYong.123 3 years ago
parent 502ae60db5
commit e4783ea8ef
  1. 17
      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.changeArr.push(checked)
if(this.changeArr.length === 4) {
if(this.changeArr[0] && this.changeArr[2]) {
this.checkChange.splice(index, 1, true)
this.checkChange.push(false)
}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: ""});

Loading…
Cancel
Save