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

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

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