| | |
| | | }, |
| | | computed: { |
| | | currMenuList() { |
| | | |
| | | const menu = this.menuList.find(item => item.menuName == this.currMenu) |
| | | const filterChildren = [] |
| | | |
| | | const value = this.searchName |
| | | menu.children.forEach(item => { |
| | | if (item.name && item.name.includes(value)) { |
| | |
| | | ChangeBaseLayer(name) { |
| | | this.currYX = name |
| | | Viewer.imageryLayers._layers[1].show = false |
| | | Viewer.imageryLayers._layers[2].show = false |
| | | Viewer.imageryLayers._layers[3].show = false |
| | | // Viewer.imageryLayers._layers[2].show = false |
| | | // Viewer.imageryLayers._layers[3].show = false |
| | | if (yunxuanLayer) { |
| | | Viewer.imageryLayers.remove(yunxuanLayer); |
| | | yunxuanLayer = null |
| | |
| | | } |
| | | }, |
| | | handleMenuClick(menu) { |
| | | |
| | | debugger |
| | | this.currMenu = menu.menuName |
| | | }, |
| | | handlePopoverClick(child) { |
| | |
| | | this.showPathLine(child) |
| | | break |
| | | case "项目展示": |
| | | this.$bus.$emit("changeProjectLayer", child.id) |
| | | this.DisplayCurrentProject(child) |
| | | this.changeProject(child) |
| | | this.$bus.$emit("changeProjectCode", child.id) |
| | | |
| | | break |
| | | case "专题展示": |
| | | this.$bus.$emit("changeProjectLayer", child.id) |
| | | this.changeProject(child) |
| | | break |
| | | |
| | |
| | | async getCountProjectTour() { |
| | | const res = await countProjectTour() |
| | | if (res.code === 200) { |
| | | |
| | | const menu = this.menuList.find(item => item.menuName == "工程巡视") |
| | | |
| | | menu.children = res.result.map(item => { |
| | | return { |
| | | name: item.projname, |