|
|
@ -479,18 +479,14 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 |
|
|
|
handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 |
|
|
|
console.log('=================') |
|
|
|
|
|
|
|
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; |
|
|
|
let dom1 = document.querySelector(depTree) |
|
|
|
let dom1 = document.querySelector(depTree) |
|
|
|
let nodeHight =20 |
|
|
|
let nodeHight =26 |
|
|
|
dom1.style.height = (data.number * nodeHight) + "px" |
|
|
|
dom1.style.height = (data.number * nodeHight) + "px" |
|
|
|
let contHeight=(data.number * nodeHight)//总高度,盒子高度的一半 |
|
|
|
let contHeight=(data.number * nodeHight)//总高度,盒子高度的一半 |
|
|
|
console.log(contHeight) |
|
|
|
|
|
|
|
dom.scrollTo(0, contHeight) |
|
|
|
dom.scrollTo(0, contHeight) |
|
|
|
console.log(data) |
|
|
|
|
|
|
|
console.log('=================') |
|
|
|
|
|
|
|
this.checkChange = true |
|
|
|
this.checkChange = true |
|
|
|
if (checked && data.isNode === 1) { |
|
|
|
if (checked && data.isNode === 1) { |
|
|
|
this.tableData[index].operationIds = data.id; // 操作id串 |
|
|
|
this.tableData[index].operationIds = data.id; // 操作id串 |
|
|
@ -808,7 +804,11 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
<style> |
|
|
|
|
|
|
|
.el-tree-node__content { |
|
|
|
|
|
|
|
height: 26Px!important; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.content { |
|
|
|
.content { |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|