| | |
| | | this.handler.setInputAction(movement => this.handleMouseMove(movement), Cesium.ScreenSpaceEventType.MOUSE_MOVE) |
| | | this.drawStep = 0 |
| | | this.isCompleted = false |
| | | this.tooltip.show('单击设置中心点', { x: 0, y: 0 }) |
| | | this.tooltip.hide() |
| | | } |
| | | |
| | | handleLeftClick(click) { |
| | |
| | | |
| | | handleMouseMove(movement) { |
| | | if (this.isCompleted) return |
| | | this.tooltip.move(movement.endPosition) |
| | | const tipText = this.drawStep === 0 |
| | | ? '单击设置中心点' |
| | | : this.drawStep === 1 |
| | | ? '单击设置一级缓冲圆' |
| | | : this.drawStep === 2 |
| | | ? '单击设置二级缓冲圆' |
| | | : '单击设置三级缓冲圆' |
| | | if (!this.tooltip?.isVisible) { |
| | | this.tooltip.show(tipText, movement.endPosition) |
| | | } else { |
| | | this.tooltip.show(tipText) |
| | | this.tooltip.move(movement.endPosition) |
| | | } |
| | | if (!this.isDrawing) return |
| | | const position = this.getPositionFromScreen(movement.endPosition) |
| | | if (!position) return |
| | |
| | | this.handler.setInputAction(movement => this.handleMouseMove(movement), Cesium.ScreenSpaceEventType.MOUSE_MOVE) |
| | | this.drawStep = 0 |
| | | this.isCompleted = false |
| | | this.tooltip.show('单击设置中心点', { x: 0, y: 0 }) |
| | | this.tooltip.hide() |
| | | } |
| | | |
| | | handleLeftClick(click) { |
| | |
| | | |
| | | handleMouseMove(movement) { |
| | | if (this.isCompleted) return |
| | | this.tooltip.move(movement.endPosition) |
| | | const tipText = this.drawStep === 0 |
| | | ? '单击设置中心点' |
| | | : this.drawStep === 1 |
| | | ? '单击设置长轴' |
| | | : '单击设置短轴' |
| | | if (!this.tooltip?.isVisible) { |
| | | this.tooltip.show(tipText, movement.endPosition) |
| | | } else { |
| | | this.tooltip.show(tipText) |
| | | this.tooltip.move(movement.endPosition) |
| | | } |
| | | if (!this.isDrawing) return |
| | | const position = this.getPositionFromScreen(movement.endPosition) |
| | | if (!position) return |
| | |
| | | this.handler.setInputAction(click => this.handleRightClick(click), Cesium.ScreenSpaceEventType.RIGHT_CLICK) |
| | | this.handler.setInputAction(movement => this.handleMouseMove(movement), Cesium.ScreenSpaceEventType.MOUSE_MOVE) |
| | | this.isDrawing = true |
| | | this.tooltip.show(this.getTipText(), { x: 0, y: 0 }) |
| | | this.tooltip.hide() |
| | | } |
| | | |
| | | handleLeftClick(click) { |
| | |
| | | this.handler.setInputAction(click => this.handleLeftClick(click), Cesium.ScreenSpaceEventType.LEFT_CLICK) |
| | | this.handler.setInputAction(movement => this.handleMouseMove(movement), Cesium.ScreenSpaceEventType.MOUSE_MOVE) |
| | | |
| | | this.tooltip.show('单击设置起点', { x: 0, y: 0 }) |
| | | this.tooltip.hide() |
| | | } |
| | | |
| | | handleLeftClick(click) { |
| | |
| | | } |
| | | |
| | | handleMouseMove(movement) { |
| | | if (!this.isDrawing) { |
| | | const tipText = this.startPosition ? '单击结束绘制' : '单击设置起点' |
| | | if (!this.tooltip?.isVisible) { |
| | | this.tooltip.show(tipText, movement.endPosition) |
| | | } else { |
| | | this.tooltip.show(tipText) |
| | | this.tooltip.move(movement.endPosition) |
| | | return |
| | | } |
| | | if (!this.isDrawing) return |
| | | const position = this.getPositionFromScreen(movement.endPosition) |
| | | if (!position) return |
| | | this.endPosition = position |
| | | this.tooltip.move(movement.endPosition) |
| | | } |
| | | |
| | | createEntities() { |
| | |
| | | this.handler.setInputAction(evt => this.handleLeftDown(evt), Cesium.ScreenSpaceEventType.LEFT_DOWN) |
| | | this.handler.setInputAction(evt => this.handleMouseMove(evt), Cesium.ScreenSpaceEventType.MOUSE_MOVE) |
| | | this.handler.setInputAction(() => this.handleLeftUp(), Cesium.ScreenSpaceEventType.LEFT_UP) |
| | | this.tooltip.show('拖动控制点编辑', { x: 0, y: 0 }) |
| | | this.tooltip.hide() |
| | | } |
| | | |
| | | handleLeftDown(evt) { |
| | |
| | | } |
| | | |
| | | handleMouseMove(evt) { |
| | | this.tooltip.move(evt.endPosition) |
| | | if (!this.tooltip?.isVisible) { |
| | | this.tooltip.show('拖动控制点编辑', evt.endPosition) |
| | | } else { |
| | | this.tooltip.show('拖动控制点编辑') |
| | | this.tooltip.move(evt.endPosition) |
| | | } |
| | | if (!this.dragType) return |
| | | const position = this.getPositionFromScreen(evt.endPosition) |
| | | if (!position) return |
| | |
| | | this.handler.setInputAction(evt => this.handleLeftDown(evt), Cesium.ScreenSpaceEventType.LEFT_DOWN) |
| | | this.handler.setInputAction(evt => this.handleMouseMove(evt), Cesium.ScreenSpaceEventType.MOUSE_MOVE) |
| | | this.handler.setInputAction(() => this.handleLeftUp(), Cesium.ScreenSpaceEventType.LEFT_UP) |
| | | this.tooltip.show('拖动控制点编辑', { x: 0, y: 0 }) |
| | | this.tooltip.hide() |
| | | } |
| | | |
| | | handleLeftDown(evt) { |
| | |
| | | } |
| | | |
| | | handleMouseMove(evt) { |
| | | this.tooltip.move(evt.endPosition) |
| | | if (!this.tooltip?.isVisible) { |
| | | this.tooltip.show('拖动控制点编辑', evt.endPosition) |
| | | } else { |
| | | this.tooltip.show('拖动控制点编辑') |
| | | this.tooltip.move(evt.endPosition) |
| | | } |
| | | if (!this.dragType) return |
| | | const position = this.getPositionFromScreen(evt.endPosition) |
| | | if (!position) return |
| | |
| | | } |
| | | |
| | | handleMouseMove(movement) { |
| | | this.tooltip.show('拖动顶点编辑,右键删除点', movement.endPosition) |
| | | if (!this.tooltip?.isVisible) { |
| | | this.tooltip.show('????????????', movement.endPosition) |
| | | } else { |
| | | this.tooltip.show('????????????') |
| | | this.tooltip.move(movement.endPosition) |
| | | } |
| | | if (!this.isDragging || this.draggedIndex < 0) return |
| | | const position = this.getPositionFromScreen(movement.endPosition) |
| | | if (!position) return |
| | |
| | | this.handler.setInputAction(evt => this.handleLeftDown(evt), Cesium.ScreenSpaceEventType.LEFT_DOWN) |
| | | this.handler.setInputAction(evt => this.handleMouseMove(evt), Cesium.ScreenSpaceEventType.MOUSE_MOVE) |
| | | this.handler.setInputAction(() => this.handleLeftUp(), Cesium.ScreenSpaceEventType.LEFT_UP) |
| | | this.tooltip.show('拖动顶点编辑', { x: 0, y: 0 }) |
| | | this.tooltip.hide() |
| | | } |
| | | |
| | | handleLeftDown(evt) { |
| | |
| | | } |
| | | |
| | | handleMouseMove(evt) { |
| | | this.tooltip.move(evt.endPosition) |
| | | if (!this.tooltip?.isVisible) { |
| | | this.tooltip.show('拖动顶点编辑', evt.endPosition) |
| | | } else { |
| | | this.tooltip.show('拖动顶点编辑') |
| | | this.tooltip.move(evt.endPosition) |
| | | } |
| | | if (this.dragIndex == null) return |
| | | const position = this.getPositionFromScreen(evt.endPosition) |
| | | if (!position) return |
| | |
| | | |
| | | |
| | | ## 根据多边形区域查询派出所 |
| | | ## 列表 |
| | | |
| | | |
| | | **接口地址**:`/area/fwPoliceStation/queryByPolygons` |
| | | **接口地址**:`/area/fwPoliceStation/list` |
| | | |
| | | |
| | | **请求方式**:`POST` |
| | | **请求方式**:`GET` |
| | | |
| | | |
| | | **请求数据类型**:`application/json` |
| | | **请求数据类型**:`application/x-www-form-urlencoded` |
| | | |
| | | |
| | | **响应数据类型**:`*/*` |
| | | |
| | | |
| | | **接口描述**:<p>传入多边形WKT字符串集合</p> |
| | | **接口描述**:<p>获取全部派出所</p> |
| | | |
| | | |
| | | |
| | | **请求示例**: |
| | | |
| | | |
| | | ```javascript |
| | | { |
| | | "polygons": [ |
| | | "POLYGON((114.96898636473107 27.11156483383477,114.97972069576815 27.111564833834766,114.97972069576815 27.120473921808035,114.96898636473107 27.120473921808035,114.96898636473107 27.11156483383477))" |
| | | ] |
| | | } |
| | | ``` |
| | | |
| | | |
| | | **请求参数**: |
| | |
| | | **请求参数**: |
| | | |
| | | |
| | | | 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema | |
| | | | -------- | -------- | ----- | -------- | -------- | ------ | |
| | | |dto|派出所多边形区域查询入参|body|true|FwPoliceStationPolygonQueryDTO对象|FwPoliceStationPolygonQueryDTO对象| |
| | | |  polygons|多边形WKT字符串集合||true|array|string| |
| | | 暂无 |
| | | |
| | | |
| | | **响应状态**: |
| | |
| | | | 状态码 | 说明 | schema | |
| | | | -------- | -------- | ----- | |
| | | |200|OK|R«List«FwPoliceStationVO»»| |
| | | |201|Created|| |
| | | |401|Unauthorized|| |
| | | |403|Forbidden|| |
| | | |404|Not Found|| |
| | |
| | | deviceListRequestToken += 1 |
| | | const requestToken = deviceListRequestToken |
| | | const res = await fwDeviceListByPolygonsApi({ |
| | | areaId: dialogMode.value === 'add' ? '' : formData.value.id, |
| | | isAreaSelect: 1, |
| | | isTrack: 1, |
| | | polygons, |
| | |
| | | // } |
| | | .el-input, |
| | | .el-input-number { |
| | | width: 0; |
| | | min-width: 200px; |
| | | flex: 1; |
| | | |
| | | .el-input__wrapper { |