index.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. <mainData :tableData="tableData"></mainData>
  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/news/searchInfo.vue';
  21. import mainData from '@/layout/news/mainData.vue';
  22. export default {
  23. name: 'index',
  24. props: {},
  25. components: {
  26. topInfo, //头部标题
  27. searchInfo, //搜索
  28. mainData, //新闻信息列表
  29. },
  30. data: () => ({
  31. topTitle: '政策解读',
  32. tableData: [
  33. {
  34. name: '测试人员',
  35. title: '国内外参展商和广大客户的广泛好评。尤其是参展的“太阳能无线充电移动电源”、“超声波智能水槽',
  36. date: '2019-01-13',
  37. state: '不需审核',
  38. },
  39. {
  40. name: '测试人员',
  41. title: '十条数据',
  42. date: '2019-01-13',
  43. state: '不需审核',
  44. },
  45. ],
  46. }),
  47. created() {},
  48. computed: {},
  49. methods: {},
  50. };
  51. </script>
  52. <style lang="less" scoped>
  53. .top {
  54. height: 40px;
  55. background-color: #f5f5f5;
  56. }
  57. .search {
  58. height: 40px;
  59. line-height: 40px;
  60. padding: 0 15px;
  61. }
  62. .main {
  63. width: 97%;
  64. margin: 0 15px;
  65. }
  66. </style>