system3.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <div class="system3">
  3. <TabList :ind='3'/>
  4. <div class="right">
  5. <div class="top">
  6. <el-breadcrumb separator="/">
  7. <el-breadcrumb-item to="">首页</el-breadcrumb-item>
  8. <el-breadcrumb-item to="">系统管理</el-breadcrumb-item>
  9. <el-breadcrumb-item id="mytitle">系统日志</el-breadcrumb-item>
  10. </el-breadcrumb>
  11. </div>
  12. <div class="conten">
  13. <div class="middle">
  14. <div class="select">
  15. <span>操作:</span>
  16. <el-input
  17. v-model="operation"
  18. placeholder="请输入"
  19. style="width: 217px"
  20. ></el-input>
  21. <el-button style="margin-left: 20px">查询</el-button>
  22. </div>
  23. <!--表格 -->
  24. <div class="table">
  25. <el-table
  26. :header-cell-style="{ background: '#eef1f6', color: '#606266' }"
  27. :data="tableData"
  28. border
  29. style="width: 100%"
  30. >
  31. <el-table-column prop="date" label="账号" width="200">
  32. </el-table-column>
  33. <el-table-column prop="name" label="操作模块" width="300">
  34. </el-table-column>
  35. <el-table-column prop="address" label="事件">
  36. </el-table-column>
  37. <el-table-column prop="name" label="操作时间" width="300">
  38. </el-table-column>
  39. </el-table>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </template>
  46. <script>
  47. import TabList from '@/components/tabLeft4.vue'
  48. export default {
  49. name: 'system3',
  50. // import引入的组件需要注入到对象中才能使用
  51. components: { TabList },
  52. data () {
  53. // 这里存放数据
  54. return {
  55. operation: '',
  56. // 表格数据
  57. tableData: [
  58. {
  59. date: '2016-05-03',
  60. name: '王小虎',
  61. address: '上海市普陀区金沙江路 1518 弄'
  62. },
  63. {
  64. date: '2016-05-02',
  65. name: '王小虎',
  66. address: '上海市普陀区金沙江路 1518 弄'
  67. }
  68. ]
  69. }
  70. },
  71. // 监听属性 类似于data概念
  72. computed: {},
  73. // 监控data中的数据变化
  74. watch: {},
  75. // 方法集合
  76. methods: {
  77. },
  78. // 生命周期 - 创建完成(可以访问当前this实例)
  79. created () {},
  80. // 生命周期 - 挂载完成(可以访问DOM元素)
  81. mounted () {},
  82. beforeCreate () {}, // 生命周期 - 创建之前
  83. beforeMount () {}, // 生命周期 - 挂载之前
  84. beforeUpdate () {}, // 生命周期 - 更新之前
  85. updated () {}, // 生命周期 - 更新之后
  86. beforeDestroy () {}, // 生命周期 - 销毁之前
  87. destroyed () {}, // 生命周期 - 销毁完成
  88. activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
  89. }
  90. </script>
  91. <style lang='less' scoped>
  92. //@import url(); 引入公共css类
  93. .system3 {
  94. /deep/#mytitle>span{
  95. font-weight: 800;
  96. }
  97. display: flex;
  98. .right {
  99. width: 100%;
  100. display: flex;
  101. flex-direction: column;
  102. .top {
  103. padding-left: 35px;
  104. display: flex;
  105. align-items: center;
  106. box-shadow: 1px 1px 10px 1px;
  107. margin-left: 2px;
  108. height: 40px;
  109. background-color: #fff;
  110. }
  111. }
  112. .conten {
  113. flex: 1;
  114. background-color: #fff;
  115. margin: 20px 20px 40px;
  116. .middle {
  117. width: 100%;
  118. height: 100%;
  119. background-color: #fff;
  120. .select {
  121. color: black;
  122. padding: 30px 0 0 0;
  123. & > span {
  124. margin-left: 30px;
  125. }
  126. }
  127. .table {
  128. max-height: 640px;
  129. overflow: auto;
  130. padding: 24px;
  131. }
  132. }
  133. }
  134. }
  135. </style>