|
@@ -37,9 +37,10 @@
|
|
|
</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="编辑">
|
|
|
|
|
|
|
+ <el-table-column fixed='right' prop="" label="编辑" width="300">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button type="warning" icon="el-icon-edit" @click="edit(scope.row)">编辑</el-button>
|
|
<el-button type="warning" icon="el-icon-edit" @click="edit(scope.row)">编辑</el-button>
|
|
|
|
|
+ <el-button v-if="scope.row.realnameStatus != 1||scope.row.authorizeUserInfo != 1" type="primary" icon="el-icon-edit" @click="tongzhi(scope.row)">认证&授权</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -61,7 +62,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
- import {memberList} from '@/api/member.js'
|
|
|
|
|
|
|
+ import {memberList,memberNotice} from '@/api/member.js'
|
|
|
export default {
|
|
export default {
|
|
|
data(){
|
|
data(){
|
|
|
return{
|
|
return{
|
|
@@ -71,6 +72,7 @@
|
|
|
search:'',
|
|
search:'',
|
|
|
},
|
|
},
|
|
|
total:0,
|
|
total:0,
|
|
|
|
|
+ isAJAX:false,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted(){
|
|
mounted(){
|
|
@@ -99,6 +101,20 @@
|
|
|
edit(item){
|
|
edit(item){
|
|
|
this.$router.push({path:'/user/add-edit',query:{id:item.id}})
|
|
this.$router.push({path:'/user/add-edit',query:{id:item.id}})
|
|
|
},
|
|
},
|
|
|
|
|
+ tongzhi(item,i){
|
|
|
|
|
+ if(this.isAJAX){
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ this.isAJAX = true;
|
|
|
|
|
+ memberNotice({id:item.id}).then((res)=>{
|
|
|
|
|
+ this.isAJAX = false;
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ this.$message.success(res.msg);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.$message.error(res.msg);
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|