diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index ca3e58948..1335645c9 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -610,7 +610,7 @@ export default { ageEnd: '', integrityScoreFrom: null,//居民信息完整度はじめ integrityScoreTo: null,//居民信息完整度end - identity:'', + identity:null, gender: '', cultureLevel: '', localResidenceFlag: '', diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue index f276e277a..dfe271647 100644 --- a/src/views/modules/base/resi.vue +++ b/src/views/modules/base/resi.vue @@ -101,9 +101,8 @@ - + @command="(command) => confirmBatch(command)" v-if="updeBtn" > 信息无误确认 全部确认 @@ -1126,7 +1125,7 @@ export default { const value = obj[key]; if (Array.isArray(value)) { resultArray.push(...value); // 展开数组并加入结果数组 - } else { + } else if(value){ resultArray.push(value); // 将非数组的值加入结果数组 } } @@ -1138,7 +1137,7 @@ export default { let _obj = JSON.parse(JSON.stringify(this.$refs.myResiSearch.form)); _obj.attentionCrowds = _obj.attentionCrowds.flat() let updateCategorys = this.extractSpecificKeys(_obj,['attentionCrowds','healthStatus','specialCategoryCodes','identity']) - const url = `/actual/base/residentCategoryUpdateInfo/unchangePartUpdate`; + const url = `/actual/base/residentCategoryUpdateInfo/${ids?'unchangePartUpdate':'unchangeMultiUpdate'}`; let params = {ids,partyFlag:_obj.partyFlag,updateCategorys}; if(!ids){ params = { ..._obj,updateCategorys}