|
@@ -102,14 +102,23 @@ export default {
|
|
|
// this.autoExpandParent = false
|
|
|
},
|
|
|
onCheck (checkedKeys, info) {
|
|
|
- // console.log(checkedKeys, info.halfCheckedKeys)
|
|
|
+ // console.log(checkedKeys, info)
|
|
|
this.halfCheckedKeys = info.halfCheckedKeys
|
|
|
this.checkedKeys = checkedKeys
|
|
|
+ // 判断某分类是否全选
|
|
|
+ this.checkLeafNode = []
|
|
|
+ info.checkedNodes.map(item => {
|
|
|
+ const node = item.data.props
|
|
|
+ const a = node.code.split('_')
|
|
|
+ this.checkLeafNode.push({pr:a[a.length-1],id:node.id})
|
|
|
+ })
|
|
|
+ this.hasAllSelect()
|
|
|
},
|
|
|
// 判断某分类是否全选
|
|
|
hasAllSelect(){
|
|
|
- console.log(this.leafNode)
|
|
|
- console.log(this.checkLeafNode)
|
|
|
+ // console.log(this.leafNode)
|
|
|
+ // console.log(this.checkLeafNode)
|
|
|
+ this.authAllPrice = []
|
|
|
this.priceOptions.map(item => {
|
|
|
const a = this.leafNode.filter(n => n.pr == item.value)
|
|
|
const b = this.checkLeafNode.filter(n => n.pr == item.value)
|