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
Elements-SY
2023-09-08 10:19:47 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
dc220f46258b89796c305b97d8d98f73393841cf
dc220f46
2 parents
8b4e442b
a44c58f6
modify
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
115 additions
and
26 deletions
src/api/system/dictionary.js
src/components/Table/index.vue
src/layout/index.vue
src/layout/mixin/ResizeHandler.js
src/store/modules/app.js
src/utils/index.js
src/views/allocationConfig/flightAllocConfig/info.vue
src/views/basicInformation/queryCargo/index.vue
src/views/systemConfig/dictionaryConfig/index.vue
src/api/system/dictionary.js
View file @
dc220f4
...
...
@@ -143,15 +143,9 @@ export function delFlight(data) {
//查询航线
/**
<<<<<<< HEAD
* @param fltNo 航班号
* @param page 页数
* @param size 页长
=======
* @param fltNo 航班号
* @param page 页数
* @param size 页长
>>>>>>> test
*/
export
function
queryRoute
(
data
)
{
return
request
({
...
...
@@ -211,3 +205,11 @@ export function checkFlightRoute(data) {
})
}
//更新航线
export
function
updateRoute
(
data
)
{
return
request
({
url
:
`/dictionary/updateRoute`
,
method
:
"post"
,
data
:
data
,
});
}
...
...
src/components/Table/index.vue
View file @
dc220f4
...
...
@@ -418,8 +418,11 @@ export default {
<style lang="scss">
.tablePagination {
margin-top: 10px;
text-align: right;
height: 25px;
margin-bottom: 10px;
margin-top: 15px;
padding: 10px 20px !important;
}
.w-table {
...
...
src/layout/index.vue
View file @
dc220f4
...
...
@@ -4,11 +4,11 @@
<sidebar class="sidebar-container"
:style="{ backgroundColor: sideTheme === 'theme-dark' ? variables.menuBg : variables.menuLightBg }" />
<div :class="{ hasTagsView: needTagsView }" class="main-container">
<div :class="{ 'fixed-header': fixedHeader }" ref="headerRef">
<div
class="headerRef"
:class="{ 'fixed-header': fixedHeader }" ref="headerRef">
<navbar />
<tags-view v-if="needTagsView" />
</div>
<app-main />
<app-main
ref="appMainBlock"
/>
<right-panel v-if="false">
<settings />
</right-panel>
...
...
src/layout/mixin/ResizeHandler.js
View file @
dc220f4
...
...
@@ -23,10 +23,10 @@ export default {
if
(
isMobile
)
{
store
.
dispatch
(
"app/toggleDevice"
,
"mobile"
);
store
.
dispatch
(
"app/closeSideBar"
,
{
withoutAnimation
:
true
});
}
this
.
$nextTick
(()
=>
{
}
;
this
.
$nextTick
(()
=>
{
this
.
getBlockCurrentHeight
();
})
})
;
},
methods
:
{
// use $_ for mixins properties
...
...
@@ -45,5 +45,11 @@ export default {
}
}
},
getBlockCurrentHeight
()
{
let
appHeaderHeight
=
this
.
$refs
.
headerRef
.
clientHeight
;
let
appMainHeight
=
this
.
$refs
.
appMainBlock
.
$el
.
clientHeight
;
this
.
$store
.
dispatch
(
"app/setAppHeaderBlockCH"
,
appHeaderHeight
);
this
.
$store
.
dispatch
(
"app/setAppMainBlockCH"
,
appMainHeight
);
},
},
};
...
...
src/store/modules/app.js
View file @
dc220f4
...
...
@@ -10,6 +10,8 @@ const state = {
device
:
"desktop"
,
//size: Cookies.get('size') || 'medium'
size
:
localStorage
.
getItem
(
"size"
)
||
"medium"
,
headerBlockClientHeight
:
null
,
appMainBlockClientHeight
:
null
,
};
const
mutations
=
{
...
...
@@ -41,8 +43,10 @@ const mutations = {
SET_APPHEADERBLOCKCH
:
(
state
,
height
)
=>
{
state
.
headerBlockClientHeight
=
height
;
},
SET_APPMAINBLOCKCH
:
(
state
,
height
)
=>
{
state
.
appMainBlockClientHeight
=
height
;
},
}
const
actions
=
{
toggleSideBar
({
commit
})
{
commit
(
"TOGGLE_SIDEBAR"
);
...
...
@@ -56,6 +60,12 @@ const actions = {
setSize
({
commit
},
size
)
{
commit
(
"SET_SIZE"
,
size
);
},
setAppHeaderBlockCH
({
commit
},
height
)
{
commit
(
"SET_APPHEADERBLOCKCH"
,
height
);
},
setAppMainBlockCH
({
commit
},
height
)
{
commit
(
"SET_APPMAINBLOCKCH"
,
height
);
},
};
export
default
{
...
...
src/utils/index.js
View file @
dc220f4
...
...
@@ -416,7 +416,8 @@ function getPropertyValue(el) {
);
}
// 获取页面内除了table其他模块所占的高
// 获取页面内除了table其他模块所占的高,
// 以及margin-top margin-bottom padding-top padding-bottom
export
function
restTableHeight
(
$refs
)
{
let
heigth
=
0
;
Object
.
keys
(
$refs
).
map
((
key
)
=>
{
...
...
@@ -448,5 +449,7 @@ export function restTableHeight($refs) {
heigth
+=
getPropertyValue
(
$refs
[
key
]);
}
});
return
heigth
;
// 右边栏top-header全局组件的高
let
topHeaderClientHeight
=
document
.
querySelector
(
".headerRef"
).
clientHeight
;
return
heigth
+
topHeaderClientHeight
;
}
...
...
src/views/allocationConfig/flightAllocConfig/info.vue
View file @
dc220f4
...
...
@@ -674,7 +674,6 @@ export default {
} else {
obj.route = this.$route.params.route ? this.$route.params.route : ''
}
this.getRouteDimension(obj)
}
}
...
...
@@ -691,7 +690,7 @@ export default {
},
activated() {
this.routeSatus = this.$route.params.routeStatus
if (!this.$route.params.createStatus) {
if (!this.$route.params.createStatus
&& this.$route.params.createStatus !== undefined
) {
if (this.$route.params.handle == 'add') {
if (this.infoForm.fltNo && this.infoForm.fltNo != null && this.infoForm.fltNo != '') {
this.getRoutes(this.infoForm.fltNo)
...
...
@@ -715,7 +714,6 @@ export default {
} else {
obj.route = this.$route.params.route ? this.$route.params.route : ''
}
this.getRouteDimension(obj)
}
}
...
...
@@ -776,11 +774,14 @@ export default {
this.infoForm.list = []
let obj = {
purposeOfFlightNo: val.fltNo,
flightDate: val.fltDate,
flightDate: val.fltDate,
//
flightRoute: val.route,
flightRouteListStr: val.flightRouteListStr,
status: val.status ? val.status : ''
}
if(this.$route.params.handle == "updated"){
delete obj.flightRoute
}
if (this.$route.params.handle != 'add') {
findDestinationFltRuleByFlightNo(obj).then(res => {
if (res.code === 200) {
...
...
@@ -841,7 +842,8 @@ export default {
}
})
}
} else {
}
else {
//未请求到数据
if (this.infoForm.route != null && this.infoForm.route != '' && this.infoForm.route != ' ') {
let params = {
...
...
@@ -977,13 +979,41 @@ export default {
console.log(err)
})
} else if (this.routeSatus == 'flightInformationMaintenancePurple Tail') {
this.routeList.forEach((route) => {
let query = {
purposeOfFlightNo: val.fltNo,
flightRoute: val.route,
flightRouteListStr: val.flightRouteListStr,
status: val.status ? val.status : ''
}
//航班类型Purple Tail展示全部航线维度
findDestinationFltRuleByFlightNo(query).then(result => {
const { code, data } = result;
if(code == 200){
this.routeList = data.routeList;
let routesStatus = 1
if(data.routeList.length){
this.routeList.forEach(route => {
data.list.forEach(item => {
if (route.route === item.flightRoute) {
routesStatus = 2
// item.id = undefined
// item.status = undefined
// item.flightRoute = this.infoForm.route
// item.routePriority = route.routePriority
this.infoForm.list.push(this.dataHandle(item))
}
})
if (routesStatus == 1) {
this.infoForm.list.push({
purposeOfFlightNo: this.infoForm.fltNo,
ruleDate: this.infoForm.fltDate,
flightRoute: route.route,
routePriority: route.routePriority,
})
}
})
}
}
})
}
}
...
...
src/views/basicInformation/queryCargo/index.vue
View file @
dc220f4
...
...
@@ -42,24 +42,24 @@
<el-col :span="6">
<el-form-item label="运单号">
<el-input ref='userInfo' type="textarea" v-model="formData.waybillNo" class="formItem"
placeholder="请输入运单号(回车间隔)" :rows="
4
" :maxlength="12000" clearable></el-input>
placeholder="请输入运单号(回车间隔)" :rows="
1
" :maxlength="12000" clearable></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="配载航班号">
<el-input type="textarea" v-model="cargoPlaneNo" class="formItem" placeholder="AC001;AC002" :rows="
4
"
<el-input type="textarea" v-model="cargoPlaneNo" class="formItem" placeholder="AC001;AC002" :rows="
1
"
clearable @change="planeNoChange"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="URSA">
<el-input type="textarea" v-model="ursa" class="formItem" placeholder="S_;P_;E2" :rows="
4
" clearable>
<el-input type="textarea" v-model="ursa" class="formItem" placeholder="S_;P_;E2" :rows="
1
" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="始发站">
<el-input type="textarea" v-model="siteName" class="formItem" placeholder="PVG;PEK" :rows="
4
" clearable>
<el-input type="textarea" v-model="siteName" class="formItem" placeholder="PVG;PEK" :rows="
1
" clearable>
</el-input>
</el-form-item>
</el-col>
...
...
@@ -156,7 +156,7 @@
<el-col :span="6">
<el-form-item label="发件人账号">
<el-input ref='userInfo' type="textarea" v-model="formData.shipperAccount" class="formItem"
placeholder="请输入发件人账号(;间隔)" :rows="
4
" :maxlength="12000" clearable></el-input>
placeholder="请输入发件人账号(;间隔)" :rows="
1
" :maxlength="12000" clearable></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
src/views/systemConfig/dictionaryConfig/index.vue
View file @
dc220f4
...
...
@@ -506,6 +506,41 @@ export default {
serviceCodeTableSelectAll(val) {
this.nowSelect = val
},
// 确认消息提示
confirmHandle($index, row){
this.$confirm(row.msg, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
center: true,
})
.then(() => {
let params = {
id: row.id,
fltNo: row.fltNo,
route: row.route,
isEtesRoute: row.isEtesRoute ? "Y" : "N"
}
this.updateRouteSubmit(params);
})
.catch(() => {
this.tableData[$index].isEtesRoute = !this.tableData[$index].isEtesRoute;
});
},
// checkBox是否设置ET86航线
checkboxIsEtesRoute({ $index, row }){
if(!row.isEtesRoute){
/*
将ET86设置成普通航线要查询校验该航线有没有设置维度,
如果该航线设置了ET86维度是否考虑将该航线下的维度删掉再进行操作;
*/
row.msg = "是否将该航线设置为非ET86航线?";
this.confirmHandle($index, row)
}else{
row.msg = "是否将该航线设置为ET86航线?";
this.confirmHandle($index, row)
}
}
}
}
</script>
...
...
Please
register
or
login
to post a comment