master 判分点V2.0
luoJunYong.123 3 years ago
commit c1ef607935
  1. 49
      src/views/Transaction.vue

@ -302,7 +302,7 @@
</template>
<template v-else-if="scope.row.type == 7">
<div style="line-height: 65px">需点击</div>
<div style="line-height: 65px">需点击7</div>
</template>
<template v-else>
@ -343,6 +343,7 @@ export default {
data() {
return {
count: 0,
fromChange: -999,
fromCountIndex: -999,
checkChange: [],
changeArr: [],
@ -488,17 +489,37 @@ export default {
});
},
handleCheckChange(data, checked, indeterminate, row, index) { //
// console.log(this.fromChange)
// console.log(row.operationIds)
// console.log(checked)
// console.log(this.count)
// if(this.fromChange === row.operationIds) {
// this.count++
// }else {
// this.fromChange = row.operationIds
// }
// if(this.count === 2 || this.count === 0) {
// this.checkChange.splice(index, 1, false)
// this.count = 0;
// }else {
// this.checkChange.splice(index, 1, true)
// }
// if(this.fromChange === row.operationIds) {
// this.count++
// this.checkChange.splice(index, 1, checked)
// }else {
// this.checkChange.splice(index, 1, true)
// this.fromChange = row.operationIds
// }
this.changeArr.push(checked)
console.log(this.changeArr)
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, this.changeArr[2])
this.changeArr.splice(0, this.changeArr.length)
}else if(this.changeArr.length === 2) {
this.checkChange.splice(index, 1, true)
}
let divTree = '#divTree'+index;
let dom = document.querySelector(divTree)
let depTree = '#depTree'+index;
@ -523,6 +544,15 @@ export default {
this.currentNodeData = {};
this.$refs[`tree-${index}`].setCheckedNodes([data]);
}
let divTree = '#divTree'+index;
let dom = document.querySelector(divTree)
let depTree = '#depTree'+index;
let dom1 = document.querySelector(depTree)
let nodeHight =26
dom.scrollTo(0, 26)
dom1.style.height = (data.number * nodeHight) + "px"
let contHeight=(data.number * nodeHight)//,
dom.scrollTo(0, contHeight)
}
},
getTreeData() { //
@ -530,7 +560,6 @@ 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);
@ -618,7 +647,7 @@ export default {
id: "",
lcId: i.lcId,
itemId:'',
type: i.type ? i.type : "",
type: i.type ? i.type : "7",
operationIds: i.operationIds,
resultOperation: i.resultOperation,
ruleOperation: i.ruleOperation

Loading…
Cancel
Save