src/views/cGovernance/gridWorkLog.vue
@@ -15,6 +15,12 @@
                    @click="handleDelete">删 除
                </el-button>
            </template>
            <template slot-scope="{row, size}" slot="phone">
                <el-button :size="size" type="text" @click="showStringDispose(row, 'phoneflag')"
                    v-text="textDispose(row, 'phoneflag', 'phone')">
                </el-button>
            </template>
        </avue-crud>
    </basic-container>
</template>
@@ -148,6 +154,7 @@
                        disabled: true,
                        searchSpan: 4,
                        search: true,
                        slot: true
                    },
                    {
@@ -345,6 +352,20 @@
                return data.name
            }
        },
        textDispose () {
            return (row, flag, type) => {
                if (row[flag] || row[type] == null) {
                    return row[type]
                } else {
                    if (type == 'principalIdCard') {
                        return row[type].replace(/^(.{6})(?:\d+)(.{4})$/, "$1******$2")
                    } else {
                        return row[type].replace(/^(.{3})(?:\d+)(.{4})$/, "$1****$2")
                    }
                }
            }
        }
    },
@@ -353,6 +374,10 @@
    },
    methods: {
        showStringDispose (row, type) {
            row[type] = !row[type]
        },
        getUserList (param = '') {
            let dicUrl = `/api/blade-household/household/selectHouseholdList?labelId=${param}&searchKey={{key}}&limit=20`
            const column = this.findObject(this.option.column, "householdId")
@@ -519,6 +544,7 @@
                this.page.total = data.total
                this.data = data.records
                this.data.forEach(item => {
                    this.$set(item, 'phoneflag', false)
                    if (item.url) {
                        if (item.url.length > 0) {
                            var urls = []