Commit 0f521f96 authored by dragondean@qq.com's avatar dragondean@qq.com

路线选择起渠道跟城市挂钩

parent fd0ee3e2
......@@ -204,7 +204,8 @@ export default {
this.getOpenedRouterList()
},
importCity(){
this.getOpenedRouterList()
this.getChannelList()
this.getOpenedRouterList()
},
selectedRoutes(val){
this.$emit('input', val)
......@@ -246,7 +247,7 @@ export default {
}
},
async created(){
this.channelList = (await getChannelList()).data
this.getChannelList()
this.tradeCityList = (await getTradeCityList()).data
// 路线需要过滤失效的进出口城市,所以在程序加载后再加载路线
await this.getOpenedRouterList()
......@@ -268,6 +269,12 @@ export default {
this.inited = true
},
methods:{
async getChannelList(){
let query = {
cityId: this.importCity
}
this.channelList = (await getChannelList(query)).data
},
getAttrList(){
getProductAttrList().then(res => {
this.attrList = res.data
......
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