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-09-14 19:47:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
edc7aae9236036b11e64a615424c278021b6b79c
edc7aae9
1 parent
ae0bdc10
pt类型航班维度展示修改
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
16 deletions
src/views/allocationConfig/flightAllocConfig/info.vue
src/views/allocationConfig/flightAllocConfig/info.vue
View file @
edc7aae
...
...
@@ -51,12 +51,12 @@
v-if="routeSatus != 'flightInformationMaintenanceWhite Tail' && routeSatus != 'dmLog'"
class="backgroundCollapse" :value="infoForm.list.length > 0 ? routeList[0].route : ''"
style="min-height:500px;width:95%;margin:0 auto 50px" accordion v-loading="loading">
<el-collapse-item v-for="(
routeItem, index) in routeList
" :key="index" :name="routeItem.route"
v-if="($route.params.status == '3' && infoRouteList.includes(routeItem.route)) ||
$route.params.status != '3'
">
<el-collapse-item v-for="(
routeItem, index ) in routeList
" :key="index" :name="routeItem.route"
v-if="($route.params.status == '3' && infoRouteList.includes(routeItem.route)) ||
(routeSatus == 'flightInformationMaintenancePurple Tail' && infoRouteList.includes(routeItem.route)) || ($route.params.status != '3' && routeSatus != 'flightInformationMaintenancePurple Tail')
">
<template slot="title">
<span class="fontWeight">{{ routeItem.route }}</span>
</template>
<template v-for="(
val, idx) in infoForm.list
">
<template v-for="(
val, idx ) in infoForm.list
">
<el-card shadow="always" style="min-height:350px" v-if="val.flightRoute === routeItem.route"
:key="idx">
<div>
...
...
@@ -187,7 +187,7 @@
<el-card shadow="never" style="width: 95%">
<el-checkbox-group v-model="val.typeOfGoods" @change="change">
<el-row>
<el-col v-for="
item in checkBoxItem.cargoType
" :span="2"
<el-col v-for="
item in checkBoxItem.cargoType
" :span="2"
:key="item.id">
<el-checkbox v-if="item.status === 1" :label="item.chineseName"
:name="item.chineseName" :key="item.code">
...
...
@@ -205,7 +205,7 @@
<el-card shadow="never" style="width: 95%">
<el-checkbox-group v-model="val.declarationCategory" @change="change">
<el-row>
<el-col v-for="
item in checkBoxItem.cargoStatus
" :span="3"
<el-col v-for="
item in checkBoxItem.cargoStatus
" :span="3"
:key="item.id">
<el-checkbox v-if="item.status === 1" :label="item.chineseName"
:name="item.chineseName" :key="item.code" disabled>
...
...
@@ -223,7 +223,7 @@
<el-card shadow="never" style="width: 95%">
<el-checkbox-group v-model="val.puporpuxCode" @change="change">
<el-row>
<el-col :span="2" v-for="
item in checkBoxItem.puporpux
"
<el-col :span="2" v-for="
item in checkBoxItem.puporpux
"
:key="item.id">
<el-checkbox
v-if="item.status === 1 || val.puporpuxCode.includes(item.chineseName)"
...
...
@@ -244,7 +244,7 @@
<el-card shadow="never" style="width: 95%">
<el-checkbox-group v-model="val.serviceCode" @change="change">
<el-row>
<el-col v-for="
item in checkBoxItem.serviceCode
" :span="2"
<el-col v-for="
item in checkBoxItem.serviceCode
" :span="2"
:key="item.id">
<el-checkbox
v-if="item.status === 1 || val.serviceCode.includes(item.chineseName)"
...
...
@@ -264,7 +264,7 @@
<el-form-item label="Handling Code">
<el-card shadow="never" style="width: 95%">
<el-checkbox-group v-model="val.handlingCode" @change="change">
<div class="checkboxItem" v-for="
item in checkBoxItem.handlingCode
"
<div class="checkboxItem" v-for="
item in checkBoxItem.handlingCode
"
:key="item.id">
<el-checkbox
v-if="item.status === 1 || val.handlingCode.includes(item.chineseName)"
...
...
@@ -283,7 +283,7 @@
<el-form-item label="Sub Category">
<el-card shadow="never" style="width: 95%">
<el-checkbox-group v-model="val.subCategory" @change="change">
<div class="checkboxItem" v-for="
item in checkBoxItem.subCategory
"
<div class="checkboxItem" v-for="
item in checkBoxItem.subCategory
"
:key="item.id">
<el-checkbox
v-if="item.status === 1 || val.subCategory.includes(item.chineseName)"
...
...
@@ -304,7 +304,7 @@
</template>
</el-collapse-item>
</el-collapse>
<el-card v-else shadow="always" v-for="(
val, idx) in infoForm.list
" :key="idx" style="min-height:350px">
<el-card v-else shadow="always" v-for="(
val, idx ) in infoForm.list
" :key="idx" style="min-height:350px">
<div>
<el-empty description="未设置规则!" v-if="!val.isLocation">
<el-button type="primary" size="small" @click="newRoute(idx, routeList[idx].route)">新增规则
...
...
@@ -429,7 +429,7 @@
<el-card shadow="never" style="width: 95%">
<el-checkbox-group v-model="val.typeOfGoods" @change="change">
<el-row>
<el-col v-for="
item in checkBoxItem.cargoType
" :span="2" :key="item.id">
<el-col v-for="
item in checkBoxItem.cargoType
" :span="2" :key="item.id">
<el-checkbox v-if="item.status === 1" :label="item.chineseName"
:name="item.chineseName" :key="item.code">
<Tooltips :content="item.chineseName" :refName="item.code">
...
...
@@ -446,7 +446,7 @@
<el-card shadow="never" style="width: 95%">
<el-checkbox-group v-model="val.declarationCategory" @change="change">
<el-row>
<el-col v-for="
item in checkBoxItem.cargoStatus
" :span="3" :key="item.id">
<el-col v-for="
item in checkBoxItem.cargoStatus
" :span="3" :key="item.id">
<el-checkbox v-if="item.status === 1" :label="item.chineseName"
:name="item.chineseName" disabled :key="item.code">
<Tooltips :content="item.chineseName" :refName="item.code">
...
...
@@ -463,7 +463,7 @@
<el-card shadow="never" style="width: 95%">
<el-checkbox-group v-model="val.puporpuxCode" @change="change">
<el-row>
<el-col :span="2" v-for="
item in checkBoxItem.puporpux
" :key="item">
<el-col :span="2" v-for="
item in checkBoxItem.puporpux
" :key="item">
<el-checkbox
v-if="item.status === 1 || val.puporpuxCode.includes(item.chineseName)"
:label="item.chineseName" :name="item.chineseName"
...
...
@@ -483,7 +483,7 @@
<el-card shadow="never" style="width: 95%">
<el-checkbox-group v-model="val.serviceCode" @change="change">
<el-row>
<el-col v-for="
item in checkBoxItem.serviceCode
" :span="2" :key="item.id">
<el-col v-for="
item in checkBoxItem.serviceCode
" :span="2" :key="item.id">
<el-checkbox
v-if="item.status === 1 || val.serviceCode.includes(item.chineseName)"
:label="item.chineseName" :name="item.chineseName"
...
...
@@ -502,7 +502,8 @@
<el-form-item label="Handling Code">
<el-card shadow="never" style="width: 95%">
<el-checkbox-group v-model="val.handlingCode" @change="change">
<div class="checkboxItem" v-for="item in checkBoxItem.handlingCode" :key="item.id">
<div class="checkboxItem" v-for=" item in checkBoxItem.handlingCode "
:key="item.id">
<el-checkbox
v-if="item.status === 1 || val.handlingCode.includes(item.chineseName)"
:label="item.chineseName" :name="item.chineseName"
...
...
@@ -520,7 +521,8 @@
<el-form-item label="Sub Category">
<el-card shadow="never" style="width: 95%">
<el-checkbox-group v-model="val.subCategory" @change="change">
<div class="checkboxItem" v-for="item in checkBoxItem.subCategory" :key="item.id">
<div class="checkboxItem" v-for=" item in checkBoxItem.subCategory "
:key="item.id">
<el-checkbox
v-if="item.status === 1 || val.subCategory.includes(item.chineseName)"
:label="item.chineseName" :name="item.chineseName"
...
...
@@ -716,8 +718,11 @@ export default {
this.infoForm.list.push(this.dataHandle(item))
})
} else {
let arr = this.$route.params.route.split(';')
this.infoRouteList = arr
//航班类型为Purple Tail则显示所有航线维度
this.routeList.forEach((route, sub) => {
if (arr.includes(route.route)) {
let routeStatus = 1
res.data.list.forEach(item => {
if (route.route === item.flightRoute) {
...
...
@@ -736,6 +741,7 @@ export default {
})
this.newRoute(sub, route.route)
}
}
})
}
} else {
...
...
@@ -972,8 +978,11 @@ export default {
this.infoForm.list.push(this.dataHandle(item))
})
} else {
let arr = this.$route.params.route.split(';')
this.infoRouteList = arr
//航班类型Purple Tail展示全部航线维度
this.routeList.forEach(route => {
if (arr.includes(route.route)) {
let routesStatus = 1
response.data.list.forEach(item => {
let obj = JSON.parse(JSON.stringify(item))
...
...
@@ -994,6 +1003,7 @@ export default {
routePriority: route.routePriority,
})
}
}
})
}
} else {
...
...
Please
register
or
login
to post a comment