提交 c901632c 作者: 温凯

refactor: 优化跳点飞行组件代码

上级 c56cda0e
......@@ -243,10 +243,9 @@ export default {
}
if (!this.activeItem.deviceId) return this.$message.warning("请选择跳点");
let { flightSpeed, flightHeight } = this;
let { sn } = this.uav.uav;
this.rootNode.$emit("apronUavSkipEvent", {
// 主机库设备序列号
masterDeviceId: sn,
// 主机库序列号
masterDeviceId: this.hangar.deviceId,
// 从机库设备序列号
slaveDeviceId: this.activeItem.deviceId,
altitude: flightHeight,
......@@ -356,7 +355,6 @@ export default {
this.rootNode.$emit("leapFrogFlighGet", {
deviceId,
callback: (res) => {
console.log(res,'res')
if (res.skipList) {
this.skipList = res.skipList.map((item) => {
return {
......@@ -411,7 +409,6 @@ export default {
}
},
created() {
console.log(this.uav.uav,this.hangar,'this.uav.uav');
this.intervalId = setInterval(() => {
this.getTaskList(this.hangar.deviceId);
}, 3000);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论