|
|
@ -602,48 +602,6 @@ export default { |
|
|
|
this.$refs.myResiSearch.form.categoryKey = categoryKey; |
|
|
|
this.$refs.myResiSearch.form.agencyId = agencyId; |
|
|
|
} |
|
|
|
|
|
|
|
// if (this.valueb == '党员') { |
|
|
|
// _obj.partyFlag = 1 |
|
|
|
// this.getTableData(_obj); |
|
|
|
// // console.log("this.valueb",this.valueb) |
|
|
|
// } if (this.valueb == '残疾人') { |
|
|
|
// _obj.healthStatus.push('DISABILITY_FLAG'); |
|
|
|
// this.getTableData(_obj); |
|
|
|
// } if (this.valueb == '退役军人') { |
|
|
|
// _obj.attentionCrowds.push('VETERAN_FLAG'); |
|
|
|
// _obj.partyFlag = 1 |
|
|
|
// this.getTableData(_obj); |
|
|
|
// } |
|
|
|
// else { |
|
|
|
// // 处理 categoryKey |
|
|
|
// if (Array.isArray(categoryKey) && categoryKey.length) { |
|
|
|
// _obj.categoryKey = categoryKey.join(","); |
|
|
|
// } else { |
|
|
|
// _obj.categoryKey = ""; |
|
|
|
// } |
|
|
|
// // 处理 agencyId |
|
|
|
// if (Array.isArray(agencyId) && agencyId.length) { |
|
|
|
// _obj.agencyId = agencyId[agencyId.length - 1]; |
|
|
|
// } else { |
|
|
|
// _obj.agencyId = ""; |
|
|
|
// } |
|
|
|
// _obj.level = level || ""; |
|
|
|
// _obj.orgType = level || ""; |
|
|
|
// _obj = { ..._obj, ...this.searchAgencyObj }; |
|
|
|
// if (type) { |
|
|
|
// this.currentPage = 1; |
|
|
|
// } |
|
|
|
// console.log("this.valueb", _obj) |
|
|
|
// this.getTableData(_obj); |
|
|
|
// this.searchForm = _obj; |
|
|
|
// // 还原form的值 |
|
|
|
// this.$refs.myResiSearch.form.categoryKey = categoryKey; |
|
|
|
// this.$refs.myResiSearch.form.agencyId = agencyId; |
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
// 居民多选是否禁止选中 |
|
|
|
// checkSelectable (row, index) { |
|
|
@ -1199,18 +1157,35 @@ export default { |
|
|
|
this.$refs.myResiSearch.form.healthStatus = []; |
|
|
|
this.$refs.myResiSearch.form.specialCategoryCodes = []; |
|
|
|
this.$refs.myResiSearch.form.partyFlag=null; |
|
|
|
if (newVal.params.category === 'SPECIAL_SUPPORT_FLAG' ||newVal.params.category === 'SUBSISTENCE_ALLOWANCE_FLAG'|| newVal.params.category === 'VETERAN_FLAG'|| newVal.params.category === 'ENSURE_HOUSE_FLAG'|| newVal.params.category === 'OLD_PEOPLE_FLAG') { |
|
|
|
if (newVal.query.category === 'SPECIAL_SUPPORT_FLAG' ||newVal.query.category === 'SUBSISTENCE_ALLOWANCE_FLAG'|| newVal.query.category === 'VETERAN_FLAG'|| newVal.query.category === 'ENSURE_HOUSE_FLAG'|| newVal.query.category === 'OLD_PEOPLE_FLAG'|| newVal.query.category === 'FERTILE_WOMAN_FLAG' || newVal.query.category === 'FLOATING_FLAG' || newVal.query.category === 'NEW_STRATUM_FLAG') { |
|
|
|
this.$refs.myResiSearch.form.attentionCrowds.push( |
|
|
|
newVal.params.category |
|
|
|
newVal.query.category |
|
|
|
); |
|
|
|
} else if(newVal.params.category === 'CHRONIC_DISEASE_FLAG' ||newVal.params.category === 'SERIOUS_ILLNESS_FLAG'||newVal.params.category === 'DISABILITY_FLAG'){ |
|
|
|
} else if(newVal.query.category === 'CHRONIC_DISEASE_FLAG' ||newVal.query.category === 'SERIOUS_ILLNESS_FLAG'||newVal.query.category === 'DISABILITY_FLAG'){ |
|
|
|
this.$refs.myResiSearch.form.healthStatus.push( |
|
|
|
newVal.params.category |
|
|
|
newVal.query.category |
|
|
|
); |
|
|
|
}else if(newVal.params.category === 'SPECIAL_CROWD_FLAG'){ |
|
|
|
this.$refs.myResiSearch.form.specialCategoryCodes = ["anzhibangjiao","shequjiaozheng","xidurenyuan","buliangqingshaonian","zhaoshizhaohuojingshenbing","xiejiaorenyuan"]; |
|
|
|
}else if(newVal.params.category === 'PARTY_FLAG'){ |
|
|
|
}else if(newVal.query.category === 'SQJZ_FLAG' || newVal.query.category === 'AZBJ_FLAG' || newVal.query.category === 'DRUG_FLAG' || newVal.query.category === 'XJRY_FLAG' || newVal.query.category === 'ZSZHJSB_FLAG' || newVal.query.category === 'UNITED_FRONT_FLAG'|| newVal.query.category === 'PETITION_OFFICER_FLAG' || newVal.query.category === 'BLQSN_FLAG'){ |
|
|
|
let obj = { |
|
|
|
SQJZ_FLAG:'shequjiaozheng', |
|
|
|
AZBJ_FLAG:'anzhibangjiao', |
|
|
|
DRUG_FLAG:'xidurenyuan', |
|
|
|
XJRY_FLAG:'xiejiaorenyuan', |
|
|
|
ZSZHJSB_FLAG:'zhaoshizhaohuojingshenbing', |
|
|
|
UNITED_FRONT_FLAG:'tongzhanrenyuan', |
|
|
|
PETITION_OFFICER_FLAG:'xinfangrenyaun', |
|
|
|
BLQSN_FLAG:'buliangqingshaonian' |
|
|
|
} |
|
|
|
this.$refs.myResiSearch.form.specialCategoryCodes = [obj[newVal.query.category]]; |
|
|
|
}else if(newVal.query.category === 'PARTY_FLAG'){ |
|
|
|
this.$refs.myResiSearch.form.partyFlag =1; |
|
|
|
}else if(newVal.query.category === 'BUILDING_CHIEF_FLAG' || newVal.query.category === 'VOLUNTEER_FLAG' || newVal.query.category === 'UNIT_CHIEF_FLAG' || newVal.query.category ==='PUBLIC_WELFARE_FLAG'){ |
|
|
|
console.log(newVal.query.category); |
|
|
|
this.$refs.myResiSearch.form.identity = newVal.query.category; |
|
|
|
}else if(newVal.query.category === 'MASS_FLAG'){ |
|
|
|
this.$refs.myResiSearch.form.partyFlag = 0; |
|
|
|
}else if(newVal.query.category === 'LEAGUE_FLAG'){ |
|
|
|
this.$refs.myResiSearch.form.partyFlag = 2; |
|
|
|
} |
|
|
|
this.handleSearchFrom(); |
|
|
|
}); |
|
|
|