shuishen
2023-12-18 fed36d52707c61dbff16bf75fceb6370cca54ea2
src/views/userHouse/houseHoldList.vue
@@ -32,6 +32,11 @@
                        <el-button type="text" @click="showStringDispose(row, 'idCardflag')"
                            v-text="textDispose(row, 'idCardflag', 'idCard')"></el-button>
                    </template>
                    <template slot-scope="{row}" slot="householdLabelList">
                        {{ labelDispose(row.householdLabelList) }}
                    </template>
                    <template slot-scope="{row}" slot="tenantName">
                        <el-tag>{{ row.tenantName }}</el-tag>
                    </template>
@@ -44,6 +49,8 @@
                    <template slot-scope="{row}" slot="userTypeName">
                        <el-tag>{{ row.userTypeName }}</el-tag>
                    </template>
                </avue-crud>
                <el-dialog title="用户角色配置" append-to-body :visible.sync="roleBox" width="345px" center>
@@ -139,6 +146,7 @@
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import Qs from "qs"
import { lintOnSave } from "../../../vue.config"
export default {
    data () {
@@ -171,6 +179,7 @@
                dialogType: 'drawer',
                dialogClickModal: false,
                menuWidth: 280,
                menuFixed: 'right',
                column: [{
                    label: "姓名",
                    prop: "name",
@@ -185,12 +194,12 @@
                    slot: true,
                },
                {
                    width: 160,
                    label: "身份证号",
                    prop: "idCard",
                    search: true,
                    searchSpan: 4,
                    slot: true,
                },
                {
                    label: "性别",
@@ -230,6 +239,19 @@
                {
                    label: "地址",
                    prop: "address",
                    display: false
                },
                {
                    label: "地址",
                    prop: "address",
                    display: false
                },
                {
                    width: 210,
                    label: "标签",
                    prop: "householdLabelList",
                    display: false
                },
                ]
@@ -348,6 +370,12 @@
                    }
                }
            }
        },
        labelDispose () {
            return (list) => {
                return list.map(item => item.labelName).join(',')
            }
        }
    },
    mounted () { },
@@ -359,6 +387,8 @@
                    labelId: this.currentLabel.id
                }
                removeHouseholdLabel(params).then(res => {
                    this.onLoad(this.page)
                    this.$message({
                        type: "success",
                        message: "操作成功!"
@@ -372,7 +402,10 @@
                this.labelForm.householdId = this.currentRow.id
                this.labelForm.labelId = this.currentLabel.id
                this.labelForm.lableType = 1
                saveOrUpdateHouseholdLabel(this.labelForm).then(res => {
                    this.onLoad(this.page)
                    this.$message({
                        type: "success",
                        message: "操作成功!"