From fccff63fbbf854ec3ae8dad9418ca985b067908e Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Wed, 21 Feb 2024 09:08:18 +0800
Subject: [PATCH] 交易登记身份证号显示隐藏

---
 src/views/publicSecurity/positionManage/TransactRegist.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/views/publicSecurity/positionManage/TransactRegist.vue b/src/views/publicSecurity/positionManage/TransactRegist.vue
index f4ff966..1dd7904 100644
--- a/src/views/publicSecurity/positionManage/TransactRegist.vue
+++ b/src/views/publicSecurity/positionManage/TransactRegist.vue
@@ -39,6 +39,11 @@
                     v-text="textDispose(row, 'transactionObjectTelflag', 'transactionObjectTel')">
                 </el-button>
             </template>
+            <template slot-scope="{row, size}" slot="idCard">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'idCardflag')"
+                    v-text="textDispose(row, 'idCardflag', 'idCard')">
+                </el-button>
+            </template>
         </avue-crud>
 
 
@@ -257,7 +262,7 @@
                         slot: true
                     },
                     {
-                        width: 110,
+                        width: 160,
                         span: 12,
                         label: "身份证号",
                         prop: "idCard",
@@ -436,7 +441,7 @@
                 if (row[flag] || row[type] == null) {
                     return row[type]
                 } else {
-                    if (type == 'principalIdCard') {
+                    if (type == 'idCardflag') {
                         return row[type].replace(/^(.{6})(?:\d+)(.{4})$/, "$1******$2")
                     } else {
                         return row[type].replace(/^(.{3})(?:\d+)(.{4})$/, "$1****$2")
@@ -737,6 +742,7 @@
                 this.data.forEach(item => {
                     this.$set(item, 'phoneNumberflag', false)
                     this.$set(item, 'transactionObjectTelflag', false)
+                    this.$set(item, 'idCardflag', false)
                     if (item.imageUrls && item.imageUrls != '' && item.imageUrls != null && item.imageUrls.length) {
                         var urls = []
                         var names = item.imageUrls.split(",").filter(item => item != '')

--
Gitblit v1.9.3