From 260bbc03b9633f30d66b27e3f4b626d8115f341f Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Sat, 22 Nov 2025 16:27:34 +0800
Subject: [PATCH] feat:智飞工单

---
 src/views/tickets/orderLog.vue |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/src/views/tickets/orderLog.vue b/src/views/tickets/orderLog.vue
index 73ff76d..0ab0122 100644
--- a/src/views/tickets/orderLog.vue
+++ b/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>
 

--
Gitblit v1.9.3