linwe
2023-12-21 ad0a536bd7534a8eaf477d41294de21c7d7b25df
src/views/userHouse/houseHoldList.vue
@@ -180,80 +180,105 @@
                dialogClickModal: false,
                menuWidth: 280,
                menuFixed: 'right',
                column: [{
                    label: "姓名",
                    prop: "name",
                    search: true,
                    searchSpan: 4,
                },
                {
                    label: "电话",
                    prop: "phoneNumber",
                    search: true,
                    searchSpan: 4,
                    slot: true,
                },
                {
                    width: 160,
                    label: "身份证号",
                    prop: "idCard",
                    search: true,
                    searchSpan: 4,
                    slot: true,
                },
                {
                    label: "性别",
                    prop: "gender",
                    type: "select",
                    dicData: [{
                        label: "男",
                        value: 1
                column: [
                    {
                        width: 96,
                        label: "姓名",
                        prop: "name",
                        search: true,
                        searchSpan: 4,
                    },
                    {
                        label: "女",
                        value: 0
                        width: 106,
                        label: "电话",
                        prop: "phoneNumber",
                        search: true,
                        searchSpan: 4,
                        slot: true,
                    },
                    {
                        label: "未知",
                        value: 1
                    }
                    ],
                },
                {
                    label: "关系",
                    prop: "relationship",
                    type: "select",
                    dicUrl: "/api/blade-system/dict-biz/dictionary?code=roleRelation",
                    dataType: "number",
                    props: {
                        label: "dictValue",
                        value: "dictKey",
                        width: 160,
                        label: "身份证号",
                        prop: "idCard",
                        search: true,
                        searchSpan: 4,
                        slot: true,
                    },
                },
                {
                    label: "小区",
                    prop: "aoiName",
                    search: true,
                    searchSpan: 4,
                },
                {
                    label: "地址",
                    prop: "address",
                    display: false
                },
                    {
                        label: "性别",
                        prop: "gender",
                        type: "select",
                        dicData: [{
                            label: "男",
                            value: 1
                        },
                        {
                            label: "女",
                            value: 0
                        },
                        {
                            label: "未知",
                            value: 1
                        }
                        ],
                    },
                    {
                        label: "关系",
                        prop: "relationship",
                        type: "select",
                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=roleRelation",
                        dataType: "number",
                        props: {
                            label: "dictValue",
                            value: "dictKey",
                        },
                    },
                    {
                        width: 132,
                        label: "小区",
                        prop: "aoiName",
                        search: true,
                        searchSpan: 4,
                    },
                {
                    label: "地址",
                    prop: "address",
                    display: false
                },
                    {
                        addDisplay: false,
                        editDisplay: false,
                        viewDisplay: false,
                        width: 96,
                        label: "所属街道",
                        prop: "townStreetName",
                    },
                    {
                        addDisplay: false,
                        editDisplay: false,
                        viewDisplay: false,
                        width: 160,
                        label: "所属社区",
                        prop: "neiName",
                    },
                    {
                        addDisplay: false,
                        editDisplay: false,
                        viewDisplay: false,
                        width: 96,
                        label: "所属网格",
                        prop: "gridName",
                    },
                {
                    width: 210,
                    label: "标签",
                    prop: "householdLabelList",
                    display: false
                },
                    {
                        width: 132,
                        label: "地址",
                        prop: "address",
                        display: false
                    },
                    {
                        width: 210,
                        label: "标签",
                        prop: "householdLabelList",
                        display: false
                    },
                ]
            },
            data: [],
@@ -360,11 +385,11 @@
        textDispose () {
            return (row, flag, type) => {
                if (row[flag]) {
                if (row[flag] || row[type] == null) {
                    return row[type]
                } else {
                    if (type == 'idCard') {
                        return row[type].replace(/^(.{8})(?:\d+)(.{4})$/, "$1******$2")
                        return row[type].replace(/^(.{6})(?:\d+)(.{4})$/, "$1******$2")
                    } else {
                        return row[type].replace(/^(.{3})(?:\d+)(.{4})$/, "$1****$2")
                    }
@@ -425,6 +450,7 @@
        },
        manageLabel (item) {
            this.currentRow = item
            this.loading = true
            this.labelFlag = true
            let params = {
                parentId: 1000
@@ -433,11 +459,9 @@
            getLabelList(Object.assign(params)).then(res => {
                const data = res.data.data
                // this.labelData = data;
                this.loading = false
                // 查询详情
                getDetatils(item.id).then(res => {
                    this.householdLabelList = res.data.data.householdLabelList
                    this.loading = false
                    // 将细类放到一起
                    data.forEach(e => {
                        e.children.forEach(f => {
@@ -452,6 +476,7 @@
                        })
                    })
                    this.labelData = data
                    this.loading = false
                })
            })
        },