| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <template>
- <div class="system3">
- <TabList :ind='3'/>
- <div class="right">
- <div class="top">
- <el-breadcrumb separator="/">
- <el-breadcrumb-item to="">首页</el-breadcrumb-item>
- <el-breadcrumb-item to="">系统管理</el-breadcrumb-item>
- <el-breadcrumb-item id="mytitle">系统日志</el-breadcrumb-item>
- </el-breadcrumb>
- </div>
- <div class="conten">
- <div class="middle">
- <div class="select">
- <span>操作:</span>
- <el-input
- v-model="operation"
- placeholder="请输入"
- style="width: 217px"
- ></el-input>
- <el-button style="margin-left: 20px">查询</el-button>
- </div>
- <!--表格 -->
- <div class="table">
- <el-table
- :header-cell-style="{ background: '#eef1f6', color: '#606266' }"
- :data="tableData"
- border
- style="width: 100%"
- >
- <el-table-column prop="date" label="账号" width="200">
- </el-table-column>
- <el-table-column prop="name" label="操作模块" width="300">
- </el-table-column>
- <el-table-column prop="address" label="事件">
- </el-table-column>
- <el-table-column prop="name" label="操作时间" width="300">
- </el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import TabList from '@/components/tabLeft4.vue'
- export default {
- name: 'system3',
- // import引入的组件需要注入到对象中才能使用
- components: { TabList },
- data () {
- // 这里存放数据
- return {
- operation: '',
- // 表格数据
- tableData: [
- {
- date: '2016-05-03',
- name: '王小虎',
- address: '上海市普陀区金沙江路 1518 弄'
- },
- {
- date: '2016-05-02',
- name: '王小虎',
- address: '上海市普陀区金沙江路 1518 弄'
- }
- ]
- }
- },
- // 监听属性 类似于data概念
- computed: {},
- // 监控data中的数据变化
- watch: {},
- // 方法集合
- methods: {
- },
- // 生命周期 - 创建完成(可以访问当前this实例)
- created () {},
- // 生命周期 - 挂载完成(可以访问DOM元素)
- mounted () {},
- beforeCreate () {}, // 生命周期 - 创建之前
- beforeMount () {}, // 生命周期 - 挂载之前
- beforeUpdate () {}, // 生命周期 - 更新之前
- updated () {}, // 生命周期 - 更新之后
- beforeDestroy () {}, // 生命周期 - 销毁之前
- destroyed () {}, // 生命周期 - 销毁完成
- activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
- }
- </script>
- <style lang='less' scoped>
- //@import url(); 引入公共css类
- .system3 {
- /deep/#mytitle>span{
- font-weight: 800;
- }
- display: flex;
- .right {
- width: 100%;
- display: flex;
- flex-direction: column;
- .top {
- padding-left: 35px;
- display: flex;
- align-items: center;
- box-shadow: 1px 1px 10px 1px;
- margin-left: 2px;
- height: 40px;
- background-color: #fff;
- }
- }
- .conten {
- flex: 1;
- background-color: #fff;
- margin: 20px 20px 40px;
- .middle {
- width: 100%;
- height: 100%;
- background-color: #fff;
- .select {
- color: black;
- padding: 30px 0 0 0;
- & > span {
- margin-left: 30px;
- }
- }
- .table {
- max-height: 640px;
- overflow: auto;
- padding: 24px;
- }
- }
- }
- }
- </style>
|