From e692d06977f626051a94c585f31f58a8cb54dc77 Mon Sep 17 00:00:00 2001 From: "WORK\\64751" <64751245@qq.com> Date: Wed, 27 Aug 2025 09:00:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B6=E6=AE=B5=E6=80=A7=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.test | 21 ++++++++++++++++++ components.d.ts | 25 ---------------------- package.json | 1 + src/views/carbin/toolComp/planeControl.vue | 6 +++--- 4 files changed, 25 insertions(+), 28 deletions(-) create mode 100644 .env.test diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..519462c --- /dev/null +++ b/.env.test @@ -0,0 +1,21 @@ +# .env.local +VUE_APP_VERSION=1.0.0 +NODE_ENV=test +VUE_APP_NAME=自动起降机场 +#程璐 +#VITE_APP_API_BASE_URL=http://192.168.12.117:9060/airport/ +VITE_APP_API_BASE_URL=https://airport-test.t-aaron.com/airport/ +# VUE_APP_API_BASE_URL=https://airport.t-aaron.com/airport/ +# VUE_APP_API_BASE_URL=https://airportdev.t-aaron.com/airport/ + +# VUE_APP_AUTHORITY = 'http://192.168.11.11:8090' +#测试环境 +VITE_APP_AUTHORITY =https://login-test.t-aaron.com +#线上环境 (配合开发环境使用) +#VUE_APP_AUTHORITY = 'https://oidc.t-aaron.com' + +# 机场大屏跳转地址 +VITE_APP_ASURL = 'https://airport-screen-test.t-aaron.com' + +# 低空 +VITE_APP_BUSINESS ='http://192.168.14.12:8082' diff --git a/components.d.ts b/components.d.ts index 3ab94f1..f6730de 100644 --- a/components.d.ts +++ b/components.d.ts @@ -12,45 +12,20 @@ declare module 'vue' { ACol: typeof import('ant-design-vue/es')['Col'] AInput: typeof import('ant-design-vue/es')['Input'] AMenu: typeof import('ant-design-vue/es')['Menu'] - AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] - APopconfirm: typeof import('ant-design-vue/es')['Popconfirm'] AProgress: typeof import('ant-design-vue/es')['Progress'] ARadio: typeof import('ant-design-vue/es')['Radio'] ARadioButton: typeof import('ant-design-vue/es')['RadioButton'] ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] ARow: typeof import('ant-design-vue/es')['Row'] ASpin: typeof import('ant-design-vue/es')['Spin'] - ASwitch: typeof import('ant-design-vue/es')['Switch'] ATooltip: typeof import('ant-design-vue/es')['Tooltip'] - ElButton: typeof import('element-plus/es')['ElButton'] - ElCol: typeof import('element-plus/es')['ElCol'] - ElContainer: typeof import('element-plus/es')['ElContainer'] - ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] - ElFooter: typeof import('element-plus/es')['ElFooter'] - ElForm: typeof import('element-plus/es')['ElForm'] - ElFormItem: typeof import('element-plus/es')['ElFormItem'] - ElHeader: typeof import('element-plus/es')['ElHeader'] - ElInput: typeof import('element-plus/es')['ElInput'] - ElMain: typeof import('element-plus/es')['ElMain'] - ElOption: typeof import('element-plus/es')['ElOption'] - ElPagination: typeof import('element-plus/es')['ElPagination'] - ElRow: typeof import('element-plus/es')['ElRow'] - ElSelect: typeof import('element-plus/es')['ElSelect'] Form: typeof import('./src/components/Forms/form.vue')['default'] - HelloWorld: typeof import('./src/components/HelloWorld.vue')['default'] - IconCommunity: typeof import('./src/components/icons/IconCommunity.vue')['default'] - IconDocumentation: typeof import('./src/components/icons/IconDocumentation.vue')['default'] - IconEcosystem: typeof import('./src/components/icons/IconEcosystem.vue')['default'] - IconSupport: typeof import('./src/components/icons/IconSupport.vue')['default'] - IconTooling: typeof import('./src/components/icons/IconTooling.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] Spin1: typeof import('./src/components/loading/spin1.vue')['default'] Table: typeof import('./src/components/vxetable/table.vue')['default'] - TheWelcome: typeof import('./src/components/TheWelcome.vue')['default'] Video: typeof import('./src/components/video/index.vue')['default'] VideoPlayPopup: typeof import('./src/components/custom_popup/videoPlayPopup.vue')['default'] Vuxpopup: typeof import('./src/components/custom_popup/vuxpopup.vue')['default'] - WelcomeItem: typeof import('./src/components/WelcomeItem.vue')['default'] } } diff --git a/package.json b/package.json index 759144e..e85f5ca 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "type": "module", "scripts": { "dev": "vite -- mode development", + "build:test": "vite build -- mode test", "build": "vite build", "preview": "vite preview", "format": "prettier --write src/" diff --git a/src/views/carbin/toolComp/planeControl.vue b/src/views/carbin/toolComp/planeControl.vue index 04f0407..e58599f 100644 --- a/src/views/carbin/toolComp/planeControl.vue +++ b/src/views/carbin/toolComp/planeControl.vue @@ -31,10 +31,8 @@ const setCurrentData = (data) => { // console.log(data) //电池循环次数 items.battery.value = data ? data.batLoopTimes : '-' - //无人机版本 - items.version.value = '-' //电池温度 - items.temperature.value = '30℃' + items.temperature.value = data ? data.weather.cellTemp : '-' precent.value = data ? Number(data.battery) * 100 : '-' lastTime.value = data ? data.allflytime : '-' @@ -54,6 +52,8 @@ const droneCommand = async (type) => { airPortSocketStore.$subscribe((mutate, state) => { //设置socket的值 setCurrentData(state.currentAirPort) + //无人机版本 + items.version.value = state.ceurrentAirPortData.droneVersion }) onMounted(() => {})