zhongrj
2023-11-06 8222db1f4dea338b67ecee861f7b4b2567e8174f
添加成员字典未加载修复
1 files modified
32 ■■■■■ changed files
subPackage/house/member/index.vue 32 ●●●●● patch | view | raw | blame | history
subPackage/house/member/index.vue
@@ -288,8 +288,9 @@
        onLoad(option) {
            const data = JSON.parse(option.data)
            this.houseCode = data.houseCode
            if(data.type == 2){
            if(data.type == 1){
                this.addOrUpdateTitle = "保存"
                this.getAllBizDict()
            }
            if(data.type == 2){
                this.addOrUpdateTitle = "修改"
@@ -297,9 +298,22 @@
            }
        },
        onShow() {
        },
        methods: {
            async getAllBizDict(){
                // 获取角色关系字典
                await this.getBizDict('roleRelation',this.dataList.relationshipList)
                // 获取角色字典
                await this.getBizDict('roleType',this.dataList.roleList)
                // 获取民族字典
                await this.getBizDict('nationType',this.dataList.ethnicityList)
                // 获取学历字典
                await this.getBizDict('educationType',this.dataList.educationList)
                // 获取工作状态字典
                await this.getBizDict('workStatusType',this.dataList.workStatusList)
                // 获取婚姻状态字典
                await this.getBizDict('marriageStatusType',this.dataList.maritalStatusList)
            },
            // 获取业务字典
            async getBizDict(code,list){
                const param = {
@@ -315,18 +329,8 @@
            },
            // 获取住户信息
            async getHouseholdInfo(data){
                // 获取角色关系字典
                await this.getBizDict('roleRelation',this.dataList.relationshipList)
                // 获取角色字典
                await this.getBizDict('roleType',this.dataList.roleList)
                // 获取民族字典
                await this.getBizDict('nationType',this.dataList.ethnicityList)
                // 获取学历字典
                await this.getBizDict('educationType',this.dataList.educationList)
                // 获取工作状态字典
                await this.getBizDict('workStatusType',this.dataList.workStatusList)
                // 获取婚姻状态字典
                await this.getBizDict('marriageStatusType',this.dataList.maritalStatusList)
                // 获取所有字典
                await this.getAllBizDict()
                this.form = data
                this.roleTypeName = this.findObjValue(data.roleType, this.dataList.roleList)
                this.relationshipName = this.findObjValue(data.relationship, this.dataList.relationshipList)