Browse Source

修复居民查询筛选所属组织不生效的bug

xiaowang-featrue
duanliangtao 11 months ago
parent
commit
800aa49b28
  1. 6
      src/views/modules/base/resi.vue

6
src/views/modules/base/resi.vue

@ -334,7 +334,7 @@ export default {
buildId: null, buildId: null,
villageId: null, villageId: null,
gridId: null, gridId: null,
agencyId: null, // agencyId: null,
}, },
defaultProps: { defaultProps: {
children: "children", children: "children",
@ -568,12 +568,14 @@ export default {
// agencyId // agencyId
if (Array.isArray(agencyId) && agencyId.length) { if (Array.isArray(agencyId) && agencyId.length) {
_obj.agencyId = agencyId[agencyId.length - 1]; _obj.agencyId = agencyId[agencyId.length - 1];
}else if(agencyId){
_obj.agencyId = agencyId;
}else{ }else{
_obj.agencyId = ""; _obj.agencyId = "";
} }
_obj.level = level || ""; _obj.level = level || "";
_obj.orgType = level || ""; _obj.orgType = level || "";
_obj = { ..._obj, ...this.searchAgencyObj }; _obj = { ...this.searchAgencyObj , ..._obj};
if (type) { if (type) {
this.currentPage = 1; this.currentPage = 1;
} }

Loading…
Cancel
Save