Commit 9ddfefc9 authored by dragondean@qq.com's avatar dragondean@qq.com

路线选择 根据渠道筛选之后,不显示没有可用渠道的路线

parent 96c6d046
......@@ -153,7 +153,13 @@ export default {
let routerList = []
this.openedRouterList.forEach(router => {
if(router.transportType == item.value){
const availChannels = this.availChannelList.filter(channel => channel.countryId == router.destCountryId)
let availChannels = []
// 空运相关的,没有可用的渠道则不显示线路
if(item.cssClass === 'channel'){
availChannels = this.availChannelList.filter(channel => channel.countryId == router.destCountryId)
if(!availChannels.length) return
}
routerList.push(Object.assign({
_merge: item.cssClass == 'channel' ? availChannels.length || 1 : 1,
channel: item.cssClass == 'channel' ? availChannels[0] || { channelId: 0} : {channelId: 0},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment