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
2023-03-13 14:31:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4eabca35a4c844bfeee5e346d5fc3e0cfa153a8b
4eabca35
1 parent
443a350d
bug修复
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
src/layout/components/Navbar.vue
src/router/index.js
src/utils/request.js
src/views/basicInformation/queryCargo/index.vue
src/layout/components/Navbar.vue
View file @
4eabca3
...
...
@@ -40,7 +40,6 @@ import { mapGetters } from "vuex"
import Breadcrumb from "@/components/Breadcrumb"
import TopNav from "@/components/TopNav"
import Hamburger from "@/components/Hamburger"
import { removeToken } from '@/utils/auth'
import settings from "@/settings"
export default {
...
...
@@ -126,7 +125,6 @@ export default {
type: "warning",
}).then(() => {
this.$store.dispatch("LogOut").then(() => {
removeToken()
window.location.href = settings.logoutURL;//wsso系统跳转
});
});
...
...
src/router/index.js
View file @
4eabca3
...
...
@@ -85,7 +85,7 @@ export const constantRoutes = [
meta
:
{
title
:
'流水表'
,
icon
:
'user'
}
},
{
path
:
'/upDateResult
->:from
'
,
path
:
'/upDateResult'
,
component
:
(
resolve
)
=>
require
([
'@/views/preMdeConfig/upDateResult'
],
resolve
),
name
:
'UpDateResult'
,
meta
:
{
title
:
'错误信息提示'
,
icon
:
'user'
}
...
...
src/utils/request.js
View file @
4eabca3
...
...
@@ -52,7 +52,7 @@ service.interceptors.request.use(config => {
// 响应拦截器
service
.
interceptors
.
response
.
use
(
res
=>
{
if
(
res
.
headers
[
'token'
])
{
setToken
(
decodeURIComponent
(
res
.
headers
[
'token'
])
)
setToken
(
res
.
headers
[
'token'
]
)
}
// 未设置状态码则默认成功状态
const
code
=
res
.
data
.
code
||
200
;
...
...
src/views/basicInformation/queryCargo/index.vue
View file @
4eabca3
...
...
@@ -374,7 +374,6 @@ export default {
this.selectTable = []
this.cargoTotal()
if (this.$route.params.fltNo) {
console.log(1)
//判断进入页面是否带参,确定是否是index跳转
this.formData = {
fltDateStart: "",
...
...
@@ -407,7 +406,6 @@ export default {
limitStart: 1,
limitSize: 100,
}
console.log(this.$route)
this.cargoPlaneTime = [this.$route.params.fltDate, this.$route.params.fltDate]
this.formData.cargoPlaneStart = this.$route.params.fltDate
this.formData.cargoPlaneEnd = this.$route.params.fltDate
...
...
@@ -694,17 +692,21 @@ export default {
},
//配载航班号获取航线
planeNoChange(val) {
if (val != '' && val != null) {
getFlightsRoutes(val.split(';')).then(res => {
if (res.code === 200) {
this.routeList = res.data
} else {
this.msgWarning(res.msg)
}
}).catch(err => {
console.log(err)
})
let arr = []
if (typeof val != 'object') {
arr = val.split(';')
} else {
arr = val
}
getFlightsRoutes(arr).then(res => {
if (res.code === 200) {
this.routeList = res.data
} else {
this.msgWarning(res.msg)
}
}).catch(err => {
console.log(err)
})
},
routeSelectChange(val) {
this.$forceUpdate()
...
...
Please
register
or
login
to post a comment