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
})
}
// 根据党员获取房屋
export function houseListByParthMemberName (data) {
return request({
url: '/api/gov/org/house/yifengScreen/houseListByParthMemberName',
method: 'post',
data
})
}
// 房屋人员信息
export function resiListByHomeId (params) {
return request({

8
src/views/iframe/dyzxh.vue

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

7
src/views/iframe/index.vue

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

Loading…
Cancel
Save