Commit 80159696 by 王志慧

commit

1 parent 390ac79e
......@@ -13,7 +13,7 @@
</div>
<div slot="channelHtml">
<el-checkbox-group v-model="editForm.channelIds" @change="handleCheckedChannelChange">
<el-checkbox v-for="channel in channelList" :label="channel.id" :key="channel.id">{{ channel.name }}</el-checkbox>
<el-checkbox v-for="channel in channelList" :label="channel.channelType" :key="channel.channelType">{{ channel.channelName }}</el-checkbox>
</el-checkbox-group>
</div>
</glsx-combi-form>
......@@ -38,8 +38,8 @@ export default {
merchantId: this.$route.query.merchantId ? this.$route.query.merchantId : '',
editForm: {
channelIds: [],
merchantId:'',
merchantName:''
merchantId: '',
merchantName: ''
},
merchantFlag: false,
editFormData: [
......@@ -55,12 +55,7 @@ export default {
}
],
selectedList: [],
channelList: [
{ name: '新车专区', id: 1 },
{ name: '膜类专区', id: 2 },
{ name: '限时众筹', id: 3 },
{ name: '定保专区', id: 4 }
],
channelList: [],
relateStoreVisible: false, // 选择门店
editRule: {
channelIds: [{ required: true, message: '请选择频道名称', trigger: 'change' }]
......@@ -68,16 +63,29 @@ export default {
}
},
mounted() {
this.getChannelList()
if (this.merchantId) {
this.getconfigMerchant()
this.getMerchantData()
}
},
methods: {
//获取频道名称
getChannelList() {
this.$apis.channel
.getChannelListApi({
pageSize: 100,
pageNum: 1
})
.then(res => {
this.channelList = res.list
})
},
getMerchantData() {
var params = {
merchantId: this.merchantId,
pageSize: 10,
pageSize: 100,
currentPage: 1
}
......@@ -143,7 +151,7 @@ export default {
}
}
</script>
<style scoped lang='scss'>
<style scoped lang="scss">
.add-wrap {
.container {
min-height: 680px;
......@@ -190,4 +198,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!