|
@@ -1,13 +1,29 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="user-list">
|
|
<div class="user-list">
|
|
|
|
|
+
|
|
|
|
|
+ <div class="mb-20 flex-justify-space baC-fff sys-radius-10 box-sizing-border pd-15-10">
|
|
|
|
|
+ <div class="align-items-center">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ class="input-w-200 mr-10"
|
|
|
|
|
+ placeholder="请输入查询关键词"
|
|
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
|
|
+ v-model="fromData.search">
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ <el-button type="primary" @click="searchFun()">查询</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="">
|
|
|
|
|
+ <el-button type="success" @click="add()">新增</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
<div class="mb-30">
|
|
<div class="mb-30">
|
|
|
<el-table :data="list" stripe >
|
|
<el-table :data="list" stripe >
|
|
|
<el-table-column fixed prop="id" label="ID"></el-table-column>
|
|
<el-table-column fixed prop="id" label="ID"></el-table-column>
|
|
|
<el-table-column fixed prop="name" label="姓名"></el-table-column>
|
|
<el-table-column fixed prop="name" label="姓名"></el-table-column>
|
|
|
- <el-table-column prop="id_number" label="身份证号"></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column prop="id_number" label="身份证号" width="220"></el-table-column>
|
|
|
<el-table-column prop="phone" label="电话"></el-table-column>
|
|
<el-table-column prop="phone" label="电话"></el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column prop="psnId" label="e签宝id"></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column prop="psnId" label="e签宝id" width="320"></el-table-column>
|
|
|
<el-table-column prop="realnameStatus" label="是否实名">
|
|
<el-table-column prop="realnameStatus" label="是否实名">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-tag v-if="scope.row.realnameStatus == 1" type="success">已实名</el-tag>
|
|
<el-tag v-if="scope.row.realnameStatus == 1" type="success">已实名</el-tag>
|
|
@@ -21,6 +37,11 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="created_at" label="创建时间"></el-table-column>
|
|
<el-table-column prop="created_at" label="创建时间"></el-table-column>
|
|
|
|
|
+ <el-table-column fixed='right' prop="" label="编辑">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button type="warning" @click="edit(scope.row)">编辑</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -29,7 +50,7 @@
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
background
|
|
background
|
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
|
- :current-page.sync="page"
|
|
|
|
|
|
|
+ :current-page.sync="fromData.page"
|
|
|
:page-size="10"
|
|
:page-size="10"
|
|
|
layout="prev, pager, next"
|
|
layout="prev, pager, next"
|
|
|
:total="total">
|
|
:total="total">
|
|
@@ -45,7 +66,10 @@
|
|
|
data(){
|
|
data(){
|
|
|
return{
|
|
return{
|
|
|
list:[],
|
|
list:[],
|
|
|
- page:1,
|
|
|
|
|
|
|
+ fromData:{
|
|
|
|
|
+ page:1,
|
|
|
|
|
+ search:'',
|
|
|
|
|
+ },
|
|
|
total:0,
|
|
total:0,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -54,7 +78,7 @@
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
getList(){
|
|
getList(){
|
|
|
- memberList({page:this.page}).then((res)=>{
|
|
|
|
|
|
|
+ memberList(this.fromData).then((res)=>{
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
this.list = res.data.items;
|
|
this.list = res.data.items;
|
|
|
this.total = res.data.total
|
|
this.total = res.data.total
|
|
@@ -65,6 +89,16 @@
|
|
|
this.page = val;
|
|
this.page = val;
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
|
|
+ searchFun(){
|
|
|
|
|
+ this.page = 1;
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ },
|
|
|
|
|
+ add(){
|
|
|
|
|
+ this.$router.push({path:'/user/add-edit'})
|
|
|
|
|
+ },
|
|
|
|
|
+ edit(item){
|
|
|
|
|
+ this.$router.push({path:'/user/add-edit',query:{id:item.id}})
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|