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-13 20:12:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f1f20cdf150e48dd6a671b30b300c66394bfb0f
9f1f20cd
1 parent
b71027e9
弹框关闭时间逻辑修正,文本修正,bug修复
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
79 additions
and
82 deletions
src/assets/languages/tableHeaders.js
src/components/HeaderSetting/index.vue
src/components/ImageUpload/index.vue
src/components/RightToolbar/index.vue
src/utils/request.js
src/views/allocationConfig/cargoAllocation/info.vue
src/views/allocationConfig/flightAllocConfig/dialog.vue
src/views/allocationConfig/flightRandConfig/index.vue
src/views/allocationConfig/preReview/index.vue
src/views/basicInformation/flightInformationMaintenance/index.vue
src/views/basicInformation/goodsBlackStation/dialog.vue
src/views/basicInformation/goodsStation/dialog.vue
src/views/basicInformation/goodsStationFlight/dialog.vue
src/views/basicInformation/queryCargo/dialog.vue
src/views/basicInformation/queryCargo/index.vue
src/views/basicInformation/queryCargo/info.vue
src/views/preMdeConfig/flightToArea/index.vue
src/views/preMdeConfig/reportForm/index.vue
src/views/preMdeConfig/ursaToArea/index.vue
src/views/systemConfig/dictionaryConfig/dialog.vue
src/views/systemConfig/menuConfig/drawer.vue
src/views/systemConfig/roleConfig/drawer.vue
src/views/systemConfig/superAllocation/dialog.vue
src/views/systemConfig/userConfig/drawer.vue
src/views/systemConfig/userConfig/index.vue
src/assets/languages/tableHeaders.js
View file @
9f1f20c
...
...
@@ -152,7 +152,7 @@ let tableHeaders = {
status
:
1
},
{
columnChineseName
:
"
s
ubcategory"
,
columnChineseName
:
"
S
ubcategory"
,
columnName
:
"subCategory"
,
columnWidth
:
"140"
,
ext1
:
"sorTable"
,
...
...
@@ -749,7 +749,7 @@ let tableHeaders = {
status
:
1
},
{
columnChineseName
:
"
s
ubcategory"
,
columnChineseName
:
"
S
ubcategory"
,
columnName
:
"subCategory"
,
columnWidth
:
"140"
,
ext1
:
"sorTable"
,
...
...
@@ -1814,7 +1814,7 @@ let tableHeaders = {
status
:
1
},
{
columnChineseName
:
"
s
ubcategory"
,
columnChineseName
:
"
S
ubcategory"
,
columnName
:
"subCategory"
,
columnWidth
:
"120"
,
ext1
:
""
,
...
...
@@ -2005,7 +2005,7 @@ let tableHeaders = {
status
:
1
},
{
columnChineseName
:
"
s
ubcategory"
,
columnChineseName
:
"
S
ubcategory"
,
columnName
:
"subCategory"
,
columnWidth
:
"120"
,
ext1
:
""
,
...
...
src/components/HeaderSetting/index.vue
View file @
9f1f20c
...
...
@@ -4,7 +4,7 @@
@click="visibleOpen">
</el-button>
<el-dialog title="表格显示设置" :visible.sync="open" width="40%" :close-on-click-modal="false" :show-close="false"
append-to-body center>
append-to-body center
@close="close"
>
<div style="text-align: center">
<el-transfer style="text-align: left; display: inline-block" :data="transferData"
:right-default-checked="rightDefaultChecked" v-model="transferValue" :titles="transferTitle"
...
...
src/components/ImageUpload/index.vue
View file @
9f1f20c
<template>
<div class="component-upload-image">
<el-upload
:action="uploadImgUrl"
list-type="picture-card"
:on-success="handleUploadSuccess"
:before-upload="handleBeforeUpload"
:on-error="handleUploadError"
name="file"
:show-file-list="false"
:headers="headers"
style="display: inline-block; vertical-align: top"
>
<el-upload :action="uploadImgUrl" list-type="picture-card" :on-success="handleUploadSuccess"
:before-upload="handleBeforeUpload" :on-error="handleUploadError" name="file" :show-file-list="false"
:headers="headers" style="display: inline-block; vertical-align: top">
<el-image v-if="!value" :src="value">
<div slot="error" class="image-slot">
<i class="el-icon-plus" />
</div>
</el-image>
<div v-else class="image">
<el-image :src="value" :style="`width:150px;height:150px;`" fit="fill"/>
<el-image :src="value" :style="`width:150px;height:150px;`" fit="fill"
/>
<div class="mask">
<div class="actions">
<span title="预览" @click.stop="dialogVisible = true">
...
...
@@ -30,7 +22,7 @@
</div>
</div>
</el-upload>
<el-dialog :visible.sync="dialogVisible" title="预览" width="800" append-to-body>
<el-dialog :visible.sync="dialogVisible" title="预览" width="800" append-to-body
:close-on-press-escape="false"
>
<img :src="value" style="display: block; max-width: 100%; margin: 0 auto;">
</el-dialog>
</div>
...
...
@@ -85,6 +77,7 @@ export default {
<style scoped lang="scss">
.image {
position: relative;
.mask {
opacity: 0;
position: absolute;
...
...
@@ -93,6 +86,7 @@ export default {
background-color: rgba(0, 0, 0, 0.5);
transition: all 0.3s;
}
&:hover .mask {
opacity: 1;
}
...
...
src/components/RightToolbar/index.vue
View file @
9f1f20c
<template>
<div class="top-right-btn">
<el-row>
<el-tooltip
class="item"
effect="dark"
:content="showSearch ? '隐藏搜索' : '显示搜索'"
placement="top"
>
<el-button
:size="size"
circle
icon="el-icon-search"
@click="toggleSearch()"
/>
<el-tooltip class="item" effect="dark" :content="showSearch ? '隐藏搜索' : '显示搜索'" placement="top">
<el-button :size="size" circle icon="el-icon-search" @click="toggleSearch()" />
</el-tooltip>
<el-tooltip class="item" effect="dark" content="刷新" placement="top">
<el-button
:size="size"
circle
icon="el-icon-refresh"
@click="refresh()"
/>
<el-button :size="size" circle icon="el-icon-refresh" @click="refresh()" />
</el-tooltip>
<el-tooltip
class="item"
effect="dark"
content="显隐列"
placement="top"
v-if="columns"
>
<el-button
:size="size"
circle
icon="el-icon-menu"
@click="showColumn()"
/>
<el-tooltip class="item" effect="dark" content="显隐列" placement="top" v-if="columns">
<el-button :size="size" circle icon="el-icon-menu" @click="showColumn()" />
</el-tooltip>
</el-row>
<el-dialog :title="title" :visible.sync="open" append-to-body>
<el-transfer
:titles="['显示', '隐藏']"
v-model="value"
:data="columns"
@change="dataChange"
></el-transfer>
<el-dialog :title="title" :visible.sync="open" append-to-body :close-on-press-escape="false">
<el-transfer :titles="['显示', '隐藏']" v-model="value" :data="columns" @change="dataChange"></el-transfer>
</el-dialog>
</div>
</template>
...
...
@@ -111,6 +80,7 @@ export default {
display: block;
margin-left: 0px;
}
::v-deep .el-transfer__button:first-child {
margin-bottom: 10px;
}
...
...
src/utils/request.js
View file @
9f1f20c
...
...
@@ -10,10 +10,10 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
const
service
=
axios
.
create
({
// axios中请求配置有baseURL选项,表示请求URL公共部分
baseURL
:
settings
.
baseURL
,
// 超时
timeout
:
30000
,
})
// request拦截器
service
.
interceptors
.
request
.
use
(
config
=>
{
// 是否需要设置 token
...
...
@@ -66,7 +66,7 @@ service.interceptors.response.use(res => {
).
then
(()
=>
{
store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
// location.href = '/';
window
.
location
.
href
=
settings
.
log
out
URL
;
//wsso系统跳转
window
.
location
.
href
=
settings
.
log
in
URL
;
//wsso系统跳转
})
});
}
else
if
(
code
===
403
)
{
...
...
src/views/allocationConfig/cargoAllocation/info.vue
View file @
9f1f20c
<template>
<div>
<el-dialog title="货物配舱" width="80%" top="5vh" :visible.sync="dialogVisible" :close-on-click-modal="false"
:show-close="false" :append-to-body="true">
:show-close="false" :append-to-body="true"
@close="dialogBeforeClose"
>
<el-divider content-position="left">已选货物信息</el-divider>
<el-table :data="tableData" size="mini" height="200" max-height="200" border stripe highlight-current-row
style="width: 100%">
...
...
src/views/allocationConfig/flightAllocConfig/dialog.vue
View file @
9f1f20c
<template>
<div>
<el-dialog title="航线优先级排序" :visible.sync="open" width="25%" :close-on-click-modal="false" :show-close="false"
append-to-body center>
@close="close"
append-to-body center>
<el-form ref="routeOrder" label-width="auto" label-position="left" size="small" @submit.native.prevent>
<el-form-item label="航班号:" prop="fltNo">
<span>{{ fltNo }}</span>
...
...
src/views/allocationConfig/flightRandConfig/index.vue
View file @
9f1f20c
...
...
@@ -55,7 +55,7 @@
</Tables>
<!-- 查看目的航班对话框 -->
<el-dialog title="实际配载航班" :visible.sync="openFlightDate" width="70%" :close-on-click-modal="false"
:show-close="false" :append-to-body="true">
:show-close="false" :append-to-body="true"
@close="cancelFlightDate"
>
<el-table v-loading="loadingFlightDate" :data="sourceFlightAndFlightDate">
<el-table-column type="index" label="序号" align="center">
<template slot-scope="scope">{{ scope.$index + 1 }}</template>
...
...
@@ -78,7 +78,7 @@
</el-dialog>
<!-- 添加或修改对话框 -->
<el-dialog :title="title" :visible.sync="open" width="55%" :append-to-body="true" :close-on-click-modal="false"
:show-close="false">
:show-close="false"
@close="cancel"
>
<el-form ref="form" :model="form" :rules="rules" label-position="right" label-width="auto" size="small">
<el-row>
<el-col :span="8">
...
...
src/views/allocationConfig/preReview/index.vue
View file @
9f1f20c
...
...
@@ -41,7 +41,7 @@
layout="total,prev, pager, next, jumper, ->" @tableSelect="tableSelection" @tableSelectAll="tableSelectAll">
</Tables>
<el-dialog title="新增预审航班" width="20%" :visible.sync="dialogVisible" :close-on-click-modal="false"
:show-close="false" :append-to-body="true">
:show-close="false" :append-to-body="true"
@close="close"
>
<el-form ref="addForm" :model="newPre" label-width="auto" label-position="left" size="small" :rules="rules"
@submit.native.prevent>
<el-form-item label="航班号" prop="addFlitNo">
...
...
@@ -230,4 +230,5 @@ export default {
};
</script>
<style rel="stylesheet/scss" lang="scss">
</style>
...
...
src/views/basicInformation/flightInformationMaintenance/index.vue
View file @
9f1f20c
...
...
@@ -97,7 +97,7 @@
</Tables>
<!-- 添加或修改对话框 -->
<el-dialog :title="title" :visible.sync="open" width="60%" :close-on-click-modal="false" :append-to-body="true"
:show-close="false">
:show-close="false"
@close="cancel"
>
<el-form ref="form" :model="form" :rules="rules" label-position="right" label-width="auto" size="small">
<el-row>
<el-col :span="12">
...
...
@@ -273,7 +273,7 @@
</div>
</el-dialog>
<el-dialog title="未删除成功航班" width="40%" center :visible.sync="dialogTableVisible" :close-on-click-modal="false"
:append-to-body="true">
:append-to-body="true"
:close-on-press-escape="false"
>
<el-table :data="gridData">
<el-table-column property="fltNo" label="航班号"></el-table-column>
<el-table-column property="fltDate" label="航班日期"></el-table-column>
...
...
src/views/basicInformation/goodsBlackStation/dialog.vue
View file @
9f1f20c
<template>
<div>
<el-dialog :title="openStatus == 'add' ? '新 增' : openStatus == 'downloadExcel' ? '导出Excel' : '导入Excel'"
:visible.sync="open" width="25%" :close-on-click-modal="false" :show-close="false" append-to-body center>
:visible.sync="open" width="25%" :close-on-click-modal="false" :show-close="false" append-to-body center
@close="close">
<el-form class="form-header" :model="formData" size="small" ref="addForm" label-width="auto"
label-position="left" style="margin-bottom:10px" :rules="rules" @submit.native.prevent>
<div v-if="openStatus == 'add'">
...
...
src/views/basicInformation/goodsStation/dialog.vue
View file @
9f1f20c
<template>
<div>
<el-dialog :title="openStatus == 'add' ? '新 增' : openStatus == 'downloadExcel' ? '导出Excel' : '导入Excel'"
:visible.sync="open" width="25%" :close-on-click-modal="false" :show-close="false" append-to-body center>
:visible.sync="open" width="25%" :close-on-click-modal="false" :show-close="false" append-to-body center
@close="close">
<el-form class="form-header" :model="formData" size="small" ref="addForm" label-width="auto"
label-position="left" style="margin-bottom:10px" :rules="rules" @submit.native.prevent>
<div v-if="openStatus == 'add'">
...
...
src/views/basicInformation/goodsStationFlight/dialog.vue
View file @
9f1f20c
<template>
<div>
<el-dialog title="新 增" :visible.sync="open" width="25%" :close-on-click-modal="false" :show-close="false"
append-to-body center>
append-to-body center
@close="close"
>
<el-form class="form-header" :model="formData" size="small" ref="addForm" label-width="auto"
label-position="left" style="margin-bottom:10px" :rules="rules" @submit.native.prevent>
<el-form-item label="货站名称" prop="goodsStation">
...
...
src/views/basicInformation/queryCargo/dialog.vue
View file @
9f1f20c
<template>
<div>
<el-dialog title="查看日志" width="80%" :visible.sync="dialogVisible" :close-on-click-modal="false"
:show-close="false" :append-to-body="true" top="2vh">
:show-close="false" :append-to-body="true" top="2vh"
@close="close"
>
<el-form class="form-header" label-position="right" label-width="auto" size="small">
<el-row>
<el-col :span="4">
...
...
@@ -93,4 +93,5 @@ export default {
</script>
<style scoped>
</style>
\ No newline at end of file
...
...
src/views/basicInformation/queryCargo/index.vue
View file @
9f1f20c
...
...
@@ -217,7 +217,7 @@
</template>
</Tables>
<el-dialog title="舱位释放结果" width="80%" :visible.sync="dialogVisible" :close-on-click-modal="false"
:show-close="false" :append-to-body="true">
: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>
...
...
src/views/basicInformation/queryCargo/info.vue
View file @
9f1f20c
<template>
<div>
<el-dialog title="货物配舱" width="80%" :visible.sync="dialogVisible" :close-on-click-modal="false" :show-close="false"
:append-to-body="true">
:append-to-body="true"
@close="dialogBeforeClose"
>
<el-divider content-position="left">已选货物信息</el-divider>
<el-table :data="tableData" size="mini" height="200" max-height="200" border stripe highlight-current-row
style="width: 100%">
...
...
src/views/preMdeConfig/flightToArea/index.vue
View file @
9f1f20c
...
...
@@ -63,6 +63,7 @@ import {
importFlightDestination,
searchFlightDestination
} from "@/api/preMdeConfig";
import settings from "@/settings"
export default {
name: "FlightToArea",
...
...
@@ -164,6 +165,17 @@ export default {
this.msgWarning(res.data.msg);
this.errorData = res.data.data;
this.$router.push({ name: 'UpDateResult', params: { data: this.errorData, from: 'FlightToArea' } })
} else if (res.data.code === 301) {
this.$confirm('登录状态已过期,需重新登录', '系统提示', {
closeOnClickModal: false,
showCancelButton: false,
confirmButtonText: '重新登录',
type: 'warning'
}).then(
this.$store.dispatch('LogOut').then(() => {
window.location.href = settings.loginURL;//wsso系统跳转
})
)
} else {
this.msgWarning(res.data.msg);
}
...
...
src/views/preMdeConfig/reportForm/index.vue
View file @
9f1f20c
...
...
@@ -39,7 +39,7 @@
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="
service t
ype">
<el-form-item label="
Service T
ype">
<el-select v-model="formData.serviceTypeArray" class="formItem" filterable multiple clearable
placeholder="不限">
<el-option v-for="item in selectOptionList.serviceType" :label="item.chineseName"
...
...
@@ -61,7 +61,7 @@
<el-radio label="region">区域</el-radio>
<el-radio label="area">地区</el-radio>
<el-radio label="ursa">URSA</el-radio>
<el-radio label="serviceType">
service t
ype</el-radio>
<el-radio label="serviceType">
Service T
ype</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
...
...
src/views/preMdeConfig/ursaToArea/index.vue
View file @
9f1f20c
...
...
@@ -65,6 +65,7 @@ import {
importUrsaDestination,
searchUrsaDestination
} from "@/api/preMdeConfig";
import settings from "@/settings"
export default {
name: "UrsaToArea",
...
...
@@ -171,6 +172,17 @@ export default {
this.msgWarning(res.data.msg);
this.errorData = res.data.data;
this.$router.push({ name: 'UpDateResult', params: { data: this.errorData, from: 'FlightInformationImport' } })
} else if (res.data.code === 301) {
this.$confirm('登录状态已过期,需重新登录', '系统提示', {
closeOnClickModal: false,
showCancelButton: false,
confirmButtonText: '重新登录',
type: 'warning'
}).then(
this.$store.dispatch('LogOut').then(() => {
window.location.href = settings.loginURL;//wsso系统跳转
})
)
} else {
this.msgWarning(res.data.msg);
}
...
...
src/views/systemConfig/dictionaryConfig/dialog.vue
View file @
9f1f20c
<template>
<div>
<el-dialog :title="title" :visible.sync="open" width="25%" :close-on-click-modal="false" :show-close="false"
append-to-body center>
@close="close"
append-to-body center>
<el-form ref="add" :model="newDictionary" label-width="auto" label-position="left" size="small"
:rules="rules" @submit.native.prevent>
<!-- 新增虚拟航班 -->
...
...
src/views/systemConfig/menuConfig/drawer.vue
View file @
9f1f20c
<template>
<div class="menuDrawer">
<el-dialog :title="drawerTitle" width="50%" :visible.sync="dialogVisible" :close-on-click-modal="false"
:show-close="false"
:
append-to-body="tru
e">
<el-dialog :title="drawerTitle" width="50%" :visible.sync="dialogVisible" :close-on-click-modal="false"
:
show-close="false" :append-to-body="true" @close="handleClos
e">
<el-form ref="userForm" :model="menuForm" :disabled="menuFormDisabled" :rules="rules" label-width="auto"
style="margin: 10px">
<el-row>
...
...
@@ -125,4 +125,5 @@ export default {
</script>
<style>
</style>
\ No newline at end of file
...
...
src/views/systemConfig/roleConfig/drawer.vue
View file @
9f1f20c
<template>
<div class="roleDrawer">
<el-drawer :title="drawerTitle" :visible.sync="drawer" direction="rtl" size="40%" destroy-on-close
:close-on-click-modal="false" :wrapperClosable="false" :show-close="false">
:close-on-click-modal="false" :wrapperClosable="false" :show-close="false"
@close="handleClose"
>
<el-form ref="roleForm" :model="roleForm" label-width="auto" :rules="rules" size="mini" style="margin: 10px"
@submit.native.prevent>
<el-row :gutter="10">
...
...
@@ -176,4 +176,5 @@ export default {
</script>
<style>
</style>
\ No newline at end of file
...
...
src/views/systemConfig/superAllocation/dialog.vue
View file @
9f1f20c
<template>
<div>
<el-dialog :title="title" :visible.sync="dialogVisible" width="60%" top="8vh" :before-close="close"
append-to-body :close-on-click-modal="false" @submit.native.prevent>
append-to-body :close-on-click-modal="false" @submit.native.prevent
@close="close"
>
<el-form class="form-header" ref="superAllocationForm" :model="formData" label-width="auto"
label-position="left" style="margin-bottom:10px" @submit.native.prevent size="small" :rules="rules">
<el-row>
...
...
src/views/systemConfig/userConfig/drawer.vue
View file @
9f1f20c
<template>
<div class="userDrawer">
<el-drawer :title="drawerTitle" :visible.sync="drawer" direction="rtl" size="40%" :close-on-click-modal="false"
:wrapperClosable="false" :show-close="false">
:wrapperClosable="false" :show-close="false"
@close="handleClose"
>
<el-form ref="userForm" :model="userForm" label-width="auto" :rules="rules" style="margin: 10px"
@submit.native.prevent>
<el-row :gutter="10">
...
...
@@ -244,7 +244,7 @@ export default {
roleIds: [],
};
this.clearValidate('userForm')
this.$emit("handleClose"
, false
);
this.$emit("handleClose");
},
//提交
submit() {
...
...
@@ -276,4 +276,5 @@ export default {
</script>
<style>
</style>
\ No newline at end of file
...
...
src/views/systemConfig/userConfig/index.vue
View file @
9f1f20c
...
...
@@ -41,7 +41,8 @@
>修改密码</el-button
> -->
<el-button :type="scope.row.isValid == 1 ? 'warning' : 'primary'" size="mini"
v-hasPermi="['system:user:openClose']" @click="userStatus(scope)">{{ scope.row.isValid == 1 ? "停用" : "启用"
v-hasPermi="['system:user:openClose']" @click="userStatus(scope)">{{
scope.row.isValid == 1 ? "停用" : "启用"
}}</el-button>
<el-button type="danger" size="mini" @click="removeUser(scope)" v-hasPermi="['system:user:delete']">删除用户
</el-button>
...
...
@@ -236,7 +237,7 @@ export default {
.catch(() => { });
},
handleClose(val) {
this.drawer =
val
;
this.drawer =
false
;
this.userData = {};
this.selectUser();
},
...
...
@@ -253,4 +254,5 @@ export default {
</script>
<style>
</style>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment