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

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

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