mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
用户列表中显示实名审核状态
This commit is contained in:
@@ -65,6 +65,13 @@ func (this *IndexAction) RunGet(params struct {
|
||||
}
|
||||
}
|
||||
|
||||
isSubmittedResp, err := this.RPC().UserIdentityRPC().CheckUserIdentityIsSubmitted(this.AdminContext(), &pb.CheckUserIdentityIsSubmittedRequest{UserId: user.Id})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
var identityIsSubmitted = isSubmittedResp.IsSubmitted
|
||||
|
||||
userMaps = append(userMaps, maps.Map{
|
||||
"id": user.Id,
|
||||
"username": user.Username,
|
||||
@@ -78,6 +85,7 @@ func (this *IndexAction) RunGet(params struct {
|
||||
"registeredIP": user.RegisteredIP,
|
||||
"isVerified": user.IsVerified,
|
||||
"isRejected": user.IsRejected,
|
||||
"identityIsSubmitted": identityIsSubmitted,
|
||||
})
|
||||
}
|
||||
this.Data["users"] = userMaps
|
||||
|
||||
@@ -41,10 +41,13 @@
|
||||
<keyword :v-word="keyword">{{user.username}}</keyword>
|
||||
</a>
|
||||
<div v-if="!user.isVerified">
|
||||
<grey-label color="red">未审核</grey-label>
|
||||
<a :href="'/users/user?userId=' + user.id"><grey-label color="red"><i class="icon info circle"></i>信息未审核</grey-label></a>
|
||||
</div>
|
||||
<div v-if="user.isRejected">
|
||||
<grey-label color="red">已拒绝</grey-label>
|
||||
<grey-label color="red"><i class="icon info circle"></i>信息已拒绝</grey-label>
|
||||
</div>
|
||||
<div v-if="user.identityIsSubmitted">
|
||||
<a :href="'/users/identity?userId=' + user.id"><grey-label color="red"><i class="icon address card"></i>实名未审核</grey-label></a>
|
||||
</div>
|
||||
</td>
|
||||
<td :class="{disabled:!user.isOn}">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<td>状态</td>
|
||||
<td>
|
||||
<span v-if="!user.isVerified" class="red">
|
||||
未审核 <a href="" @click.prevent="verify">[审核]</a>
|
||||
信息未审核 <a href="" @click.prevent="verify">[审核]</a>
|
||||
</span>
|
||||
<span v-else-if="user.isRejected" class="red">已拒绝
|
||||
<a href="" @click.prevent="verify">[重新审核]</a>
|
||||
|
||||
Reference in New Issue
Block a user