Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2022-10-09 11:12:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0621a2f76a6e1e3966b57894eb2909c5954405c3
0621a2f7
1 parent
7c33563e
方法引用增加
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
src/utils/FedEx.js
src/utils/FedEx.js
View file @
0621a2f
...
...
@@ -2,6 +2,8 @@
* 通用js方法封装处理
* Copyright (c) 2019 FedEx
*/
import
{
queryRoute
}
from
'@/api/system/dictionary.js'
const
baseURL
=
process
.
env
.
VUE_APP_BASE_API
...
...
@@ -185,4 +187,17 @@ export function upCase(str) {
export
function
nowDate
()
{
let
date
=
new
Date
()
return
`
${
date
.
getFullYear
()}
-
${(
date
.
getMonth
()
+
1
)
>
9
?
(
date
.
getMonth
()
+
1
)
:
'0'
+
(
date
.
getMonth
()
+
1
)}
-
${(
date
.
getDate
())
>
9
?
date
.
getDate
()
:
'0'
+
(
date
.
getDate
())}
`
}
//获取航线
export
function
getRoute
(
val
)
{
return
queryRoute
({
fltNo
:
val
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
return
res
.
data
}
else
{
return
res
.
msg
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment