Commit 131c4bcd authored by neogcg's avatar neogcg

用户操作日志

parent 0daf602a
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
<el-table <el-table
:data="tableData" :data="tableData"
style="width: 100%" style="width: 100%"
class="statistics-table"
:row-class-name="tableRowClassName"
:header-cell-style="{ background: '#EAF1FE', color: '#666666' }" :header-cell-style="{ background: '#EAF1FE', color: '#666666' }"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
...@@ -124,6 +126,9 @@ export default { ...@@ -124,6 +126,9 @@ export default {
this.searchForm.pageSize = pageData.size; this.searchForm.pageSize = pageData.size;
this.searchForm.pageNum = pageData.page; this.searchForm.pageNum = pageData.page;
}, },
tableRowClassName({ row, rowIndex }) {
return rowIndex % 2 === 0 ? '' : 'single-row'
},
}, },
mounted() {}, mounted() {},
}; };
...@@ -150,3 +155,13 @@ export default { ...@@ -150,3 +155,13 @@ export default {
} }
} }
</style> </style>
<style lang="scss">
.statistics-table {
.single-row {
background: #f1f6ff;
}
td {
padding: 5px !important;
}
}
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment