|
|
@ -2,34 +2,34 @@ |
|
|
|
<div class="g-pgi"> |
|
|
|
<!-- 组织路由 --> |
|
|
|
<cpt-bread |
|
|
|
:separator="'/'" |
|
|
|
@tap="handleClickBreadItem" |
|
|
|
:breadList="breadList" |
|
|
|
:breadList="breadList" |
|
|
|
:separator="'/'" |
|
|
|
@tap="handleClickBreadItem" |
|
|
|
></cpt-bread> |
|
|
|
<div class="m-title"> |
|
|
|
<img class="title_img" src="@/assets/images/index/list-logo.png" alt /> |
|
|
|
<img alt class="title_img" src="@/assets/images/index/list-logo.png"/> |
|
|
|
<div class="tip_title">{{ tableTitle }}</div> |
|
|
|
<div class="title_line"></div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="g-listbox"> |
|
|
|
<cpt-tb |
|
|
|
:col-list="colList" |
|
|
|
:loading="loading" |
|
|
|
:header="header" |
|
|
|
:list="list" |
|
|
|
:total="total" |
|
|
|
@handleSizeChange="handleSizeChange" |
|
|
|
@handlePageNoChange="handlePageNoChange" |
|
|
|
@operate="showInfo" |
|
|
|
:col-list="colList" |
|
|
|
:header="header" |
|
|
|
:list="list" |
|
|
|
:loading="loading" |
|
|
|
:total="total" |
|
|
|
@handlePageNoChange="handlePageNoChange" |
|
|
|
@handleSizeChange="handleSizeChange" |
|
|
|
@operate="showInfo" |
|
|
|
></cpt-tb> |
|
|
|
</div> |
|
|
|
|
|
|
|
<resi-details |
|
|
|
@close="displayedResiId = ''" |
|
|
|
:resi-id="displayedResiId" |
|
|
|
:popupShow="popupShow" |
|
|
|
v-if="displayedResiId" |
|
|
|
v-if="displayedResiId" |
|
|
|
:popupShow="popupShow" |
|
|
|
:resi-id="displayedResiId" |
|
|
|
@close="displayedResiId = ''" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -80,8 +80,7 @@ export default { |
|
|
|
srcTableData: [], |
|
|
|
list: [], |
|
|
|
|
|
|
|
query: { |
|
|
|
}, |
|
|
|
query: {}, |
|
|
|
|
|
|
|
colList: [ |
|
|
|
{ |
|
|
@ -135,7 +134,8 @@ export default { |
|
|
|
], |
|
|
|
|
|
|
|
displayedResiId: "", |
|
|
|
popupShow: false |
|
|
|
popupShow: false, |
|
|
|
key: 'type' |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
@ -143,26 +143,37 @@ export default { |
|
|
|
this.org_id = getQueryPara("org_id"); |
|
|
|
this.resiType = getQueryPara("type"); |
|
|
|
const type_name = getQueryPara("type_name"); |
|
|
|
const type_category = getQueryPara("type_category"); |
|
|
|
this.breadList[1].meta.title = type_name + "居民列表"; |
|
|
|
this.tableTitle = type_name + "居民列表"; |
|
|
|
if(type_category === '年龄') { |
|
|
|
this.key = 'ageType' |
|
|
|
} else if(type_category === '志愿者类别') { |
|
|
|
this.key = 'volunteerType' |
|
|
|
} else { |
|
|
|
this.key = 'type' |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.pageNo = 1; |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
handleClickBreadItem({ item }) { |
|
|
|
handleClickBreadItem({item}) { |
|
|
|
if (item.type == "back") { |
|
|
|
this.$router.back(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
handleSearch() {}, |
|
|
|
handleSearch() { |
|
|
|
}, |
|
|
|
|
|
|
|
showInfo(index) { |
|
|
|
this.popupShow = true |
|
|
|
// this.popupShow = true |
|
|
|
let item = this.srcTableData[index]; |
|
|
|
this.displayedResiId = item.resiId; |
|
|
|
this.$router.push('/dataBoard/renfang/resident?user_id='+item.resiId) |
|
|
|
// this.displayedResiId = item.resiId; |
|
|
|
}, |
|
|
|
|
|
|
|
handlePageNoChange(pageNo) { |
|
|
@ -177,7 +188,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
async getList() { |
|
|
|
const { org_id, resiType, pageNo, pageSize } = this; |
|
|
|
const {org_id, resiType, pageNo, pageSize} = this; |
|
|
|
this.loading = true; |
|
|
|
|
|
|
|
const url = "/actual/base/residentBaseInfo/page"; |
|
|
@ -186,17 +197,18 @@ export default { |
|
|
|
this.getQueryByResiType(resiType); |
|
|
|
|
|
|
|
this.query = { |
|
|
|
...this.query, |
|
|
|
agencyId:org_id, |
|
|
|
pageNo, |
|
|
|
pageSize, |
|
|
|
}; |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost( |
|
|
|
url,this.query, |
|
|
|
{ |
|
|
|
// mockId: 60069169, |
|
|
|
} |
|
|
|
...this.query, |
|
|
|
[this.key]: this.resiType, |
|
|
|
agencyId: org_id, |
|
|
|
pageNo, |
|
|
|
pageSize, |
|
|
|
}; |
|
|
|
|
|
|
|
const {data, code, msg} = await requestPost( |
|
|
|
url, this.query, |
|
|
|
{ |
|
|
|
// mockId: 60069169, |
|
|
|
} |
|
|
|
); |
|
|
|
|
|
|
|
this.loading = false; |
|
|
@ -204,7 +216,7 @@ export default { |
|
|
|
if (code === 0) { |
|
|
|
this.srcTableData = data.list; |
|
|
|
this.total = data.total; |
|
|
|
|
|
|
|
|
|
|
|
this.list = data.list.map((item, index) => { |
|
|
|
return [ |
|
|
|
index + 1, |
|
|
@ -215,7 +227,7 @@ export default { |
|
|
|
item.idNum ? item.idNum : "--", |
|
|
|
item.gender === "1" ? "男" : (item.gender === "2" ? "女" : "--"), |
|
|
|
item.birthday ? item.birthday : "--", |
|
|
|
{ type: "operate", list: ["查看"] }, |
|
|
|
{type: "operate", list: ["查看"]}, |
|
|
|
]; |
|
|
|
}); |
|
|
|
} else { |
|
|
@ -223,67 +235,67 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
getQueryByResiType(resiType){ |
|
|
|
if(resiType == "male_count"){ |
|
|
|
this.query = {gender:"1" }; |
|
|
|
}else if (resiType == "female_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "local_count") { |
|
|
|
this.query = {localResidenceFlag:"1" }; |
|
|
|
}else if (resiType == "field_count") { |
|
|
|
this.query = {localResidenceFlag:"0" }; |
|
|
|
}else if (resiType == "resi_y_house_y_count") { |
|
|
|
this.query = {householdSituation:"rhyz" }; |
|
|
|
}else if (resiType == "resi_y_house_n_count") { |
|
|
|
this.query = {householdSituation:"rzhbz" }; |
|
|
|
}else if (resiType == "resi_n_house_y_count") { |
|
|
|
this.query = {householdSituation:"hzrbz" }; |
|
|
|
}else if (resiType == "age50_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "age5059_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "age6069_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "age7079_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "age80_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "culture_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "committee_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "capable_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "friend_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "agent_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "mediator_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "collector_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "security_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "party_mem_count") { |
|
|
|
this.query = {gender:"2" }; |
|
|
|
}else if (resiType == "primary_count") { |
|
|
|
this.query = {cultureLevel:"0",categoryKey:"PARTY_FLAG"}; |
|
|
|
}else if (resiType == "junior_high_count") { |
|
|
|
this.query = {cultureLevel:"1",categoryKey:"PARTY_FLAG"}; |
|
|
|
}else if (resiType == "second_speci_count") { |
|
|
|
this.query = {cultureLevel:"2",categoryKey:"PARTY_FLAG"}; |
|
|
|
}else if (resiType == "high_school_count") { |
|
|
|
this.query = {cultureLevel:"3",categoryKey:"PARTY_FLAG"}; |
|
|
|
}else if (resiType == "junior_college_count") { |
|
|
|
this.query = {cultureLevel:"4",categoryKey:"PARTY_FLAG"}; |
|
|
|
}else if (resiType == "undergrad_count") { |
|
|
|
this.query = {cultureLevel:"5",categoryKey:"PARTY_FLAG"}; |
|
|
|
}else if (resiType == "master_count") { |
|
|
|
this.query = {cultureLevel:"6",categoryKey:"PARTY_FLAG"}; |
|
|
|
}else if (resiType == "doctor_count") { |
|
|
|
this.query = {cultureLevel:"7",categoryKey:"PARTY_FLAG"}; |
|
|
|
} |
|
|
|
}, |
|
|
|
getQueryByResiType(resiType) { |
|
|
|
if (resiType == "male_count") { |
|
|
|
this.query = {gender: "1"}; |
|
|
|
} else if (resiType == "female_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "local_count") { |
|
|
|
this.query = {localResidenceFlag: "1"}; |
|
|
|
} else if (resiType == "field_count") { |
|
|
|
this.query = {localResidenceFlag: "0"}; |
|
|
|
} else if (resiType == "resi_y_house_y_count") { |
|
|
|
this.query = {householdSituation: "rhyz"}; |
|
|
|
} else if (resiType == "resi_y_house_n_count") { |
|
|
|
this.query = {householdSituation: "rzhbz"}; |
|
|
|
} else if (resiType == "resi_n_house_y_count") { |
|
|
|
this.query = {householdSituation: "hzrbz"}; |
|
|
|
} else if (resiType == "age50_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "age5059_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "age6069_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "age7079_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "age80_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "culture_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "committee_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "capable_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "friend_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "agent_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "mediator_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "collector_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "security_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "party_mem_count") { |
|
|
|
this.query = {gender: "2"}; |
|
|
|
} else if (resiType == "primary_count") { |
|
|
|
this.query = {cultureLevel: "0", categoryKey: "PARTY_FLAG"}; |
|
|
|
} else if (resiType == "junior_high_count") { |
|
|
|
this.query = {cultureLevel: "1", categoryKey: "PARTY_FLAG"}; |
|
|
|
} else if (resiType == "second_speci_count") { |
|
|
|
this.query = {cultureLevel: "2", categoryKey: "PARTY_FLAG"}; |
|
|
|
} else if (resiType == "high_school_count") { |
|
|
|
this.query = {cultureLevel: "3", categoryKey: "PARTY_FLAG"}; |
|
|
|
} else if (resiType == "junior_college_count") { |
|
|
|
this.query = {cultureLevel: "4", categoryKey: "PARTY_FLAG"}; |
|
|
|
} else if (resiType == "undergrad_count") { |
|
|
|
this.query = {cultureLevel: "5", categoryKey: "PARTY_FLAG"}; |
|
|
|
} else if (resiType == "master_count") { |
|
|
|
this.query = {cultureLevel: "6", categoryKey: "PARTY_FLAG"}; |
|
|
|
} else if (resiType == "doctor_count") { |
|
|
|
this.query = {cultureLevel: "7", categoryKey: "PARTY_FLAG"}; |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
destroyed() { |
|
|
@ -292,4 +304,4 @@ export default { |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" src="@/assets/scss/dataBoard/listBox.scss" scoped></style> |
|
|
|
<style lang="scss" scoped src="@/assets/scss/dataBoard/listBox.scss"></style> |
|
|
|