Commit 791a2e42 authored by dragondean@qq.com's avatar dragondean@qq.com

修复切换运输方式后路线清理不彻底

parent da9d5f6f
...@@ -1380,9 +1380,15 @@ export default { ...@@ -1380,9 +1380,15 @@ export default {
} }
// 始发,目的和运输方式都没有的时候不获取 // 始发,目的和运输方式都没有的时候不获取
if(!params.startCityId && !params.destCityId && !params.transportType) return false if(!params.startCityId && !params.destCityId && !params.transportType) return false
getOpenedRouterList(params).then(res => this.routerList = res.data.filter(item => { getOpenedRouterList(params).then(res => {
return this.exportCityIds.indexOf(item.startCityId) > -1 && this.importCityIds.indexOf(item.destCityId) > -1 this.routerList = res.data.filter(item => {
})) return this.exportCityIds.indexOf(item.startCityId) > -1 && this.importCityIds.indexOf(item.destCityId) > -1
})
// 如果已选择的线路ID不在上述路线列表里则重置
if(this.form.lineId && !this.routerList.find(item => item.id == this.form.lineId)) {
this.$set(this.form, 'lineId', null)
}
})
}, 100, false)() }, 100, false)()
}, },
// 计算体积 // 计算体积
......
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