|
|
@ -7,7 +7,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
<el-tree
|
|
|
|
<el-tree
|
|
|
|
:data="treeData"
|
|
|
|
:data="treeData"
|
|
|
|
:props="{label:'monitorUnitName',children:'child',value:'monitorUnitId'}"
|
|
|
|
|
|
|
|
accordion
|
|
|
|
accordion
|
|
|
|
node-key="id"
|
|
|
|
node-key="id"
|
|
|
|
@node-click="treeClick">
|
|
|
|
@node-click="treeClick">
|
|
|
@ -118,7 +117,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
async getTree() {
|
|
|
|
async getTree() {
|
|
|
|
const {rows: data} = await treeList()
|
|
|
|
const {data} = await treeList()
|
|
|
|
console.log(data)
|
|
|
|
console.log(data)
|
|
|
|
this.treeData = data
|
|
|
|
this.treeData = data
|
|
|
|
},
|
|
|
|
},
|
|
|
|