Browse Source

bug#1141老年人搜索项调整

feature
mk 1 year ago
parent
commit
121250c36f
  1. 76
      src/views/components/resiSearch.vue
  2. 3
      src/views/modules/base/resi.vue

76
src/views/components/resiSearch.vue

@ -19,12 +19,15 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关注人群"> <el-form-item label="关注人群">
<el-select v-model.trim="form.attentionCrowds" collapse-tags multiple class="u-item-width-normal" clearable <el-cascader
size="small"> size="small"
<template v-for="item in resiClass"> class="u-item-width-normal"
<el-option :label='item.label' :value='item.value'> </el-option> v-model.trim="form.attentionCrowds"
</template> :options="resiClass"
</el-select> :props="{ multiple: true,checkStrictly: true}"
collapse-tags
clearable
></el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="特殊人群"> <el-form-item label="特殊人群">
<el-select v-model.trim="form.specialCategoryCodes" class="u-item-width-normal" clearable size="small" collapse-tags <el-select v-model.trim="form.specialCategoryCodes" class="u-item-width-normal" clearable size="small" collapse-tags
@ -268,7 +271,55 @@ export default {
nation: [], nation: [],
nationalityList: [], nationalityList: [],
household: [], household: [],
resiClass: [], resiClass: [
{
"label": "老年人",
"value": "OLD_PEOPLE_FLAG",
"children": [
{
"label": "失能老人",
"value": "DISABLED_FLAG",
"children": null
}, {
"label": "空巢老人",
"value": "EMPTY_NESTER_FLAG",
"children": null
},
{
"label": "失智老人",
"value": "DEMENTED_FLAG",
"children": null
},
]
},
{
"label": "低保人员",
"value": "SUBSISTENCE_ALLOWANCE_FLAG",
"children": null
},
{
"label": "保障房人员",
"value": "ENSURE_HOUSE_FLAG",
"children": null
},
{
"label": "退役军人",
"value": "VETERAN_FLAG",
"children": null
},
{
"label": "育龄妇女",
"value": "FERTILE_WOMAN_FLAG",
"children": null
},
{
"label": "特扶人员",
"value": "SPECIAL_SUPPORT_FLAG",
"children": null
}
],
itemList, itemList,
fixedList: [], fixedList: [],
constForm, constForm,
@ -602,12 +653,12 @@ export default {
this.getValiheList() this.getValiheList()
this.getDictList() this.getDictList()
this.getHousehold() this.getHousehold()
this.getResident()
this.getNationality() this.getNationality()
this.getCareerStatus() this.getCareerStatus()
if (this.columnName) this.handleChangeForm(this.columnName) if (this.columnName) this.handleChangeForm(this.columnName)
}, },
methods: { methods: {
handleSmartSearch() { handleSmartSearch() {
this.showSmartSearchForm = !this.showSmartSearchForm this.showSmartSearchForm = !this.showSmartSearchForm
}, },
@ -997,14 +1048,7 @@ export default {
console.log(error, '获取人户状况字典'); console.log(error, '获取人户状况字典');
} }
}, },
async getResident() {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'attention_crowd' })
this.resiClass = data.data
} catch (error) {
console.log(error, '获取居民类别字典');
}
},
computedBirth(age) { computedBirth(age) {
let now = new Date(); let now = new Date();
let nowYear = now.getFullYear(); let nowYear = now.getFullYear();

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

@ -503,6 +503,7 @@ export default {
const { categoryKey, agencyId, level } = this.$refs.myResiSearch.form; const { categoryKey, agencyId, level } = this.$refs.myResiSearch.form;
// //
let _obj = JSON.parse(JSON.stringify(this.$refs.myResiSearch.form)); let _obj = JSON.parse(JSON.stringify(this.$refs.myResiSearch.form));
_obj.attentionCrowds = _obj.attentionCrowds.flat()
console.log('213', _obj) console.log('213', _obj)
switch (this.valueb) { switch (this.valueb) {
case '党员': case '党员':
@ -601,7 +602,7 @@ export default {
this.$refs.myResiSearch.form.categoryKey = categoryKey; this.$refs.myResiSearch.form.categoryKey = categoryKey;
this.$refs.myResiSearch.form.agencyId = agencyId; this.$refs.myResiSearch.form.agencyId = agencyId;
} }
// //
// if (this.valueb == '') { // if (this.valueb == '') {
// _obj.partyFlag = 1 // _obj.partyFlag = 1
// this.getTableData(_obj); // this.getTableData(_obj);

Loading…
Cancel
Save