|
|
@ -151,11 +151,21 @@ export default { |
|
|
|
getMinMapLayers(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
setFilterData(data) { |
|
|
|
this.filterData = data; |
|
|
|
|
|
|
|
this.layerData[1].children.forEach(item => { |
|
|
|
if (!item.status) return; |
|
|
|
|
|
|
|
this.handleDeviceImmediate(item); |
|
|
|
this.handleDeviceImmediate(item); |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleClick(item) { |
|
|
|
this.active = item.title; |
|
|
|
this.tabContentData = item.children; |
|
|
|
}, |
|
|
|
handleDevice: debounce(function (item) { |
|
|
|
handleDeviceImmediate(item) { |
|
|
|
const key = getHandleDeviceType(item) || `${this.active}/${item.title}`; |
|
|
|
|
|
|
|
const status = item.status; |
|
|
@ -167,6 +177,9 @@ export default { |
|
|
|
if (!eventMap[`${key}${status ? "_close" : ""}`]) return this.$emit("onClickItem", item); |
|
|
|
|
|
|
|
eventMap[`${key}${status ? "_close" : ""}`]?.call(this, item); |
|
|
|
}, |
|
|
|
handleDevice: debounce(function (item) { |
|
|
|
this.handleDeviceImmediate(item); |
|
|
|
}, 360), |
|
|
|
handleCleared() { |
|
|
|
const { mapIns } = this.getMap(); |
|
|
|