feat:优化无人机载荷和区域的交互逻辑

This commit is contained in:
wxs 2026-01-29 11:33:53 +08:00
parent 7c7d22f22b
commit 28120a841b
2 changed files with 12 additions and 4 deletions

View File

@ -177,7 +177,8 @@ export default {
value: 'SAR' value: 'SAR'
} }
], ],
loaderOptions: [], loaderOptions: [
],
ratioOptions: [ ratioOptions: [
{ {
label: '0.1m', label: '0.1m',
@ -294,7 +295,8 @@ export default {
value: 3 value: 3
}, },
], ],
uavOptions: [], uavOptions: [
],
duringAirlinePick: false, duringAirlinePick: false,
calculateMap: [ calculateMap: [
{ {
@ -517,6 +519,9 @@ export default {
}, },
readyUavLocation() { readyUavLocation() {
return this.uavReady && this.loaderReady return this.uavReady && this.loaderReady
},
readLoaderUavCount() {
return this.form.uav + this.form.loader
} }
}, },
watch: { watch: {
@ -593,6 +598,11 @@ export default {
}, },
deep: true deep: true
}, },
readLoaderUavCount: {
handler: function () {
this.uavLoaderChange()
},
},
readyUavLocation(nv) { readyUavLocation(nv) {
if (nv) { if (nv) {
// this.refreshUavHeight() // this.refreshUavHeight()

View File

@ -170,7 +170,6 @@
popper-class="form-light" popper-class="form-light"
size="small" size="small"
v-model="form.uav" v-model="form.uav"
@change="uavLoaderChange"
> >
<el-option <el-option
v-for="item in uavOptions" v-for="item in uavOptions"
@ -185,7 +184,6 @@
popper-class="form-light" popper-class="form-light"
size="small" size="small"
v-model="form.loader" v-model="form.loader"
@change="uavLoaderChange"
> >
<el-option <el-option
v-for="item in loaderOptions" v-for="item in loaderOptions"