From e324201492bfcafa4e76565a58674abd228b3fe0 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 19 Jul 2025 17:45:12 +0800
Subject: [PATCH] feat: 获取任务列表

---
 src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue b/src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue
index f057127..4e96fd7 100644
--- a/src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue
+++ b/src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue
@@ -113,6 +113,7 @@
 import DeviceJobDetails from '../DeviceJobDetails.vue'
 import CancelTaskDialog from '../CancelTaskDialog.vue'
 import { useStore } from 'vuex'
+import { cloneDeep } from 'lodash';
 const store = useStore()
 const singleUavHome = computed(() => store.state.home.singleUavHome)
 const jobListParams = reactive({
@@ -129,7 +130,15 @@
 
 // 获取任务列表
 const getJobList = () => {
-	jobList(jobListParams).then(res => {
+  const apiParams = {
+    ...cloneDeep(jobListParams),
+    searchParams: {
+      ...cloneDeep(jobListParams.searchParams),
+      status_list: jobListParams.searchParams.status || undefined,
+      status: undefined,
+    },
+  }
+	jobList(apiParams).then(res => {
 		if (res.data.code !== 0) return
 		jobListData.value = res.data.data.records
 		total.value = res.data.data.total

--
Gitblit v1.9.3