<template>
  <el-main>
    <el-table :data="dataList">
      <el-table-column prop="id" label="id" width="140">
      </el-table-column>
      <el-table-column prop="push_state" label="状态" width="120">
      </el-table-column>
      <el-table-column prop="title" label="title">
      </el-table-column>
      <el-table-column label="time">
        <template slot-scope="scope">
          {{scope.row.push_time | fomatDate}}
        </template>
      </el-table-column>
    </el-table>
  </el-main>
</template>
<script>
export default {
  data () {
    return {
      dataList: []
    }
  },
  created () {
    this.getDataList()
  },
  methods: {
    getDataList () {
      this.axios.get('/static/getStoreNoticeListByPageAction.json').then(res => {
        if (res && res.data && res.data.data) {
          const { dataList } = res.data.data
          this.dataList = dataList
        }
      })
    }
  }
}
</script>
<style>
.el-main {
  width: 100%;
}
</style>
