提交 1ae86420 authored 作者: matian's avatar matian

BP渠道新增渠道类型筛选条件

上级 c8ca2939
......@@ -11,6 +11,7 @@ export function getChannelList(params: {
channel_id?: string
tags?: string
company_short_name?: string
channel_type?: string
['per-page']: string
page?: string
}) {
......
......@@ -3,7 +3,9 @@ import shortcuts from '@/utils/shortcut'
import { getConditionList, getChannelList } from '../api'
const appList = ref()
const tagsList = ref([])
const channelTypeList: any = ref([])
getConditionList({ channel: true }).then(res => {
channelTypeList.value = res.data.channel.channel_type
tagsList.value = res.data.channel.tags.reduce((t: any, cur: any) => {
t.push({ id: res.data.channel.tags.indexOf(cur), name: cur })
return t
......@@ -30,7 +32,8 @@ const listOptions = $computed(() => {
title: '',
channel_id: '',
tags: '',
company_short_name: ''
company_short_name: '',
channel_type: ''
}
},
filters: [
......@@ -50,6 +53,14 @@ const listOptions = $computed(() => {
prop: 'channel_id',
placeholder: '渠道编号'
},
{
type: 'select',
prop: 'channel_type',
placeholder: '渠道类型',
options: channelTypeList.value,
labelKey: 'name',
valueKey: 'id'
},
{
type: 'select',
prop: 'tags',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论