Showing
1 changed file
with
15 additions
and
0 deletions
| ... | @@ -2,6 +2,8 @@ | ... | @@ -2,6 +2,8 @@ |
| 2 | * 通用js方法封装处理 | 2 | * 通用js方法封装处理 |
| 3 | * Copyright (c) 2019 FedEx | 3 | * Copyright (c) 2019 FedEx |
| 4 | */ | 4 | */ |
| 5 | +import { queryRoute } from '@/api/system/dictionary.js' | ||
| 6 | + | ||
| 5 | 7 | ||
| 6 | const baseURL = process.env.VUE_APP_BASE_API | 8 | const baseURL = process.env.VUE_APP_BASE_API |
| 7 | 9 | ||
| ... | @@ -186,3 +188,16 @@ export function nowDate() { | ... | @@ -186,3 +188,16 @@ export function nowDate() { |
| 186 | let date = new Date() | 188 | let date = new Date() |
| 187 | return `${date.getFullYear()}-${(date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : '0' + (date.getMonth() + 1)}-${(date.getDate()) > 9 ? date.getDate() : '0' + (date.getDate())}` | 189 | return `${date.getFullYear()}-${(date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : '0' + (date.getMonth() + 1)}-${(date.getDate()) > 9 ? date.getDate() : '0' + (date.getDate())}` |
| 188 | } | 190 | } |
| 191 | + | ||
| 192 | +//获取航线 | ||
| 193 | +export function getRoute(val) { | ||
| 194 | + return queryRoute({ fltNo: val }).then(res => { | ||
| 195 | + if (res.code === 200) { | ||
| 196 | + return res.data | ||
| 197 | + } else { | ||
| 198 | + return res.msg | ||
| 199 | + } | ||
| 200 | + }).catch(err => { | ||
| 201 | + console.log(err) | ||
| 202 | + }) | ||
| 203 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment