diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/RouteWaypointsController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/RouteWaypointsController.java new file mode 100644 index 0000000..cf9be8f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/RouteWaypointsController.java @@ -0,0 +1,104 @@ +package com.ruoyi.web.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.RouteWaypoints; +import com.ruoyi.system.service.IRouteWaypointsService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 航线具体航点明细Controller + * + * @author ruoyi + * @date 2026-01-21 + */ +@RestController +@RequestMapping("/system/waypoints") +public class RouteWaypointsController extends BaseController +{ + @Autowired + private IRouteWaypointsService routeWaypointsService; + + /** + * 查询航线具体航点明细列表 + */ + @PreAuthorize("@ss.hasPermi('system:waypoints:list')") + @GetMapping("/list") + public TableDataInfo list(RouteWaypoints routeWaypoints) + { + startPage(); + List list = routeWaypointsService.selectRouteWaypointsList(routeWaypoints); + return getDataTable(list); + } + + /** + * 导出航线具体航点明细列表 + */ + @PreAuthorize("@ss.hasPermi('system:waypoints:export')") + @Log(title = "航线具体航点明细", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, RouteWaypoints routeWaypoints) + { + List list = routeWaypointsService.selectRouteWaypointsList(routeWaypoints); + ExcelUtil util = new ExcelUtil(RouteWaypoints.class); + util.exportExcel(response, list, "航线具体航点明细数据"); + } + + /** + * 获取航线具体航点明细详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:waypoints:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(routeWaypointsService.selectRouteWaypointsById(id)); + } + + /** + * 新增航线具体航点明细 + */ + @PreAuthorize("@ss.hasPermi('system:waypoints:add')") + @Log(title = "航线具体航点明细", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody RouteWaypoints routeWaypoints) + { + return toAjax(routeWaypointsService.insertRouteWaypoints(routeWaypoints)); + } + + /** + * 修改航线具体航点明细 + */ + @PreAuthorize("@ss.hasPermi('system:waypoints:edit')") + @Log(title = "航线具体航点明细", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody RouteWaypoints routeWaypoints) + { + return toAjax(routeWaypointsService.updateRouteWaypoints(routeWaypoints)); + } + + /** + * 删除航线具体航点明细 + */ + @PreAuthorize("@ss.hasPermi('system:waypoints:remove')") + @Log(title = "航线具体航点明细", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(routeWaypointsService.deleteRouteWaypointsByIds(ids)); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/RouteWaypoints.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/RouteWaypoints.java new file mode 100644 index 0000000..f8349fc --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/RouteWaypoints.java @@ -0,0 +1,194 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 航线具体航点明细对象 route_waypoints + * + * @author ruoyi + * @date 2026-01-21 + */ +public class RouteWaypoints extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 航点ID */ + private Long id; + + /** 所属航线ID (关联 routes.id) */ + @Excel(name = "所属航线ID (关联 routes.id)") + private Long routeId; + + /** 航点名称 (如: WP1) */ + @Excel(name = "航点名称 (如: WP1)") + private String name; + + /** 航点顺序 (从1开始递增) */ + @Excel(name = "航点顺序 (从1开始递增)") + private Long seq; + + /** 纬度 */ + @Excel(name = "纬度") + private BigDecimal lat; + + /** 经度 */ + @Excel(name = "经度") + private BigDecimal lng; + + /** 高度 (米) */ + @Excel(name = "高度 (米)") + private Long alt; + + /** 速度 (km/h) */ + @Excel(name = "速度 (km/h)") + private Long speed; + + /** 起始时间 (如: K+00:40:00) */ + @Excel(name = "起始时间 (如: K+00:40:00)") + private String startTime; + + /** 转弯角度 (用于计算转弯半径) */ + @Excel(name = "转弯角度 (用于计算转弯半径)") + private Long turnAngle; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + + public void setRouteId(Long routeId) + { + this.routeId = routeId; + } + + public Long getRouteId() + { + return routeId; + } + + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + + public void setSeq(Long seq) + { + this.seq = seq; + } + + public Long getSeq() + { + return seq; + } + + public void setLat(BigDecimal lat) + { + this.lat = lat; + } + + public BigDecimal getLat() + { + return lat; + } + + public void setLng(BigDecimal lng) + { + this.lng = lng; + } + + public BigDecimal getLng() + { + return lng; + } + + public void setAlt(Long alt) + { + this.alt = alt; + } + + public Long getAlt() + { + return alt; + } + + public void setSpeed(Long speed) + { + this.speed = speed; + } + + public Long getSpeed() + { + return speed; + } + + public void setStartTime(String startTime) + { + this.startTime = startTime; + } + + public String getStartTime() + { + return startTime; + } + + public void setTurnAngle(Long turnAngle) + { + this.turnAngle = turnAngle; + } + + public Long getTurnAngle() + { + return turnAngle; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("routeId", getRouteId()) + .append("name", getName()) + .append("seq", getSeq()) + .append("lat", getLat()) + .append("lng", getLng()) + .append("alt", getAlt()) + .append("speed", getSpeed()) + .append("startTime", getStartTime()) + .append("turnAngle", getTurnAngle()) + .toString(); + } + + /** * 获取转弯半径 (该字段不在数据库中,仅用于逻辑计算) + * 公式: R = V^2 / (g * tan(θ)) + */ + public Double getTurnRadius() + { + // 安全校验:如果角度为0、速度为null,半径视为0 + if (this.turnAngle == null || this.turnAngle == 0 || this.speed == null) { + return 0.0; + } + // 单位换算:速度从 km/h 转为 m/s + double v_mps = this.speed / 3.6; + // 单位换算:角度从 度(Degree) 转为 弧度(Radians) + double radians = Math.toRadians(this.turnAngle.doubleValue()); + // 重力加速度 g + double g = 9.8; + // 计算半径 + double radius = (v_mps * v_mps) / (g * Math.tan(radians)); + + return radius; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/Routes.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Routes.java index 20d61e6..d1055b2 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/Routes.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Routes.java @@ -5,108 +5,105 @@ import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; +import java.util.List; + /** * 实体部署与航线对象 routes - * + * * @author ruoyi * @date 2026-01-14 */ -public class Routes extends BaseEntity -{ +public class Routes extends BaseEntity { private static final long serialVersionUID = 1L; - /** 路由ID */ + /** + * 路由ID + */ private Long id; - /** 归属方案ID */ + /** + * 归属方案ID + */ @Excel(name = "归属方案ID") private Long scenarioId; - /** 使用的是库里哪个平台 (关联 platform_lib.id) */ + /** + * 使用的是库里哪个平台 (关联 platform_lib.id) + */ @Excel(name = "使用的是库里哪个平台 (关联 platform_lib.id)") private Long platformId; - /** 名称 (如: 猎鹰01) */ + /** + * 名称 (如: 猎鹰01) + */ @Excel(name = "名称 (如: 猎鹰01)") private String callSign; - /** 实例属性JSON: 覆盖库里的默认值 (如当前初始油量, 挂载配置) */ + /** + * 实例属性JSON: 覆盖库里的默认值 (如当前初始油量, 挂载配置) + */ @Excel(name = "实例属性JSON: 覆盖库里的默认值 (如当前初始油量, 挂载配置)") private String attributes; - /** 航点数据JSON数组: [{seq, k_offset, lat, lng, alt, speed, action...}] */ - @Excel(name = "航点数据JSON数组: [{seq, k_offset, lat, lng, alt, speed, action...}]") - private String waypoints; + private List waypoints; - public void setId(Long id) - { + public void setId(Long id) { this.id = id; } - public Long getId() - { + public Long getId() { return id; } - public void setScenarioId(Long scenarioId) - { + public void setScenarioId(Long scenarioId) { this.scenarioId = scenarioId; } - public Long getScenarioId() - { + public Long getScenarioId() { return scenarioId; } - public void setPlatformId(Long platformId) - { + public void setPlatformId(Long platformId) { this.platformId = platformId; } - public Long getPlatformId() - { + public Long getPlatformId() { return platformId; } - public void setCallSign(String callSign) - { + public void setCallSign(String callSign) { this.callSign = callSign; } - public String getCallSign() - { + public String getCallSign() { return callSign; } - public void setAttributes(String attributes) - { + public void setAttributes(String attributes) { this.attributes = attributes; } - public String getAttributes() - { + public String getAttributes() { return attributes; } - public void setWaypoints(String waypoints) - { - this.waypoints = waypoints; + public List getWaypoints() { + return waypoints; } - public String getWaypoints() - { - return waypoints; + public void setWaypoints(List waypoints) { + this.waypoints = waypoints; } @Override public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("id", getId()) - .append("scenarioId", getScenarioId()) - .append("platformId", getPlatformId()) - .append("callSign", getCallSign()) - .append("attributes", getAttributes()) - .append("waypoints", getWaypoints()) - .toString(); + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("scenarioId", getScenarioId()) + .append("platformId", getPlatformId()) + .append("callSign", getCallSign()) + .append("attributes", getAttributes()) + .append("waypoints", getWaypoints()) + .toString(); } } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/RouteWaypointsMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/RouteWaypointsMapper.java new file mode 100644 index 0000000..2e77e10 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/RouteWaypointsMapper.java @@ -0,0 +1,64 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.RouteWaypoints; + +/** + * 航线具体航点明细Mapper接口 + * + * @author ruoyi + * @date 2026-01-21 + */ +public interface RouteWaypointsMapper +{ + /** + * 查询航线具体航点明细 + * + * @param id 航线具体航点明细主键 + * @return 航线具体航点明细 + */ + public RouteWaypoints selectRouteWaypointsById(Long id); + + /** + * 查询航线具体航点明细列表 + * + * @param routeWaypoints 航线具体航点明细 + * @return 航线具体航点明细集合 + */ + public List selectRouteWaypointsList(RouteWaypoints routeWaypoints); + + /** 查询指定航线下最大的序号 */ + public Integer selectMaxSeqByRouteId(Long routeId); + + /** + * 新增航线具体航点明细 + * + * @param routeWaypoints 航线具体航点明细 + * @return 结果 + */ + public int insertRouteWaypoints(RouteWaypoints routeWaypoints); + + /** + * 修改航线具体航点明细 + * + * @param routeWaypoints 航线具体航点明细 + * @return 结果 + */ + public int updateRouteWaypoints(RouteWaypoints routeWaypoints); + + /** + * 删除航线具体航点明细 + * + * @param id 航线具体航点明细主键 + * @return 结果 + */ + public int deleteRouteWaypointsById(Long id); + + /** + * 批量删除航线具体航点明细 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteRouteWaypointsByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IRouteWaypointsService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IRouteWaypointsService.java new file mode 100644 index 0000000..fc046e8 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IRouteWaypointsService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.RouteWaypoints; + +/** + * 航线具体航点明细Service接口 + * + * @author ruoyi + * @date 2026-01-21 + */ +public interface IRouteWaypointsService +{ + /** + * 查询航线具体航点明细 + * + * @param id 航线具体航点明细主键 + * @return 航线具体航点明细 + */ + public RouteWaypoints selectRouteWaypointsById(Long id); + + /** + * 查询航线具体航点明细列表 + * + * @param routeWaypoints 航线具体航点明细 + * @return 航线具体航点明细集合 + */ + public List selectRouteWaypointsList(RouteWaypoints routeWaypoints); + + /** + * 新增航线具体航点明细 + * + * @param routeWaypoints 航线具体航点明细 + * @return 结果 + */ + public int insertRouteWaypoints(RouteWaypoints routeWaypoints); + + /** + * 修改航线具体航点明细 + * + * @param routeWaypoints 航线具体航点明细 + * @return 结果 + */ + public int updateRouteWaypoints(RouteWaypoints routeWaypoints); + + /** + * 批量删除航线具体航点明细 + * + * @param ids 需要删除的航线具体航点明细主键集合 + * @return 结果 + */ + public int deleteRouteWaypointsByIds(Long[] ids); + + /** + * 删除航线具体航点明细信息 + * + * @param id 航线具体航点明细主键 + * @return 结果 + */ + public int deleteRouteWaypointsById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RouteWaypointsServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RouteWaypointsServiceImpl.java new file mode 100644 index 0000000..fbc0848 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RouteWaypointsServiceImpl.java @@ -0,0 +1,104 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.RouteWaypointsMapper; +import com.ruoyi.system.domain.RouteWaypoints; +import com.ruoyi.system.service.IRouteWaypointsService; + +/** + * 航线具体航点明细Service业务层处理 + * + * @author ruoyi + * @date 2026-01-21 + */ +@Service +public class RouteWaypointsServiceImpl implements IRouteWaypointsService +{ + @Autowired + private RouteWaypointsMapper routeWaypointsMapper; + + /** + * 查询航线具体航点明细 + * + * @param id 航线具体航点明细主键 + * @return 航线具体航点明细 + */ + @Override + public RouteWaypoints selectRouteWaypointsById(Long id) + { + return routeWaypointsMapper.selectRouteWaypointsById(id); + } + + /** + * 查询航线具体航点明细列表 + * + * @param routeWaypoints 航线具体航点明细 + * @return 航线具体航点明细 + */ + @Override + public List selectRouteWaypointsList(RouteWaypoints routeWaypoints) + { + return routeWaypointsMapper.selectRouteWaypointsList(routeWaypoints); + } + + /** + * 新增航线具体航点明细 + * + * @param routeWaypoints 航线具体航点明细 + * @return 结果 + */ + @Override + public int insertRouteWaypoints(RouteWaypoints routeWaypoints) + { + // 1. 获取该航线当前的最高序号 + Integer maxSeq = routeWaypointsMapper.selectMaxSeqByRouteId(routeWaypoints.getRouteId()); + + // 2. 如果是第一条,序号为1;否则在最大值基础上 +1 + if (maxSeq == null) { + routeWaypoints.setSeq(1L); + } else { + routeWaypoints.setSeq((long) (maxSeq + 1)); + } + + // 3. 执行若依生成的原始插入方法 + return routeWaypointsMapper.insertRouteWaypoints(routeWaypoints); + } + + /** + * 修改航线具体航点明细 + * + * @param routeWaypoints 航线具体航点明细 + * @return 结果 + */ + @Override + public int updateRouteWaypoints(RouteWaypoints routeWaypoints) + { + return routeWaypointsMapper.updateRouteWaypoints(routeWaypoints); + } + + /** + * 批量删除航线具体航点明细 + * + * @param ids 需要删除的航线具体航点明细主键 + * @return 结果 + */ + @Override + public int deleteRouteWaypointsByIds(Long[] ids) + { + return routeWaypointsMapper.deleteRouteWaypointsByIds(ids); + } + + /** + * 删除航线具体航点明细信息 + * + * @param id 航线具体航点明细主键 + * @return 结果 + */ + @Override + public int deleteRouteWaypointsById(Long id) + { + return routeWaypointsMapper.deleteRouteWaypointsById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RoutesServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RoutesServiceImpl.java index 13295dd..93b1ded 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RoutesServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RoutesServiceImpl.java @@ -1,11 +1,15 @@ package com.ruoyi.system.service.impl; import java.util.List; + +import com.ruoyi.system.domain.RouteWaypoints; +import com.ruoyi.system.service.IRouteWaypointsService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.system.mapper.RoutesMapper; import com.ruoyi.system.domain.Routes; import com.ruoyi.system.service.IRoutesService; +import org.springframework.transaction.annotation.Transactional; /** * 实体部署与航线Service业务层处理 @@ -19,6 +23,9 @@ public class RoutesServiceImpl implements IRoutesService @Autowired private RoutesMapper routesMapper; + @Autowired + private IRouteWaypointsService routeWaypointsService; + /** * 查询实体部署与航线 * @@ -50,9 +57,26 @@ public class RoutesServiceImpl implements IRoutesService * @return 结果 */ @Override + @Transactional public int insertRoutes(Routes routes) { - return routesMapper.insertRoutes(routes); + // 保存航线主体,MyBatis 会回填自增 ID 到 routes.id + int route = routesMapper.insertRoutes(routes); + + // 从 routes 对象中拿到刚才手动添加的 List + List waypointList = routes.getWaypoints(); + + if (waypointList != null && !waypointList.isEmpty()) + { + for (RouteWaypoints waypoint : waypointList) + { + // 将刚生成的航线 ID 绑定到每个航点上 + waypoint.setRouteId(routes.getId()); + // 调用航点 Service,触发seq字段的自动递增逻辑 + routeWaypointsService.insertRouteWaypoints(waypoint); + } + } + return route; } /** diff --git a/ruoyi-system/src/main/resources/mapper/system/RouteWaypointsMapper.xml b/ruoyi-system/src/main/resources/mapper/system/RouteWaypointsMapper.xml new file mode 100644 index 0000000..f6209fb --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/RouteWaypointsMapper.xml @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + select id, route_id, name, seq, lat, lng, alt, speed, start_time, turn_angle from route_waypoints + + + + + + + + + + insert into route_waypoints + + route_id, + name, + seq, + lat, + lng, + alt, + speed, + start_time, + turn_angle, + + + #{routeId}, + #{name}, + #{seq}, + #{lat}, + #{lng}, + #{alt}, + #{speed}, + #{startTime}, + #{turnAngle}, + + + + + update route_waypoints + + route_id = #{routeId}, + name = #{name}, + seq = #{seq}, + lat = #{lat}, + lng = #{lng}, + alt = #{alt}, + speed = #{speed}, + start_time = #{startTime}, + turn_angle = #{turnAngle}, + + where id = #{id} + + + + delete from route_waypoints where id = #{id} + + + + delete from route_waypoints where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/RoutesMapper.xml b/ruoyi-system/src/main/resources/mapper/system/RoutesMapper.xml index 934bfb1..e51edf9 100644 --- a/ruoyi-system/src/main/resources/mapper/system/RoutesMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/RoutesMapper.xml @@ -10,11 +10,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - select id, scenario_id, platform_id, call_sign, attributes, waypoints from routes + select id, scenario_id, platform_id, call_sign, attributes from routes @@ -40,14 +38,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" platform_id, call_sign, attributes, - waypoints, #{scenarioId}, #{platformId}, #{callSign}, #{attributes}, - #{waypoints}, @@ -58,7 +54,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" platform_id = #{platformId}, call_sign = #{callSign}, attributes = #{attributes}, - waypoints = #{waypoints}, where id = #{id} diff --git a/ruoyi-ui/src/api/system/waypoints.js b/ruoyi-ui/src/api/system/waypoints.js new file mode 100644 index 0000000..551e122 --- /dev/null +++ b/ruoyi-ui/src/api/system/waypoints.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询航线具体航点明细列表 +export function listWaypoints(query) { + return request({ + url: '/system/waypoints/list', + method: 'get', + params: query + }) +} + +// 查询航线具体航点明细详细 +export function getWaypoints(id) { + return request({ + url: '/system/waypoints/' + id, + method: 'get' + }) +} + +// 新增航线具体航点明细 +export function addWaypoints(data) { + return request({ + url: '/system/waypoints', + method: 'post', + data: data + }) +} + +// 修改航线具体航点明细 +export function updateWaypoints(data) { + return request({ + url: '/system/waypoints', + method: 'put', + data: data + }) +} + +// 删除航线具体航点明细 +export function delWaypoints(id) { + return request({ + url: '/system/waypoints/' + id, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/views/cesiumMap/index.vue b/ruoyi-ui/src/views/cesiumMap/index.vue index fecb74a..e17cf32 100644 --- a/ruoyi-ui/src/views/cesiumMap/index.vue +++ b/ruoyi-ui/src/views/cesiumMap/index.vue @@ -12,6 +12,7 @@ @import-data="importData" @locate="handleLocate" /> + +