| | |
| | | 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' |
| | |
| | | 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 }, |
| | |
| | | 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'] |
| | | }) |
| | | } |
| | | |
| | |
| | | filteredTabs() |
| | | getTableList() |
| | | updateGlobalCounts() |
| | | getLines() |
| | | aitypeList() |
| | | }) |
| | | </script> |
| | | |