Browse Source

根据党员获取房屋

master
mk 1 year ago
parent
commit
5b10f9520d
  1. 8
      src/api/hsyf.js
  2. 8
      src/views/iframe/dyzxh.vue
  3. 7
      src/views/iframe/index.vue

8
src/api/hsyf.js

@ -183,6 +183,14 @@ export function houseListByGroup (data) {
data data
}) })
} }
// 根据党员获取房屋
export function houseListByParthMemberName (data) {
return request({
url: '/api/gov/org/house/yifengScreen/houseListByParthMemberName',
method: 'post',
data
})
}
// 房屋人员信息 // 房屋人员信息
export function resiListByHomeId (params) { export function resiListByHomeId (params) {
return request({ return request({

8
src/views/iframe/dyzxh.vue

@ -56,7 +56,7 @@
</template> </template>
<script> <script>
import { houseListByGroup } from '@/api/hsyf' import { houseListByParthMemberName } from '@/api/hsyf'
export default { export default {
name: '', name: '',
data () { data () {
@ -85,7 +85,7 @@
} }
}, },
created () { created () {
this.houseListByGroup() // this.houseListByGroup()
}, },
methods: { methods: {
handleClickHouse(item){ handleClickHouse(item){
@ -100,8 +100,8 @@
this.houseListByGroup() this.houseListByGroup()
}, },
houseListByGroup(){ houseListByGroup(){
let {pageSize,pageNo} = this let {pageSize,pageNo} = this;
houseListByGroup({ group: this.$route.query.group,pageSize,pageNo }).then((res) => { houseListByParthMemberName({ partyMemberName: this.partyName,pageSize,pageNo ,group:this.$route.query.group}).then((res) => {
this.total = res.data.total; this.total = res.data.total;
this.dataList = res.data.list; this.dataList = res.data.list;
}) })

7
src/views/iframe/index.vue

@ -5,7 +5,7 @@
<dyzxh1 @handleClickPart="handleClickPart" /> <dyzxh1 @handleClickPart="handleClickPart" />
</section> </section>
<section v-show="type === 2"> <section v-show="type === 2">
<dyzxh v-if="partyName" @handleClickHouse="handleClickHouse" @handelClosePart="handelClosePart" :partyName="partyName"/> <dyzxh v-if="partyName" ref="dyzxh"@handleClickHouse="handleClickHouse" @handelClosePart="handelClosePart" :partyName="partyName"/>
</section> </section>
<section v-show="type === 3"> <section v-show="type === 3">
<ryxx v-if="houseId" :houseId="houseId" :houseName="houseName" @handelClose="handelClose"/> <ryxx v-if="houseId" :houseId="houseId" :houseName="houseName" @handelClose="handelClose"/>
@ -50,14 +50,15 @@ import dyxx from "./dyxx.vue"
}, },
handleClickHouse(item){ handleClickHouse(item){
this.type = 3; this.type = 3;
this.$nextTick(()=>{
this.houseId = item.houseId; this.houseId = item.houseId;
this.houseName = item.houseName; this.houseName = item.houseName;
})
}, },
handleClickPart(item){ handleClickPart(item){
this.type = 2; this.type = 2;
this.partyName = item this.partyName = item
this.$nextTick(()=>{
this.$refs['dyzxh'].houseListByGroup()
})
} }
} }
} }

Loading…
Cancel
Save