党员积分 列表完成

This commit is contained in:
aixianling
2022-04-18 16:36:09 +08:00
parent 285fc7aaa9
commit 0c69a922a5
3 changed files with 12 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ export default {
} }
}, },
created() { created() {
this.dict.load("residentType") this.dict.load("residentType", "householdRelation")
} }
} }
</script> </script>

View File

@@ -55,7 +55,7 @@ export default {
methods: { methods: {
getDetail() { getDetail() {
let {id} = this.$route.query let {id} = this.$route.query
this.instance.post("/app/apppartyintegralinfo/list", null, { this.instance.post("/app/appparty/list", null, {
params: {id} params: {id}
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {

View File

@@ -7,7 +7,7 @@
@getList="getTableData" :col-configs="colConfigs" :dict="dict"> @getList="getTableData" :col-configs="colConfigs" :dict="dict">
<el-table-column slot="options" label="操作" fixed="right" align="center"> <el-table-column slot="options" label="操作" fixed="right" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="text" @click="getFamilyByPartyId(row.id)">家庭成员</el-button> <el-button type="text" @click="getFamilyByPartyId(row.idNumber)">家庭成员</el-button>
<el-button type="text" @click="showDetail(row.id)">详情</el-button> <el-button type="text" @click="showDetail(row.id)">详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -37,14 +37,15 @@ export default {
colConfigs() { colConfigs() {
return [ return [
{label: "姓名", prop: "name"}, {label: "姓名", prop: "name"},
{label: "个人积分", prop: "idNumber", align: "center"}, {label: "个人积分", prop: "integral", align: "center"},
{label: "家庭积分", prop: "phone", align: "center"}, {label: "家庭积分", prop: "familySurplusIntegral", align: "center"},
{slot: "options"} {slot: "options"}
] ]
}, },
familyCols() { familyCols() {
return [ return [
{label: '与户主关系', prop: 'householdRelation', align: 'center', slot: 'householdRelation', width: 165}, {label: '与户主关系', prop: 'householdRelation', align: 'center', width: 165,
render: (h, {row}) => h('p', dict.getLabel('householdRelation', row.householdRelation||"户主"))},
{label: '类型', prop: 'residentType', align: 'center', dict: "residentType"}, {label: '类型', prop: 'residentType', align: 'center', dict: "residentType"},
{label: '姓名', prop: 'name', align: 'center'}, {label: '姓名', prop: 'name', align: 'center'},
{label: '身份证号', render: (h, {row}) => h('p', this.idCardNoUtil.hideId(row.idNumber)), width: 165}, {label: '身份证号', render: (h, {row}) => h('p', this.idCardNoUtil.hideId(row.idNumber)), width: 165},
@@ -54,7 +55,7 @@ export default {
}, },
data() { data() {
return { return {
search: {name: "", ids: ""}, search: {},
page: {current: 1, size: 10, total: 0}, page: {current: 1, size: 10, total: 0},
tableData: [], tableData: [],
dialog: false, dialog: false,
@@ -66,7 +67,7 @@ export default {
this.$router.push({}) this.$router.push({})
}, },
getTableData() { getTableData() {
this.instance.post("/app/apppartyintegralinfo/list", null, { this.instance.post("/app/appparty/listByPartyIntegral", null, {
params: {...this.page, ...this.search} params: {...this.page, ...this.search}
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
@@ -78,9 +79,9 @@ export default {
showDetail(id) { showDetail(id) {
this.$router.push({query: {id}}) this.$router.push({query: {id}})
}, },
getFamilyByPartyId(partyId) { getFamilyByPartyId(idNumber) {
this.instance.post("/app/apppartyintegralinfo/list", null, { this.instance.post("/app/appresident/queryHomeMember", null, {
params: {...this.list, partyId} params: {idNumber}
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.familyList = res.data?.records this.familyList = res.data?.records