|
@@ -26,8 +26,8 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="航线选择" prop="dataType">
|
|
|
<el-radio-group v-model="form.dataType" size="large">
|
|
|
- <el-radio label="手动划设" value="手动划设" />
|
|
|
<el-radio label="起降场规划" value="起降场规划" />
|
|
|
+ <el-radio label="手动划设" value="手动划设" />
|
|
|
<el-radio label="导入航线" value="导入航线" />
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
@@ -37,13 +37,13 @@
|
|
|
</div>
|
|
|
<template v-if="form.dataType === '起降场规划'">
|
|
|
<el-form-item label="起飞场" prop="fromPort">
|
|
|
- <el-select v-model="form.fromPort" placeholder="">
|
|
|
+ <el-select v-model="form.fromPort" @click="showFromPart()" placeholder="">
|
|
|
<el-option v-for="item in portOptions" :key="item.value" :label="item.label" :value="item.value"
|
|
|
:disabled="item.value === form.toPort" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="降落场" prop="toPort">
|
|
|
- <el-select v-model="form.toPort" placeholder="">
|
|
|
+ <el-select v-model="form.toPort" @click="showToPart()" placeholder="">
|
|
|
<el-option v-for="item in portOptions" :key="item.value" :label="item.label" :value="item.value"
|
|
|
:disabled="item.value === form.fromPort" />
|
|
|
</el-select>
|
|
@@ -61,7 +61,7 @@
|
|
|
</template>
|
|
|
</el-input>
|
|
|
<div class="mx-3">--</div>
|
|
|
- <el-input v-model="form.height1" type="number" class="flex-1">
|
|
|
+ <el-input v-model="form.height2" type="number" class="flex-1">
|
|
|
<template #suffix>
|
|
|
<span>米</span>
|
|
|
</template>
|
|
@@ -83,10 +83,10 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="网格查询">
|
|
|
<el-checkbox v-model="form.grade">评分</el-checkbox>
|
|
|
- <el-button class="btn-secondary ml-4">查询网格</el-button>
|
|
|
+ <el-button class="btn-secondary ml-4" @click="queryCube()">查询网格</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="辅助规划">
|
|
|
- <el-button class="btn-secondary">辅助规划</el-button>
|
|
|
+ <el-button class="btn-secondary" @click="getAutoPath()" >辅助规划</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</Transition>
|
|
@@ -148,20 +148,17 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { ref,onMounted } from 'vue';
|
|
|
+import {routePlanAll, searchQJCList} from "@/service/panelHxhs.js";
|
|
|
|
|
|
const currentStep = ref(0)
|
|
|
|
|
|
const form = ref({
|
|
|
taskType: '短途运输',
|
|
|
uavType: '微型无人机',
|
|
|
- dataType: '起降场划设',
|
|
|
+ dataType: '起降场规划',
|
|
|
})
|
|
|
|
|
|
-const portOptions = [
|
|
|
- { label: '起降场1', value: '11' },
|
|
|
- { label: '起降场2', value: '11' },
|
|
|
- { label: '起降场3', value: '11' }
|
|
|
-]
|
|
|
+const portOptions = []
|
|
|
|
|
|
const rules = [
|
|
|
|
|
@@ -241,8 +238,47 @@ function handlePreview() {
|
|
|
|
|
|
}
|
|
|
|
|
|
-onMounted(()=>{
|
|
|
+//获取起降数据
|
|
|
+function getQJCList(){
|
|
|
+ searchQJCList().then(res=>{
|
|
|
+ debugger
|
|
|
+ let data = res.data.data;
|
|
|
+ data.forEach((item)=>{
|
|
|
+ portOptions.push({
|
|
|
+ label: item.name,
|
|
|
+ value: item.id,
|
|
|
+ shape: item.shape
|
|
|
+ })
|
|
|
+ })
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+function showFromPart(){
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
|
|
|
+function getAutoPath(){
|
|
|
+ if(form.value.dataType == "起降场规划"){
|
|
|
+ let point1 = JSON.parse(portOptions.find((item)=>item.value ==form.value.fromPort).shape);
|
|
|
+ let point2 = JSON.parse(portOptions.find((item)=>item.value ==form.value.toPort).shape);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ routePlanAll()
|
|
|
+
|
|
|
+ }else if(form.value.dataType == "航线规划"){
|
|
|
+
|
|
|
+ }else if(form.value.dataType == "导入航线"){
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+onMounted(()=>{
|
|
|
+ getQJCList()
|
|
|
})
|
|
|
|
|
|
|