无人机管理后台前端(已迁走)
chenyao
2025-11-22 260bbc03b9633f30d66b27e3f4b626d8115f341f
src/views/tickets/orderLog.vue
@@ -105,6 +105,8 @@
  deleteOrderLog,
  getWaylineMaxTerrainHeight
} from '@/api/tickets/orderLog'
import { newGetWorkspacesPage } from '@/api/resource/wayline'
import { getDictionaryByCode } from '@/api/system/dictbiz'
import { cloneDeep } from 'lodash';
import { computed, onMounted } from 'vue';
import { ElMessage, ElMessageBox } from 'element-plus'
@@ -119,6 +121,7 @@
const isShowAddEditDetails = ref(false)
const activeTab = ref('all')
provide('activeTab', activeTab)
let tabsList = ref([
  // { label: '我的工单', name: 'my_order', value: null, count: 0 },
  // { label: '全部工单', name: 'all', value: null, count: 0 },
@@ -187,6 +190,31 @@
    if (tab) {
      tab.count = item.num
    }
  })
}
// 获取航线
let lineList = ref([])
provide('lineList', lineList)
function getLines() {
  const formData = {
    name: '',
    waylineType: undefined,
    current: 1,
    size: 99999999,
    descs: 'update_time'
  }
  newGetWorkspacesPage(formData).then(res => {
    lineList.value = res.data.data.records
  })
}
// 获取算法
let aiTypeList = ref([])
provide('aiTypeList', aiTypeList)
function aitypeList() {
  getDictionaryByCode('SF').then(res => {
    aiTypeList.value = res.data.data['SF']
  })
}
@@ -390,6 +418,8 @@
  filteredTabs()
  getTableList()
  updateGlobalCounts()
  getLines()
  aitypeList()
})
</script>