提交 3f06b1b0 作者: 翁进城

feat: 创建航线增加终点降落项

上级 4b0a5f81
...@@ -25,6 +25,12 @@ ...@@ -25,6 +25,12 @@
emitPath: false, emitPath: false,
}" @change="changeNode"></el-cascader> }" @change="changeNode"></el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="终点降落:" required>
<el-radio-group v-model="finishedAction">
<el-radio label="USING_INITIAL_DIRECTION"></el-radio>
<el-radio label="GO_HOME"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="航线速度" prop="speed"> <el-form-item label="航线速度" prop="speed">
<el-input clearable v-model="curForm.speed"></el-input> <el-input clearable v-model="curForm.speed"></el-input>
</el-form-item> </el-form-item>
...@@ -135,6 +141,7 @@ export default { ...@@ -135,6 +141,7 @@ export default {
return { return {
orgList: [], orgList: [],
name: "", //航线名 name: "", //航线名
finishedAction: 'GO_HOME',//终点降落
departmentId:'',//部门id departmentId:'',//部门id
flightLabel:"",//航线标签 flightLabel:"",//航线标签
form: [], //表单集合 form: [], //表单集合
...@@ -360,7 +367,8 @@ export default { ...@@ -360,7 +367,8 @@ export default {
departmentId: this.departmentId, //部门id departmentId: this.departmentId, //部门id
name: this.name, name: this.name,
speed: this.form[0].speed, speed: this.form[0].speed,
flyTime: this.convertToSeconds(this.time) flyTime: this.convertToSeconds(this.time),
finishedAction: this.finishedAction,
}; };
try { try {
let res = await AirLine.add({ let res = await AirLine.add({
...@@ -370,6 +378,7 @@ export default { ...@@ -370,6 +378,7 @@ export default {
departmentId: airway.departmentId, departmentId: airway.departmentId,
sourceType: 1, sourceType: 1,
flyTime:airway.flyTime, flyTime:airway.flyTime,
finishedAction: airway.finishedAction,
linePointSaveReqVOS: airway.content.map((point) => ({ linePointSaveReqVOS: airway.content.map((point) => ({
latitude: point.coordinate.latitude, latitude: point.coordinate.latitude,
longitude: point.coordinate.longitude, longitude: point.coordinate.longitude,
......
...@@ -240,7 +240,19 @@ export default { ...@@ -240,7 +240,19 @@ export default {
pageNo: 1, pageNo: 1,
pageSize: 100, pageSize: 100,
callback: (res) => { callback: (res) => {
this.airwayList = res?.records || []; this.airwayList = res?.records || [
/* {
id: item.id,
name: item.flightName,
organizationName: "无",
status: "可用", //空域状态
safe: item.safe ? 1 : 0, // 安全状态1: 安全 , 0: 待确定,
labelName: "无",
//航线数据
content,
finishedAction: "GO_HOME"
} */
];
this.$nextTick(() => { this.$nextTick(() => {
if (id) { if (id) {
this.selectedAirwayId = id; this.selectedAirwayId = id;
......
...@@ -732,7 +732,7 @@ const actions = { ...@@ -732,7 +732,7 @@ const actions = {
flightSortiesID: flightSortieId.data, flightSortiesID: flightSortieId.data,
waypointList: waypointList, waypointList: waypointList,
autoFlightSpeed: state.airlineData.baseSpeed || 6, autoFlightSpeed: state.airlineData.baseSpeed || 6,
finishedAction: "GO_HOME", finishedAction: state.airlineData.finishedAction || "GO_HOME",
headingMode: "AUTO", headingMode: "AUTO",
isExitMissionOnRCSignalLostEnabled: true, isExitMissionOnRCSignalLostEnabled: true,
maxFlightSpeed: 12, maxFlightSpeed: 12,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论