From 7727f8746e80b6e3e6abf7df5f90fd48f1ebc3dd Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sun, 07 Apr 2024 15:12:11 +0800
Subject: [PATCH] new
---
src/views/userlist/components/audituserdialog.vue | 54 ++++++++++++++++++++++++++++++------------------------
1 files changed, 30 insertions(+), 24 deletions(-)
diff --git a/src/views/userlist/components/audituserdialog.vue b/src/views/userlist/components/audituserdialog.vue
index e20506f..5265fe9 100644
--- a/src/views/userlist/components/audituserdialog.vue
+++ b/src/views/userlist/components/audituserdialog.vue
@@ -15,18 +15,18 @@
currentDetails.isActive == 0 || currentDetails.isActive == 1
? 'blue'
: currentDetails.isActive == 2
- ? 'green'
- : 'red'
+ ? 'green'
+ : 'red'
"
>
{{
currentDetails.isActive == 0
? '待认证'
: currentDetails.isActive == 1
- ? '待审核'
- : currentDetails.isActive == 2
- ? '认证成功'
- : '驳回'
+ ? '待审核'
+ : currentDetails.isActive == 2
+ ? '认证成功'
+ : '驳回'
}}
</a-tag>
</a-descriptions-item>
@@ -36,9 +36,9 @@
<a-descriptions-item label="身份证号码">
{{ currentDetails.idCard ? currentDetails.idCard : '--' }}
</a-descriptions-item>
- <a-descriptions-item label="身份证号码1">
+ <!-- <a-descriptions-item label="身份证号码1">
{{ currentDetails.vaildNumber ? currentDetails.vaildNumber : '--' }}
- </a-descriptions-item>
+ </a-descriptions-item> -->
<a-descriptions-item label="注册ip">
{{ currentDetails.regIp ? currentDetails.regIp : '--' }}
</a-descriptions-item>
@@ -48,14 +48,18 @@
<a-descriptions-item label="注册时间">
{{ currentDetails.regTime | moment }}
</a-descriptions-item>
- <!-- <a-descriptions-item label="身份证正面">
- <img :src="currentDetails.img2Key" alt="" style="width:140px;height: 70px;">
+ <a-descriptions-item label="身份证正面1">
+ <el-image style="width: 140px; height: 70px" :src="currentDetails.img1Key" :preview-src-list="srcList1">
+ </el-image>
+ <!-- style="width: 140px; height: 70px" -->
+ <!-- <img alt="" style="width: 140px; height: 70px" /> -->
</a-descriptions-item>
<a-descriptions-item label="身份证背面">
- <img :src="currentDetails.img1Key" alt="" style="width:140px;height: 70px;">
+ <el-image style="width: 140px; height: 70px" :src="currentDetails.img2Key" :preview-src-list="srcList2">
+ </el-image>
</a-descriptions-item>
- <a-descriptions-item label="手持身份证">
- <img :src="currentDetails.img3Key" alt="" style="width:140px;height: 70px;">
+ <!-- <a-descriptions-item label="手持身份证">
+ <img :src="currentDetails.img3Key" alt="" style="width: 140px; height: 70px" />
</a-descriptions-item> -->
</a-descriptions>
<div style="margin-top: 20px; display: flex; justify-content: center">
@@ -96,23 +100,25 @@
components: {},
props: {
currentDetails: {
- type: Object
+ type: Object,
},
getinit: {
type: Function,
- default: function () {}
- }
+ default: function () {},
+ },
},
- data () {
+ data() {
return {
userDialog: false,
bohuidialog: false,
bohuidialogloading: false,
- bohuiform: this.$form.createForm(this)
+ bohuiform: this.$form.createForm(this),
+ srcList1: [this.currentDetails.img1Key],
+ srcList2: [this.currentDetails.img2Key],
}
},
methods: {
- Okbohuidialog () {
+ Okbohuidialog() {
const form = this.$refs.bohuiform.form
form.validateFields((errors, values) => {
if (!errors) {
@@ -133,15 +139,15 @@
}
})
},
- Cancelbohuidialog () {
+ Cancelbohuidialog() {
this.bohuidialog = false
const form = this.$refs.bohuiform.form
form.resetFields()
},
- gettongguo (val) {
+ gettongguo(val) {
var data = {
userId: this.currentDetails.id,
- state: val
+ state: val,
}
userauthByAdmin(data).then((res) => {
if (res.status == 0) {
@@ -152,7 +158,7 @@
}
this.userDialog = false
})
- }
- }
+ },
+ },
}
</script>
--
Gitblit v1.9.3