无人机管理后台前端(已迁走)
罗广辉
2025-07-19 e324201492bfcafa4e76565a58674abd228b3fe0
feat: 获取任务列表
1 files modified
11 ■■■■■ changed files
src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue 11 ●●●●● patch | view | raw | blame | history
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