guanqb
2024-02-21 fccff63fbbf854ec3ae8dad9418ca985b067908e
交易登记身份证号显示隐藏
1 files modified
10 ■■■■ changed files
src/views/publicSecurity/positionManage/TransactRegist.vue 10 ●●●● patch | view | raw | blame | history
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 != '')