|
@@ -32,6 +32,7 @@
|
|
@check="onCheck"
|
|
@check="onCheck"
|
|
@expand="onExpand"
|
|
@expand="onExpand"
|
|
:expandedKeys="expandedKeys"
|
|
:expandedKeys="expandedKeys"
|
|
|
|
+ :defaultExpandAll="true"
|
|
:autoExpandParent="autoExpandParent"
|
|
:autoExpandParent="autoExpandParent"
|
|
v-model="checkedKeys"
|
|
v-model="checkedKeys"
|
|
:treeData="treeData"
|
|
:treeData="treeData"
|
|
@@ -102,9 +103,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
// 展开/收起节点
|
|
// 展开/收起节点
|
|
onExpand (expandedKeys) {
|
|
onExpand (expandedKeys) {
|
|
- console.log(expandedKeys)
|
|
|
|
this.expandedKeys = expandedKeys
|
|
this.expandedKeys = expandedKeys
|
|
- this.autoExpandParent = false
|
|
|
|
},
|
|
},
|
|
// 点击复选框
|
|
// 点击复选框
|
|
onCheck (checkedKeys, info) {
|
|
onCheck (checkedKeys, info) {
|
|
@@ -320,8 +319,8 @@ export default {
|
|
this.findPrice(treeData, this.checkedData)
|
|
this.findPrice(treeData, this.checkedData)
|
|
this.hasAllSelect()
|
|
this.hasAllSelect()
|
|
}
|
|
}
|
|
- // console.log(this.checkedKeys)
|
|
|
|
- // console.log(this.checkedData)
|
|
|
|
|
|
+ console.log(this.checkedKeys)
|
|
|
|
+ console.log(this.checkedData)
|
|
|
|
|
|
this.treeData = treeData
|
|
this.treeData = treeData
|
|
|
|
|
|
@@ -359,14 +358,6 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.priceOptions = this.$store.state.app.priceAuthOptions
|
|
this.priceOptions = this.$store.state.app.priceAuthOptions
|
|
}
|
|
}
|
|
- },
|
|
|
|
- nowData: {
|
|
|
|
- handler (newValue, oldValue) {
|
|
|
|
- if (this.isshow && newValue) {
|
|
|
|
- this.pageInit()
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- deep: true
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|