<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>
    <div class="content-container">
      <complex-table :tableData="tableData" :tableItem="tableItem"></complex-table>
      <span @click="queryInfo">用户信息</span>
      <span @click="pullBlackFun">拉黑</span>
    </div>
    <baseInfo ref="baseInfo"></baseInfo>
    <pullBlack ref="pullBlack"></pullBlack>
  </div>
</template>

<script>
import complexTable from '@/components/complexTable'
import baseInfo from './baseInfo'
import pullBlack from './pullBlack'
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,
    baseInfo,
    pullBlack
  },
  methods: {
    queryInfo() {
      this.$refs.baseInfo.userDialogVisible = true
    },
    pullBlackFun() {
      this.$refs.pullBlack.userDialogVisible = true
    }
  }
}
</script>