|
@@ -1,17 +1,16 @@
|
|
<template>
|
|
<template>
|
|
<div class="treeBox">
|
|
<div class="treeBox">
|
|
- <tree-comp :treeData="options" @handleClick="handleClick"></tree-comp>
|
|
|
|
|
|
+ <treeComp :treeData="options" @handleClick="handleClick"></treeComp>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
options: {
|
|
options: {
|
|
- type: Object,
|
|
|
|
- default: []
|
|
|
|
|
|
+ default: {}
|
|
},
|
|
},
|
|
categoryValue: {
|
|
categoryValue: {
|
|
- type: Object,
|
|
|
|
|
|
+ type: Array,
|
|
default: []
|
|
default: []
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -22,8 +21,8 @@ export default {
|
|
checkId:null
|
|
checkId:null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- components:{
|
|
|
|
-
|
|
|
|
|
|
+ created(){
|
|
|
|
+ this.init()
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
this.checkArr=this.categoryValue
|
|
this.checkArr=this.categoryValue
|
|
@@ -31,7 +30,7 @@ export default {
|
|
this.checkId=this.categoryValue[(this.categoryValue.length-1)]
|
|
this.checkId=this.categoryValue[(this.categoryValue.length-1)]
|
|
}
|
|
}
|
|
this.checkArr.push('000')
|
|
this.checkArr.push('000')
|
|
- this.init()
|
|
|
|
|
|
+ //this.init()
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
init(){
|
|
init(){
|