Commit ada868f5 authored by Marcus's avatar Marcus

Merge remote-tracking branch 'origin/release' into release

parents 6bdee46a 9ddfefc9
...@@ -153,7 +153,13 @@ export default { ...@@ -153,7 +153,13 @@ export default {
let routerList = [] let routerList = []
this.openedRouterList.forEach(router => { this.openedRouterList.forEach(router => {
if(router.transportType == item.value){ 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({ routerList.push(Object.assign({
_merge: item.cssClass == 'channel' ? availChannels.length || 1 : 1, _merge: item.cssClass == 'channel' ? availChannels.length || 1 : 1,
channel: item.cssClass == 'channel' ? availChannels[0] || { channelId: 0} : {channelId: 0}, 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