| | |
| | | return this.$message.warning('任务时间不能小于当前时间') |
| | | } |
| | | } |
| | | const maxItem = this.device_sns.reduce((max, item) => { |
| | | return item.drone_height > max.drone_height ? item : max |
| | | }) |
| | | console.log(maxItem.drone_height, '高度') |
| | | console.log(this.lastHeight, '最后一点高度') |
| | | let result = _.round((maxItem.drone_height + this.form.rth_altitude), 2) |
| | | let checkedList = this.device_sns.filter(item => this.form.device_sns.includes(item.device_sn)); |
| | | const maxItem = checkedList.reduce((max, item) => { |
| | | return item.drone_height > max.drone_height ? item : max; |
| | | }); |
| | | console.log(maxItem.drone_height, '高度'); |
| | | console.log(this.lastHeight, '最后一点高度'); |
| | | let result = _.round((maxItem.drone_height + this.form.rth_altitude), 2); |
| | | |
| | | let resultHeight = this.lastHeight - maxItem.drone_height |
| | | let resultH = _.round(resultHeight, 2) |
| | |
| | | } |
| | | |
| | | // 更新机巢列表 |
| | | this.device_sns = data.device_list |
| | | this.device_sns = data.device_map_infos;// data.device_list; |
| | | this.permission && |
| | | (this.permission.order_log_review || this.permission.order_log_recall) && |
| | | (data.status == 1 || |