|
@@ -15,23 +15,23 @@
|
|
|
<el-input v-model="select_word" placeholder="筛选关键词" class="handle-input mr10"></el-input>
|
|
<el-input v-model="select_word" placeholder="筛选关键词" class="handle-input mr10"></el-input>
|
|
|
<el-button type="primary" icon="search" @click="search">搜索</el-button>
|
|
<el-button type="primary" icon="search" @click="search">搜索</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
- <el-table :data="data" border style="width: 100%" ref="multipleTable" @selection-change="handleSelectionChange">
|
|
|
|
|
- <el-table-column type="selection" width="55"></el-table-column>
|
|
|
|
|
|
|
+ <el-table :data="data" border class="table" ref="multipleTable" @selection-change="handleSelectionChange">
|
|
|
|
|
+ <el-table-column type="selection" width="55" align="center"></el-table-column>
|
|
|
<el-table-column prop="date" label="日期" sortable width="150">
|
|
<el-table-column prop="date" label="日期" sortable width="150">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="name" label="姓名" width="120">
|
|
<el-table-column prop="name" label="姓名" width="120">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="address" label="地址" :formatter="formatter">
|
|
<el-table-column prop="address" label="地址" :formatter="formatter">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="180">
|
|
|
|
|
|
|
+ <el-table-column label="操作" width="180" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="small" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
|
|
- <el-button size="small" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
|
|
|
|
|
|
+ <el-button type="text" icon="el-icon-edit" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
|
|
+ <el-button type="text" icon="el-icon-delete" class="red" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<div class="pagination">
|
|
<div class="pagination">
|
|
|
- <el-pagination @current-change="handleCurrentChange" layout="prev, pager, next" :total="1000">
|
|
|
|
|
|
|
+ <el-pagination background @current-change="handleCurrentChange" layout="prev, pager, next" :total="1000">
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -202,4 +202,11 @@
|
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
|
text-align: center
|
|
text-align: center
|
|
|
}
|
|
}
|
|
|
|
|
+ .table{
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .red{
|
|
|
|
|
+ color: #ff0000;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|