飞行作业
parent
b113366dbe
commit
3d470eac91
@ -0,0 +1,5 @@
|
||||
export { default as SelectComponent } from './src/SelectComponent.vue';
|
||||
export { default as AirportInformation } from './src/AirportInformation.vue';
|
||||
export { default as UAVInformation } from './src/UAVInformation.vue';
|
||||
export { default as AirportLive } from './src/AirportLive.vue';
|
||||
export { default as LivePreview } from './src/LivePreview.vue';
|
@ -1,5 +1,81 @@
|
||||
<template>
|
||||
<div>飞行作业</div>
|
||||
<div class="flightoperation-container">
|
||||
<SelectComponent />
|
||||
<AirportInformation @changeLive="changeAirportLive" />
|
||||
<UAVInformation />
|
||||
<div class="AirportLive" v-if="airportLiveVisible">
|
||||
<AirportLive />
|
||||
</div>
|
||||
<div
|
||||
class="LivePreview"
|
||||
v-if="livePreviewVisible"
|
||||
:style="{ bottom: airportLiveVisible ? '300px' : '10px' }"
|
||||
>
|
||||
<LivePreview />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts"></script>
|
||||
<style lang="less" scoped></style>
|
||||
<script setup lang="ts">
|
||||
import { reactive, ref } from 'vue';
|
||||
import {
|
||||
SelectComponent,
|
||||
AirportInformation,
|
||||
UAVInformation,
|
||||
AirportLive,
|
||||
LivePreview,
|
||||
} from './index';
|
||||
|
||||
const airportLiveVisible = ref(false);
|
||||
const livePreviewVisible = ref(true);
|
||||
const changeAirportLive = () => {
|
||||
airportLiveVisible.value = !airportLiveVisible.value;
|
||||
};
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.flightoperation-top {
|
||||
display: flex;
|
||||
}
|
||||
.select-item {
|
||||
width: 160px;
|
||||
height: 38px;
|
||||
margin-left: 10px;
|
||||
background: #3a57e8;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
::v-deep .ant-select-selector {
|
||||
background: #3a57e8;
|
||||
border: none;
|
||||
color: #fff;
|
||||
.ant-select-selection-placeholder {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
::v-deep .ant-select-arrow {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
.select-item:nth-child(2) {
|
||||
background: #08b1ba;
|
||||
::v-deep .ant-select-selector {
|
||||
background: #08b1ba;
|
||||
}
|
||||
}
|
||||
.select-item:nth-child(3) {
|
||||
background: #1aa053;
|
||||
::v-deep .ant-select-selector {
|
||||
background: #1aa053;
|
||||
}
|
||||
}
|
||||
.AirportLive {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
}
|
||||
.LivePreview {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
|
@ -0,0 +1,57 @@
|
||||
<template>
|
||||
<div class="airport-live">
|
||||
<div class="airport-title">
|
||||
<div class="title">机场直播</div>
|
||||
<div class="title-icon">
|
||||
<RedoOutlined />
|
||||
<a-divider type="vertical" style="border-color: #4e5778" />
|
||||
<ExpandOutlined />
|
||||
<a-divider type="vertical" style="border-color: #4e5778" />
|
||||
<PoweroffOutlined />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { RedoOutlined, ExpandOutlined, PoweroffOutlined } from '@ant-design/icons-vue';
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.airport-live {
|
||||
width: 400px;
|
||||
height: 248px;
|
||||
padding: 10px 20px;
|
||||
background: #0d0e15;
|
||||
box-shadow:
|
||||
0px 10px 30px 0px rgba(0, 0, 6, 0.15),
|
||||
inset 0px 0px 36px 0px rgba(58, 87, 232, 0.73);
|
||||
border-radius: 6px;
|
||||
opacity: 0.9;
|
||||
backdrop-filter: blur(3px);
|
||||
color: #fff;
|
||||
margin-top: 10px;
|
||||
.airport-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
.title {
|
||||
border: 1px solid #3a57e8;
|
||||
background: #0d0e15;
|
||||
box-shadow:
|
||||
0px 10px 30px 0px rgba(0, 0, 6, 0.15),
|
||||
inset 0px 0px 36px 0px rgba(58, 87, 232, 0.73);
|
||||
border-radius: 2px;
|
||||
padding: 4px 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.title-icon {
|
||||
padding: 4px 6px;
|
||||
background: #0d0e15;
|
||||
box-shadow:
|
||||
0px 10px 30px 0px rgba(0, 0, 6, 0.15),
|
||||
inset 0px 0px 36px 0px rgba(58, 87, 232, 0.73);
|
||||
border-radius: 2px;
|
||||
border: 1px solid #3a57e8;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,134 @@
|
||||
<template>
|
||||
<div class="live-preview">
|
||||
<div class="preview-title">
|
||||
<div class="title-select">
|
||||
<div class="title-select-item">
|
||||
<span>相机:</span>
|
||||
<a-select
|
||||
ref="select"
|
||||
v-model:value="selectVal.camera"
|
||||
style="width: 80px"
|
||||
:options="optionsArr.cameraOptions"
|
||||
/>
|
||||
</div>
|
||||
<div class="title-select-item">
|
||||
<span>分辨率:</span>
|
||||
<a-select
|
||||
ref="select"
|
||||
v-model:value="selectVal.resolution"
|
||||
style="width: 80px"
|
||||
:options="optionsArr.resolutionOptions"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="title-icon">
|
||||
<RedoOutlined />
|
||||
<a-divider type="vertical" style="border-color: #4e5778" />
|
||||
<ExpandOutlined />
|
||||
<a-divider type="vertical" style="border-color: #4e5778" />
|
||||
<PoweroffOutlined />
|
||||
</div>
|
||||
</div>
|
||||
<div class="live-type">广角</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { RedoOutlined, ExpandOutlined, PoweroffOutlined } from '@ant-design/icons-vue';
|
||||
import { reactive } from 'vue';
|
||||
|
||||
const selectVal = reactive({
|
||||
camera: null,
|
||||
resolution: null,
|
||||
});
|
||||
const optionsArr = reactive({
|
||||
cameraOptions: [
|
||||
{
|
||||
label: '项目1',
|
||||
value: 1,
|
||||
},
|
||||
],
|
||||
resolutionOptions: [],
|
||||
});
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.live-preview {
|
||||
width: 400px;
|
||||
height: 248px;
|
||||
padding: 10px;
|
||||
background: #0d0e15;
|
||||
box-shadow:
|
||||
0px 10px 30px 0px rgba(0, 0, 6, 0.15),
|
||||
inset 0px 0px 36px 0px rgba(58, 87, 232, 0.73);
|
||||
border-radius: 6px;
|
||||
opacity: 0.9;
|
||||
backdrop-filter: blur(3px);
|
||||
color: #fff;
|
||||
margin-top: 10px;
|
||||
.preview-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
.title-select {
|
||||
font-size: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.title-select-item {
|
||||
border: 1px solid #3a57e8;
|
||||
background: #0d0e15;
|
||||
box-shadow:
|
||||
0px 10px 30px 0px rgba(0, 0, 6, 0.15),
|
||||
inset 0px 0px 36px 0px rgba(58, 87, 232, 0.73);
|
||||
border-radius: 2px;
|
||||
padding-left: 4px;
|
||||
height: 38px;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
::v-deep .ant-select-selector {
|
||||
background: none;
|
||||
border: none;
|
||||
color: #f4ba19;
|
||||
font-size: 12px;
|
||||
padding: 0 0 0 2px;
|
||||
.ant-select-selection-placeholder {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
::v-deep .ant-select-selection-item {
|
||||
padding: 0;
|
||||
}
|
||||
::v-deep .ant-select-arrow {
|
||||
color: #fff;
|
||||
}
|
||||
&:last-child {
|
||||
margin-left: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.title-icon {
|
||||
padding: 4px 6px;
|
||||
background: #0d0e15;
|
||||
box-shadow:
|
||||
0px 10px 30px 0px rgba(0, 0, 6, 0.15),
|
||||
inset 0px 0px 36px 0px rgba(58, 87, 232, 0.73);
|
||||
border-radius: 2px;
|
||||
border: 1px solid #3a57e8;
|
||||
}
|
||||
}
|
||||
.live-type {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: #0a99eb;
|
||||
box-shadow: 0px 10px 30px 0px rgba(0, 0, 6, 0.15);
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 100px;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,93 @@
|
||||
<template>
|
||||
<div class="flightoperation-top">
|
||||
<div class="select-item">
|
||||
<CopyOutlined style="color: #fff; font-size: 20px; margin-left: 10px" />
|
||||
<a-select
|
||||
ref="select"
|
||||
v-model:value="selectVal.project"
|
||||
style="width: 120px"
|
||||
:options="optionsArr.projectOptions"
|
||||
placeholder="项目选择"
|
||||
/>
|
||||
</div>
|
||||
<div class="select-item">
|
||||
<CopyOutlined style="color: #fff; font-size: 20px; margin-left: 10px" />
|
||||
<a-select
|
||||
ref="select"
|
||||
v-model:value="selectVal.equipment"
|
||||
style="width: 120px"
|
||||
:options="optionsArr.equipmentOptions"
|
||||
placeholder="设备选择"
|
||||
/>
|
||||
</div>
|
||||
<div class="select-item">
|
||||
<CopyOutlined style="color: #fff; font-size: 20px; margin-left: 10px" />
|
||||
<a-select
|
||||
ref="select"
|
||||
v-model:value="selectVal.airport"
|
||||
style="width: 120px"
|
||||
:options="optionsArr.airportOptions"
|
||||
placeholder="机场选择"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { reactive, ref } from 'vue';
|
||||
import { CopyOutlined, DownOutlined } from '@ant-design/icons-vue';
|
||||
|
||||
const selectVal = reactive({
|
||||
project: null,
|
||||
equipment: null,
|
||||
airport: null,
|
||||
});
|
||||
const optionsArr = reactive({
|
||||
projectOptions: [
|
||||
{
|
||||
label: '项目1',
|
||||
value: 1,
|
||||
},
|
||||
],
|
||||
equipmentOptions: [],
|
||||
airportOptions: [],
|
||||
});
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.flightoperation-top {
|
||||
display: flex;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.select-item {
|
||||
width: 160px;
|
||||
height: 38px;
|
||||
margin-left: 10px;
|
||||
background: #3a57e8;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
::v-deep .ant-select-selector {
|
||||
background: #3a57e8;
|
||||
border: none;
|
||||
color: #fff;
|
||||
.ant-select-selection-placeholder {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
::v-deep .ant-select-arrow {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
.select-item:nth-child(2) {
|
||||
background: #08b1ba;
|
||||
::v-deep .ant-select-selector {
|
||||
background: #08b1ba;
|
||||
}
|
||||
}
|
||||
.select-item:nth-child(3) {
|
||||
background: #1aa053;
|
||||
::v-deep .ant-select-selector {
|
||||
background: #1aa053;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue