支持通用通道云台控制,支持地图位置编辑
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
ref="regionTree"
|
||||
:edit="false"
|
||||
:show-header="false"
|
||||
:show-position="showPosition"
|
||||
:has-channel="true"
|
||||
:contextmenu="contextmenu"
|
||||
@clickEvent="treeNodeClickEvent"
|
||||
:default-expanded-keys="[]"
|
||||
/>
|
||||
@@ -28,7 +30,9 @@
|
||||
ref="groupTree"
|
||||
:edit="false"
|
||||
:show-header="false"
|
||||
:show-position="showPosition"
|
||||
:has-channel="true"
|
||||
:contextmenu="contextmenu"
|
||||
@clickEvent="treeNodeClickEvent"
|
||||
:default-expanded-keys="[]"
|
||||
/>
|
||||
@@ -56,6 +60,14 @@ export default {
|
||||
contextMenuEvent: {
|
||||
type: Function,
|
||||
default: null
|
||||
},
|
||||
showPosition: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
contextmenu: {
|
||||
type: Array,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -135,6 +147,14 @@ export default {
|
||||
if (data.leaf) {
|
||||
this.$emit('clickEvent', data.id)
|
||||
}
|
||||
},
|
||||
refresh: function(id) {
|
||||
console.log(id)
|
||||
if (this.showRegion) {
|
||||
this.$refs.regionTree.refresh(id)
|
||||
}else {
|
||||
this.$refs.groupTree.refresh(id)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user