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

提代码

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