Commit 893ab693 authored by 刘雅文's avatar 刘雅文

提代码

parent de72075c
...@@ -114,6 +114,14 @@ export default { ...@@ -114,6 +114,14 @@ export default {
params params
}); });
}, },
//获取上架渠道
getChannel(params){
return request({
url: '/dictData/selectBydictType',
method:"get",
params
})
},
// 产品查看 // 产品查看
prod_view(params) { prod_view(params) {
return request({ return request({
......
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
placeholder="请选择" placeholder="请选择"
> >
<el-option <el-option
v-for="item in options" v-for="item in channelList"
:key="item.value" :key="item.value"
:label="item.label" :label="item.code"
:value="item.value"> :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
...@@ -241,6 +241,7 @@ export default { ...@@ -241,6 +241,7 @@ export default {
total: 0, total: 0,
channelDialog:false, channelDialog:false,
checkboxGroup1:[], checkboxGroup1:[],
channelList:[],
queryForm: { queryForm: {
current: 1, current: 1,
size: 10, size: 10,
...@@ -269,8 +270,15 @@ export default { ...@@ -269,8 +270,15 @@ export default {
}, },
mounted() { mounted() {
this.fetchData(); this.fetchData();
this.getChannelList();
}, },
methods: { methods: {
// 获取上架渠道
async getChannelList(){
const backResult=await API.getChannel({dictType:'APPNAME'});
this.channelList=backResult.result;
console.log(backResult,'哈哈哈哈哈哈哈哈哈哈哈哈');
},
onSubmit() { onSubmit() {
this.fetchData(); this.fetchData();
}, },
......
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