Commit 80159696 by 王志慧

commit

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