<template>
  <table-template :soul="this"> </table-template>
</template>
<script>
import { TableTemplate, TableScript, SearchType } from '@/components/table'
import { getPage } from '@/api/promote'

const columns = [
  {
    title: '用户名',
    width: 150,
    dataIndex: 'userName',
    filter: { type: SearchType.STRING }
  },
  {
    title: '推广数量',
    width: 150,
    dataIndex: 'count'
  },
  { title: ' ', dataIndex: 'x' }
]

export default {
  name: 'PromotionList',
  mixins: [TableScript],
  components: { TableTemplate },
  data() {
    return {
      columns,
      useYScroll: true,
      title: '推广统计'
    }
  },
  methods: {
    queryData: getPage
  }
}
</script>