党员积分 列表完成
This commit is contained in:
		| @@ -23,7 +23,7 @@ export default { | ||||
|     } | ||||
|   }, | ||||
|   created() { | ||||
|     this.dict.load("residentType") | ||||
|     this.dict.load("residentType", "householdRelation") | ||||
|   } | ||||
| } | ||||
| </script> | ||||
|   | ||||
| @@ -55,7 +55,7 @@ export default { | ||||
|   methods: { | ||||
|     getDetail() { | ||||
|       let {id} = this.$route.query | ||||
|       this.instance.post("/app/apppartyintegralinfo/list", null, { | ||||
|       this.instance.post("/app/appparty/list", null, { | ||||
|         params: {id} | ||||
|       }).then(res => { | ||||
|         if (res?.data) { | ||||
|   | ||||
| @@ -7,7 +7,7 @@ | ||||
|                   @getList="getTableData" :col-configs="colConfigs" :dict="dict"> | ||||
|           <el-table-column slot="options" label="操作" fixed="right" align="center"> | ||||
|             <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> | ||||
|             </template> | ||||
|           </el-table-column> | ||||
| @@ -37,14 +37,15 @@ export default { | ||||
|     colConfigs() { | ||||
|       return [ | ||||
|         {label: "姓名", prop: "name"}, | ||||
|         {label: "个人积分", prop: "idNumber", align: "center"}, | ||||
|         {label: "家庭积分", prop: "phone", align: "center"}, | ||||
|         {label: "个人积分", prop: "integral", align: "center"}, | ||||
|         {label: "家庭积分", prop: "familySurplusIntegral", align: "center"}, | ||||
|         {slot: "options"} | ||||
|       ] | ||||
|     }, | ||||
|     familyCols() { | ||||
|       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: 'name', align: 'center'}, | ||||
|         {label: '身份证号', render: (h, {row}) => h('p', this.idCardNoUtil.hideId(row.idNumber)), width: 165}, | ||||
| @@ -54,7 +55,7 @@ export default { | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|       search: {name: "", ids: ""}, | ||||
|       search: {}, | ||||
|       page: {current: 1, size: 10, total: 0}, | ||||
|       tableData: [], | ||||
|       dialog: false, | ||||
| @@ -66,7 +67,7 @@ export default { | ||||
|       this.$router.push({}) | ||||
|     }, | ||||
|     getTableData() { | ||||
|       this.instance.post("/app/apppartyintegralinfo/list", null, { | ||||
|       this.instance.post("/app/appparty/listByPartyIntegral", null, { | ||||
|         params: {...this.page, ...this.search} | ||||
|       }).then(res => { | ||||
|         if (res?.data) { | ||||
| @@ -78,9 +79,9 @@ export default { | ||||
|     showDetail(id) { | ||||
|       this.$router.push({query: {id}}) | ||||
|     }, | ||||
|     getFamilyByPartyId(partyId) { | ||||
|       this.instance.post("/app/apppartyintegralinfo/list", null, { | ||||
|         params: {...this.list, partyId} | ||||
|     getFamilyByPartyId(idNumber) { | ||||
|       this.instance.post("/app/appresident/queryHomeMember", null, { | ||||
|         params: {idNumber} | ||||
|       }).then(res => { | ||||
|         if (res?.data) { | ||||
|           this.familyList = res.data?.records | ||||
|   | ||||
		Reference in New Issue
	
	Block a user