| | |
| | | </div> |
| | | |
| | | <div class="second-container" :class="{ 'spread': boxShow, 'take-back': !boxShow }"> |
| | | <el-tree :data="treeData" show-checkbox node-key="id" @check="treeCheckClick"></el-tree> |
| | | <el-tree :data="treeData" show-checkbox node-key="id" @check="treeCheckClick" |
| | | @check-change="treeCheckChange"></el-tree> |
| | | </div> |
| | | |
| | | <map-search-box></map-search-box> |
| | |
| | | |
| | | import publicIndex from './components/publicIndex.vue' |
| | | import { initMapPosition } from '@/utils/mapPositionInit' |
| | | import { computerCapacity } from "@/utils/turfPolygon.js" |
| | | |
| | | |
| | | let loading = null |
| | |
| | | this.$EventBus.$on('activeDeleteLineOrPoint', (type) => { |
| | | this.activeDeleteLineOrPoint(type) |
| | | }) |
| | | |
| | | }, |
| | | |
| | | mounted () { |
| | |
| | | this.showingSecurityId = item.id |
| | | |
| | | this.$refs.PublicIndexPage.reloadAll({ id: item.id, deptId: item.deptId, item }) |
| | | |
| | | |
| | | this.activityDeptId = item.deptId |
| | | |
| | |
| | | } |
| | | this.dataTreeCheckedNodes = e2.checkedNodes |
| | | this.eachDataTreeCheckedNodes(this.dataTreeCheckedNodes) |
| | | }, |
| | | |
| | | //树形控件选中状态改变事件 |
| | | treeCheckChange (e1, e2) { |
| | | if (e2 && !e1.children) { |
| | | let iconArr = [] |
| | | if (e1.label == '视频监控') { |
| | | iconArr = cameraList |
| | | } else if (e1.label == '警车') { |
| | | iconArr = carList |
| | | } else if (e1.label == '公网') { |
| | | iconArr = talkBackEquipmentPublicList |
| | | } else if (e1.label == '专网') { |
| | | iconArr = talkBackEquipmentList |
| | | } else if (e1.label == '执法记录仪') { |
| | | iconArr = policeCarmeraList |
| | | } |
| | | // 获取图标中心跳转 |
| | | computerCapacity(iconArr, 'icon') |
| | | |
| | | } |
| | | }, |
| | | |
| | | // 遍历树数据实时图标 |