| | |
| | | //周期 |
| | | const weeks = ref(['每天', '周一', '周二', '周三', '周四', '周五', '周六', '周末', '周天', '工作日']) |
| | | |
| | | const lineList = inject('lineList') |
| | | const aiTypeList = inject('aiTypeList') |
| | | |
| | | // 获取航线 |
| | | let lineList = ref([]) |
| | | 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 lineList = ref([]) |
| | | // function getLines() { |
| | | // const formData = { |
| | | // name: '', |
| | | // waylineType: undefined, |
| | | // current: 1, |
| | | // size: 99999999, |
| | | // descs: 'update_time' |
| | | // } |
| | | // newGetWorkspacesPage(formData).then(res => { |
| | | // lineList.value = res.data.data.records |
| | | // }) |
| | | // } |
| | | |
| | | function getOrderStatus (status) { |
| | | const statusTextMap = { |
| | |
| | | 3: '已通过' |
| | | } |
| | | return statusTextMap[status] || '未知状态' |
| | | } |
| | | |
| | | function disabledDate (time) { |
| | | return time.getTime() < Date.now() - 8.64e7 // 86400000 = 24 * 60 * 60 * 1000 |
| | | } |
| | | |
| | | // 关联机巢 |
| | |
| | | } |
| | | |
| | | // 获取算法 |
| | | let aiTypeList = ref([]) |
| | | function aitypeList() { |
| | | getDictionaryByCode('SF').then(res => { |
| | | aiTypeList.value = res.data.data['SF'] |
| | | }) |
| | | } |
| | | // let aiTypeList = ref([]) |
| | | // function aitypeList() { |
| | | // getDictionaryByCode('SF').then(res => { |
| | | // aiTypeList.value = res.data.data['SF'] |
| | | // }) |
| | | // } |
| | | |
| | | // initMapLine 方法 |
| | | const initMapLine = async (infos = {}, cb = () => {}) => { |
| | |
| | | emit('refresh'); |
| | | } |
| | | |
| | | onMounted(async () => { |
| | | aitypeList() |
| | | getLines() |
| | | }); |
| | | // onMounted(async () => { |
| | | // aitypeList() |
| | | // getLines() |
| | | // }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |