Commit cf072214 authored by qddidi's avatar qddidi

Update table.vue

parent 8779e9d6
...@@ -20,7 +20,13 @@ ...@@ -20,7 +20,13 @@
<el-table <el-table
:data="tableData" :data="tableData"
style="width: 100%" style="width: 100%"
@selection-change="handleSelectionChange"
tooltip-effect="dark"
> >
<el-table-column
type="selection"
width="55">
</el-table-column>
<el-table-column <el-table-column
prop="idcard" prop="idcard"
label="身份证号" label="身份证号"
...@@ -90,6 +96,8 @@ ...@@ -90,6 +96,8 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="bottom">
<kt-button class="check" icon="el-icon-delete" label="删除已选" perms="sys:user:add" type="primary" />
<el-pagination <el-pagination
class="pone" class="pone"
:page-size='10' :page-size='10'
...@@ -103,6 +111,7 @@ ...@@ -103,6 +111,7 @@
</el-pagination> </el-pagination>
</div> </div>
</div>
</template> </template>
<style> <style>
...@@ -126,8 +135,16 @@ ...@@ -126,8 +135,16 @@
.el-table .success-row { .el-table .success-row {
background: #f0f9eb; background: #f0f9eb;
} }
.bottom{
margin-top: 40px;
overflow: hidden;
}
.pone{ .pone{
margin-top: 40px margin-left: 250px;
float: left;
}
.check{
float: left;
} }
</style> </style>
...@@ -135,9 +152,11 @@ ...@@ -135,9 +152,11 @@
import CryptoJS from 'crypto-js' import CryptoJS from 'crypto-js'
import { Loading } from 'element-ui'; import { Loading } from 'element-ui';
import Candode from "../Core/candode" import Candode from "../Core/candode"
import KtButton from "@/views/Core/KtButton"
// import baseUrl from "../../globe/globeUrl" // import baseUrl from "../../globe/globeUrl"
export default { export default {
components:{ components:{
KtButton,
Candode Candode
}, },
data() { data() {
...@@ -151,10 +170,14 @@ ...@@ -151,10 +170,14 @@
ywtype:"", ywtype:"",
info:'', info:'',
pageSize:10, pageSize:10,
tableData: [] tableData: [],
multipleSelection: []
} }
}, },
methods: { methods: {
handleSelectionChange(val){
this.multipleSelection=val
},
handleSizeChange(val){ handleSizeChange(val){
this.pageSize=val this.pageSize=val
this.serchh(this.Page) this.serchh(this.Page)
......
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