| | |
| | | const isDrawPolygon = ref(false); |
| | | // 选中了哪些图斑 |
| | | const selectionIds = ref(null); |
| | | const selectionList = ref([]) |
| | | // 当前在编辑状态的异常图斑 |
| | | let curCustomPolygon = null; |
| | | const spotTypeOptions = ref([ |
| | |
| | | } |
| | | publicCesiumInstance = new PublicCesium({ |
| | | dom: 'spotMap', |
| | | terrain: true, |
| | | flatMode: false, |
| | | layerMode: 4, |
| | | flatMode: false, |
| | | terrain: true, |
| | | layerMode: 4, |
| | | contour: false, |
| | | }); |
| | | homeViewer.value = publicCesiumInstance.getViewer(); |
| | | viewer = publicCesiumInstance.getViewer(); |
| | |
| | | clearSelect(); |
| | | return; |
| | | } |
| | | |
| | | // 保存当前选中图斑 |
| | | // 取出当中经纬度 |
| | | const numbersWithCommas = data.dkfw.match(/\d+(\.\d+)?/g); |
| | |
| | | // 清空选中的数据 |
| | | const clearSelect = () => { |
| | | lastHighlightRow = null; |
| | | selectionIds.value = null; |
| | | // selectionIds.value = null; |
| | | selectionList.value = [] |
| | | }; |
| | | // 编辑 |
| | | const handleSelectionChange = row => { |
| | | console.log('编辑', row); |
| | | console.log('编辑', row.id); |
| | | let curRowIsSelect = row; |
| | | selectionIds.value = row.id; |
| | | selectionList.value = row |
| | | curRowIsSelect && handleLocationPolygon(row); |
| | | if (row.is_exception == 2 && curRowIsSelect) { |
| | | isDrawPolygon.value = true; |
| | |
| | | getTableList(); |
| | | }, 0); |
| | | } else { |
| | | if (funButtonEle.value) { |
| | | isBoxSelect.value = false; |
| | | isDrawPolygon.value = false; |
| | | } |
| | | destroyMap(); |
| | | } |
| | | }); |