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-02-23 17:25:53 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
443a350de1eb6ebb98acfb3b24ff6ec10242327c
443a350d
1 parent
022c3526
路由参数修改,请求参数修正
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
38 additions
and
70 deletions
src/layout/components/Navbar.vue
src/store/modules/user.js
src/views/basicInformation/goodsBlackStation/dialog.vue
src/views/basicInformation/goodsStation/dialog.vue
src/views/basicInformation/queryCargo/index.vue
src/views/basicInformation/queryCargo/info.vue
src/views/preMdeConfig/flightToArea/index.vue
src/views/preMdeConfig/upDateResult.vue
src/views/preMdeConfig/ursaToArea/index.vue
src/layout/components/Navbar.vue
View file @
443a350
...
...
@@ -89,7 +89,6 @@ export default {
.then((res) => {
if (res.code === 200) {
this.$store.dispatch('tagsView/delAllCachedViews')
this.$store.dispatch('tagsView/delAllVisitedViews')
// location.reload();
if (this.$route.path != '/index') {
this.$router.push('/index')
...
...
src/store/modules/user.js
View file @
443a350
...
...
@@ -3,6 +3,7 @@ import { getTableHeader } from '@/api/menu'
import
{
changeCurrentPort
}
from
"@/api/system/user.js"
;
import
{
getToken
,
setToken
,
removeToken
}
from
'@/utils/auth'
import
{
Message
}
from
'element-ui'
import
settings
from
"@/settings"
const
user
=
{
state
:
{
...
...
@@ -101,7 +102,7 @@ const user = {
type
:
'error'
})
this
.
LogOut
().
then
(()
=>
{
window
.
location
.
href
=
"https://test-myapps.secure.fedex.com/purpleid/signout/"
;
//wsso系统跳转
window
.
location
.
href
=
settings
.
loginURL
;
//wsso系统跳转
})
}
if
(
res
.
data
.
roles
&&
res
.
data
.
roles
.
length
>
0
)
{
// 验证返回的roles是否是一个非空数组
...
...
src/views/basicInformation/goodsBlackStation/dialog.vue
View file @
443a350
...
...
@@ -20,16 +20,14 @@
<el-form-item label="货站名称" prop="goodsStation">
<el-select class="selectWidth100" v-model.lazy="formData.goodsStation" filterable
:loading="goodsStationLoading" placeholder="不限">
<el-option v-for="(item, index) in goodsStationList" :label="item" :value="item"
:key="item">
<el-option v-for="(item, index) in goodsStationList" :label="item" :value="item" :key="item">
</el-option>
</el-select>
</el-form-item>
</div>
<div v-else>
<el-form-item label="货站名称" prop="uploadGoodsStation">
<el-input type="text" v-model="formData.uploadGoodsStation" maxlength="25"
placeholder="请输入货站名称">
<el-input type="text" v-model="formData.uploadGoodsStation" maxlength="25" placeholder="请输入货站名称">
</el-input>
</el-form-item>
<el-form-item prop="file" label-width="0px">
...
...
@@ -195,7 +193,7 @@ export default {
this.$message.warning(res.msg);
if (res.data) {
this.errorData = res.data;
this.$router.push({ name: 'UpDateResult',
params
: { data: this.errorData, from: 'FlightInformationImport' } })
this.$router.push({ name: 'UpDateResult',
query
: { data: this.errorData, from: 'FlightInformationImport' } })
}
} else {
this.$message.warning(res.msg);
...
...
src/views/basicInformation/goodsStation/dialog.vue
View file @
443a350
...
...
@@ -20,16 +20,14 @@
<el-form-item label="货站名称" prop="goodsStation">
<el-select class="selectWidth100" v-model.lazy="formData.goodsStation" filterable
:loading="goodsStationLoading" placeholder="不限">
<el-option v-for="(item, index) in goodsStationList" :label="item" :value="item"
:key="item">
<el-option v-for="(item, index) in goodsStationList" :label="item" :value="item" :key="item">
</el-option>
</el-select>
</el-form-item>
</div>
<div v-else>
<el-form-item label="货站名称" prop="uploadGoodsStation">
<el-input type="text" v-model="formData.uploadGoodsStation" maxlength="25"
placeholder="请输入货站名称">
<el-input type="text" v-model="formData.uploadGoodsStation" maxlength="25" placeholder="请输入货站名称">
</el-input>
</el-form-item>
<el-form-item prop="file" label-width="0px">
...
...
@@ -195,7 +193,7 @@ export default {
this.$message.warning(res.msg);
if (res.data) {
this.errorData = res.data;
this.$router.push({ name: 'UpDateResult',
params
: { data: this.errorData, from: 'FlightInformationImport' } })
this.$router.push({ name: 'UpDateResult',
query
: { data: this.errorData, from: 'FlightInformationImport' } })
}
} else {
this.$message.warning(res.msg);
...
...
src/views/basicInformation/queryCargo/index.vue
View file @
443a350
<template>
<div class="cargoPage">
<el-form ref="cargoForm" class="form-header" label-position="right" label-width="auto" size="small"
:model="formData">
<el-form ref="cargoForm" class="form-header" label-position="right" label-width="auto" size="small" :model="formData">
<el-row type="flex" style="flexWrap: wrap !important">
<el-col :span="6">
<el-form-item label="配舱航班日期">
...
...
@@ -139,8 +138,7 @@
</div>
</template>
<el-select class="formItem" v-model="formData.cargoPlaneRoute" placeholder="不限"
:disabled="routeList.length == 0" clearable @change="routeSelectChange"
:key="formData.cargoPlaneRoute">
:disabled="routeList.length == 0" clearable @change="routeSelectChange" :key="formData.cargoPlaneRoute">
<el-option v-for="(item, index) in routeList" :label="item" :value="item" :key="item">
<Tooltips :content="item" :refName="item"></Tooltips>
</el-option>
...
...
@@ -199,8 +197,8 @@
<el-button class="mr20" icon="el-icon-search" size="mini" @click="formShow = !formShow" circle></el-button>
</el-tooltip>
<el-tooltip content="表格设置" placement="top">
<HeaderSetting tableName="cargo" class="mr20" style="float:right;line-height: 48px;"
@close="headerSetClose">
</HeaderSetting>
<HeaderSetting tableName="cargo" class="mr20" style="float:right;line-height: 48px;"
@close="headerSetClose">
</HeaderSetting>
</el-tooltip>
</div>
</div>
...
...
@@ -216,8 +214,8 @@
}}<i class="el-icon-link"></i> </el-link>
</template>
</Tables>
<el-dialog title="舱位释放结果" width="80%" :visible.sync="dialogVisible" :close-on-click-modal="false"
:
show-close="false" :
append-to-body="true" @close="close">
<el-dialog title="舱位释放结果" width="80%" :visible.sync="dialogVisible" :close-on-click-modal="false"
:show-close="false"
:append-to-body="true" @close="close">
<el-table :data="selectTable" size="mini" border stripe highlight-current-row style="width: 100%">
<el-table-column type="index" label="序号" align="center">
</el-table-column>
...
...
@@ -696,15 +694,17 @@ export default {
},
//配载航班号获取航线
planeNoChange(val) {
getFlightsRoutes(val).then(res => {
if (res.code === 200) {
this.routeList = res.data
} else {
this.msgWarning(res.msg)
}
}).catch(err => {
console.log(err)
})
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)
})
}
},
routeSelectChange(val) {
this.$forceUpdate()
...
...
src/views/basicInformation/queryCargo/info.vue
View file @
443a350
...
...
@@ -159,7 +159,7 @@ export default {
}
arr.push(obj)
})
this.$router.push({ name: 'UpDateResult',
params
: { data: arr, from: 'queryCargo' } })
this.$router.push({ name: 'UpDateResult',
query
: { data: arr, from: 'queryCargo' } })
this.dialogBeforeClose()
} else if (res.code === 202) {
this.reBatchMoveCargoToOtherFlight(res.msg, 'overweight')
...
...
@@ -207,7 +207,7 @@ export default {
}
arr.push(obj)
})
this.$router.push({ name: 'UpDateResult',
params
: { data: arr, from: 'queryCargo' } })
this.$router.push({ name: 'UpDateResult',
query
: { data: arr, from: 'queryCargo' } })
this.dialogBeforeClose()
} else if (res.code === 203) {
this.reBatchMoveCargoToOtherFlight(res.msg, 'notInWhite')
...
...
@@ -286,6 +286,4 @@ export default {
};
</script>
<style>
</style>
\ No newline at end of file
<style></style>
\ No newline at end of file
...
...
src/views/preMdeConfig/flightToArea/index.vue
View file @
443a350
...
...
@@ -164,18 +164,7 @@ export default {
} else if (res.code === 201) {
this.msgWarning(res.msg);
this.errorData = res.data;
this.$router.push({ name: 'UpDateResult', params: { data: this.errorData, from: 'FlightToArea' } })
} else if (res.code === 301) {
this.$confirm('登录状态已过期,需重新登录', '系统提示', {
closeOnClickModal: false,
showCancelButton: false,
confirmButtonText: '重新登录',
type: 'warning'
}).then(
this.$store.dispatch('LogOut').then(() => {
window.location.href = settings.loginURL;//wsso系统跳转
})
)
this.$router.push({ name: 'UpDateResult', query: { data: this.errorData, from: 'FlightToArea' } })
} else {
this.msgWarning(res.msg);
}
...
...
src/views/preMdeConfig/upDateResult.vue
View file @
443a350
...
...
@@ -33,14 +33,12 @@ export default {
}
},
created() {
this.tableData = this.$route.
params
.data
this.fromRoute = this.$route.
params
.from
this.tableData = this.$route.
query
.data
this.fromRoute = this.$route.
query
.from
},
wactch: {
dialogVisible(val) {
if (val) {
}
}
activated() {
this.tableData = this.$route.query.data
this.fromRoute = this.$route.query.from
},
methods: {
close() {
...
...
@@ -56,6 +54,4 @@ export default {
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
<style lang="scss" scoped></style>
\ No newline at end of file
...
...
src/views/preMdeConfig/ursaToArea/index.vue
View file @
443a350
...
...
@@ -25,8 +25,8 @@
<el-row>
<el-col :span="6">
<el-form-item label="生效日期" prop="beginDate" :rules="rules">
<el-date-picker class="formItem" v-model="formData.beginDate" type="date"
placeholder="选择日期"
value-format="yyyy-MM-dd" clearable>
<el-date-picker class="formItem" v-model="formData.beginDate" type="date"
placeholder="选择日期"
value-format="yyyy-MM-dd" clearable>
</el-date-picker>
</el-form-item>
</el-col>
...
...
@@ -171,18 +171,7 @@ export default {
} else if (res.code === 201) {
this.msgWarning(res.msg);
this.errorData = res.data;
this.$router.push({ name: 'UpDateResult', params: { data: this.errorData, from: 'FlightInformationImport' } })
} else if (res.code === 301) {
this.$confirm('登录状态已过期,需重新登录', '系统提示', {
closeOnClickModal: false,
showCancelButton: false,
confirmButtonText: '重新登录',
type: 'warning'
}).then(
this.$store.dispatch('LogOut').then(() => {
window.location.href = settings.loginURL;//wsso系统跳转
})
)
this.$router.push({ name: 'UpDateResult', query: { data: this.errorData, from: 'FlightInformationImport' } })
} else {
this.msgWarning(res.msg);
}
...
...
Please
register
or
login
to post a comment