index.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="top">
  6. <topInfo :topTitle="topTitle"></topInfo>
  7. </el-col>
  8. <el-col :span="24" class="search">
  9. <searchInfo></searchInfo>
  10. </el-col>
  11. <el-col :span="24" class="main">
  12. <reportData :tableData="tableData"></reportData>
  13. </el-col>
  14. </el-col>
  15. </el-row>
  16. </div>
  17. </template>
  18. <script>
  19. import topInfo from '@/layout/public/top.vue';
  20. import searchInfo from '@/layout/report/searchInfo.vue';
  21. import reportData from '@/layout/report/reportData.vue';
  22. export default {
  23. name: 'index',
  24. props: {},
  25. components: {
  26. topInfo, //头部标题
  27. searchInfo, //搜索
  28. reportData, //新闻信息列表
  29. },
  30. data: () => ({
  31. topTitle: '上报通知管理',
  32. tableData: [
  33. {
  34. title: '标题',
  35. url: 'www.baidu.com',
  36. startDate: '2019-01-14',
  37. endDate: '2019-01-14',
  38. content: '简述',
  39. state: '开启',
  40. },
  41. ],
  42. }),
  43. created() {},
  44. computed: {},
  45. methods: {},
  46. };
  47. </script>
  48. <style lang="less" scoped>
  49. .top {
  50. height: 40px;
  51. background-color: #f5f5f5;
  52. }
  53. .search {
  54. height: 40px;
  55. line-height: 40px;
  56. padding: 0 15px;
  57. }
  58. .main {
  59. width: 97%;
  60. margin: 0 15px;
  61. }
  62. </style>