From c70b530362eef60e4797f57df22df3b43d412b20 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Thu, 26 Jun 2025 16:15:23 +0800 Subject: [PATCH] sc --- src/api/uav/question.js | 16 +++++ .../UAV/Components/QuestionAddForm.vue | 34 +++++++-- src/views/Question/UAV/index.vue | 72 +++++++++++++++---- 3 files changed, 102 insertions(+), 20 deletions(-) diff --git a/src/api/uav/question.js b/src/api/uav/question.js index a95316e..eb32920 100644 --- a/src/api/uav/question.js +++ b/src/api/uav/question.js @@ -33,3 +33,19 @@ export const uploadFile = async (data) => { data: data }) } + +// 查询无人机类型列表 +export const getCarTypeOptions = async (params) => { + return await request.get({ + url: '/admin-api/applet/wrj/model/list', + params + }) +} + +// 查询驾驶员类型列表 +export const getDriverTypeOptions = async (params) => { + return await request.get({ + url: '/admin-api/applet/wrj/type/list', + params + }) +} diff --git a/src/views/Question/UAV/Components/QuestionAddForm.vue b/src/views/Question/UAV/Components/QuestionAddForm.vue index 7e1186e..0500ac3 100644 --- a/src/views/Question/UAV/Components/QuestionAddForm.vue +++ b/src/views/Question/UAV/Components/QuestionAddForm.vue @@ -39,7 +39,7 @@ - + @@ -63,7 +63,7 @@ - + - + - + - @@ -168,7 +171,21 @@ - + + + + + + + + - + + @@ -244,6 +262,8 @@ const open = (info = undefined, opts) => { imgUrl.value = dialogForm.value.imageUrl.includes('http') ? dialogForm.value.imageUrl : 'https://ss-cloud.ahduima.com/xjxc/pic/' + dialogForm.value.imageUrl + } else { + imgUrl.value = '' } } } diff --git a/src/views/Question/UAV/index.vue b/src/views/Question/UAV/index.vue index 3c41b6b..0861fc0 100644 --- a/src/views/Question/UAV/index.vue +++ b/src/views/Question/UAV/index.vue @@ -4,20 +4,29 @@ - - 多旋翼 - 垂直起降固定翼 - 直升机 - 固定翼 + + + {{ item.modelName }} + - 视距内驾驶员 - 超视距驾驶员 - 教员 + + {{ item.typeName }} + @@ -50,6 +59,7 @@ 搜索 + 重置 新增 @@ -61,9 +71,9 @@ v-loading="loading" :data="tableList" highlight-current-row - max-height="calc(100vh - 320px)" + max-height="calc(100vh - 260px)" > - +