提交 3f06b1b0 作者: 翁进城

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

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