From 8d5e3ca016dfccf21474d9b0b27451d3db85365f Mon Sep 17 00:00:00 2001 From: xiaosi <2652281683@qq.com> Date: Fri, 28 Aug 2026 16:46:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=BB=E5=8A=A1=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=8E=A7=E4=BB=B6=E5=88=87=E6=8D=A2=E5=88=B0?= =?UTF-8?q?=20TDesign?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/TasksView/TasksView.vue | 130 ++++++++++++++++++++++-------- 1 file changed, 98 insertions(+), 32 deletions(-) diff --git a/src/views/TasksView/TasksView.vue b/src/views/TasksView/TasksView.vue index 1857141..e0e5ead 100644 --- a/src/views/TasksView/TasksView.vue +++ b/src/views/TasksView/TasksView.vue @@ -25,14 +25,13 @@
- -
- + +
+
@@ -70,12 +69,16 @@
-
- - +
+ +
-

执行记录

最近 30 天执行记录
+

执行记录

最近 30 天执行记录
@@ -111,7 +114,11 @@
- +
@@ -137,11 +144,11 @@
视频策略按任务配置
- +
{{ taskFormError }}
@@ -215,8 +216,8 @@
航线编辑

编辑航点 {{ editingWaypointIndex + 1 }}

航点 ID{{ editingWaypointIndex + 1 }}
-
-
+
+
{{ waypointFormError }}
@@ -250,9 +251,21 @@ const deviceStore = useDeviceStore() const view = ref(route.query.view || 'plans') const search = ref('') const planFilter = ref('') +const planFilterOptions = [ + { label: '全部状态', value: '' }, + { label: '执行中', value: 'mission' }, + { label: '待执行', value: 'pending' }, + { label: '已暂停', value: 'offline' } +] const execSearch = ref('') const execFilter = ref('') const execResultFilter = ref('') +const execResultFilterOptions = [ + { label: '全部执行结果', value: '' }, + { label: '成功', value: 'succeeded' }, + { label: '失败', value: 'failed' }, + { label: '已取消', value: 'cancelled' } +] const routeSearch = ref('') const routeEditorOpen = ref(false) const routeSaving = ref(false) @@ -276,6 +289,22 @@ const records = ref([]) let refreshTimer = null const routes = ref([]) const devices = computed(() => [...deviceStore.drones, ...deviceStore.docks]) +const execFilterOptions = computed(() => [ + { label: '全部设备', value: '' }, + ...devices.value.map((d) => ({ label: d.name, value: d.dockId || d.droneSn })) +]) +const dockOptions = computed(() => + deviceStore.docks.map((dock) => ({ + label: `${dock.name} · ${dock.dockId}`, + value: dock.dockId + })) +) +const routeOptions = computed(() => + routes.value.map((taskRoute) => ({ + label: taskRoute.name, + value: taskRoute.id + })) +) const createTaskOpen = ref(false) const creatingTask = ref(false) @@ -292,7 +321,7 @@ const taskForm = reactive({ rawRecordingEnabled: false }) -const weekdays = [ +const weekdayOptions = [ { value: 1, label: '星期一' }, { value: 2, label: '星期二' }, { value: 3, label: '星期三' }, @@ -930,3 +959,40 @@ async function downloadRawVideo(record) { } } + +