From be4b78efe1a9609d330ed48ced1317c7849be70b Mon Sep 17 00:00:00 2001 From: lin-xin <2981207131@qq.com> Date: Tue, 13 Jun 2017 17:34:26 +0800 Subject: [PATCH] add screen for table --- src/components/page/BaseTable.vue | 40 +++++++++++++++++++++++++++---- static/css/main.css | 4 +--- 2 files changed, 37 insertions(+), 7 deletions(-) diff --git a/src/components/page/BaseTable.vue b/src/components/page/BaseTable.vue index b84761f..d0c7e9e 100644 --- a/src/components/page/BaseTable.vue +++ b/src/components/page/BaseTable.vue @@ -6,8 +6,17 @@ 基础表格 - - +
+ 批量删除 + + + + + + 搜索 +
+ + @@ -39,7 +48,10 @@ return { url: '../../../static/vuetable.json', tableData: [], - cur_page: 1 + cur_page: 1, + multipleSelection: [], + select_cate: '', + select_word: '' } }, created(){ @@ -70,7 +82,27 @@ }, handleDelete(index, row) { this.$message.error('删除第'+(index+1)+'行'); + }, + handleSelectionChange: function(val) { + this.multipleSelection = val; } } } - \ No newline at end of file + + + \ No newline at end of file diff --git a/static/css/main.css b/static/css/main.css index da4e50c..5b739a8 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -34,9 +34,7 @@ a{text-decoration: none} .el-button+.el-tooltip { margin-left: 10px; } -.el-table td,.el-table th{ - padding:5px 18px; -} + .el-table tr:hover{ background: #f6faff; }