<template>
  <div class="app-container">
    <div class="box-container">
      <div class="contain-title">发布中内容列表</div>
      <div class="contain-search">
        <el-input placeholder="搜索内容标题" v-model="searchText" class="input-with-select">
          <el-button slot="append" icon="el-icon-search"></el-button>
        </el-input>
      </div>
      <div class="contian-operate">
        <el-button type="primary">发布内容</el-button>
      </div>
    </div>
    <div class="content-container">
      <div class="contain-select">
        <span>栏目分类：</span>
        <el-select v-model="selectMode" placeholder="选择分类">
          <el-option label="餐厅名" value="1"></el-option>
          <el-option label="订单号" value="2"></el-option>
          <el-option label="用户电话" value="3"></el-option>
        </el-select>
      </div>
      <complex-table :tableData="tableData" :tableItem="tableItem"></complex-table>
    </div>
  </div>
</template>

<script>
import complexTable from '@/components/complexTable'
export default {
  data() {
    return {
      searchText: '',
      selectMode: '',
      tableData: [
        {
          date: '2018/08/25 16:32',
          name: '关于征集企业技术创新需求的通知',
          class: '通知公告',
          owner: '张贝贝',
          num: '4552'
        }, {
          date: '2018/08/25 16:32',
          name: '关于征集企业技术创新需求的通知',
          class: '通知公告',
          owner: '张贝贝',
          num: '4552'
        }, {
          date: '2018/08/25 16:32',
          name: '关于征集企业技术创新需求的通知',
          class: '通知公告',
          owner: '张贝贝',
          num: '4552'
        }, {
          date: '2018/08/25 16:32',
          name: '关于征集企业技术创新需求的通知',
          class: '通知公告',
          owner: '张贝贝',
          num: '4552'
        }
      ],
      tableItem: [
        {
          prop: 'name',
          tit: '标题'
        },
        {
          prop: 'class',
          tit: '栏目分类',
          width: '160'
        },
        {
          prop: 'owner',
          tit: '发布人',
          width: '160'
        },
        {
          prop: 'date',
          tit: '发布时间',
          width: '160'
        },
        {
          prop: 'num',
          tit: '浏览数量',
          width: '160'
        },
        {
          operate: 'edit',
          width: '200'
        }
      ]
    }
  },
  components: {
    complexTable
  },
  methods: {
  }
}
</script>