Browse Source

嵌入弹框,包联房屋数修改

master
mk 1 year ago
parent
commit
f0eb7dc17a
  1. 12
      src/views/iframe/dyzxh.vue
  2. 10
      src/views/iframe/index.vue
  3. 47
      src/views/next/screen-content-map/cpt/hsyf-iframe.vue

12
src/views/iframe/dyzxh.vue

@ -20,7 +20,7 @@
</div> </div>
<div class="title_hrader_item"> <div class="title_hrader_item">
包联房屋: 包联房屋:
<span class="numberTotal">{{ dataList.length || 0 }}</span> <span class="numberTotal">{{ total}}</span>
</div> </div>
</div> </div>
<div class="list"> <div class="list">
@ -66,7 +66,6 @@
dataList: [ dataList: [
], ],
pageSize:10, pageSize:10,
pageNo:1,
total:0 total:0
} }
}, },
@ -75,6 +74,12 @@
components: {}, components: {},
mounted () { mounted () {
}, },
props:{
pageNo:{
type:Number,
default:1
}
},
created () { created () {
this.partyName = this.$route.query.partyName; this.partyName = this.$route.query.partyName;
this.houseListByGroup() this.houseListByGroup()
@ -84,7 +89,8 @@
this.$emit('handleClickHouse', item) this.$emit('handleClickHouse', item)
}, },
pageCurrentHandle(val) { pageCurrentHandle(val) {
this.pageNo = val // this.pageNo = val;
// this.$emit('handelClickPageNo',val)
this.houseListByGroup() this.houseListByGroup()
}, },
houseListByGroup(){ houseListByGroup(){

10
src/views/iframe/index.vue

@ -1,12 +1,12 @@
<template> <template>
<div class="modal" > <div class="modal" >
<section v-if="type === 1"> <section v-show="type === 1">
<dyzxh @handleClickHouse="handleClickHouse" /> <dyzxh @handleClickHouse="handleClickHouse"/>
</section> </section>
<section v-if="type === 2"> <section v-show="type === 2">
<ryxx :houseId="houseId" :houseName="houseName" @handelClose="handelClose"/> <ryxx :houseId="houseId" :houseName="houseName" @handelClose="handelClose"/>
</section> </section>
<section v-if="type === 3"> <section v-show="type === 3">
<dyxx/> <dyxx/>
</section> </section>
</div> </div>
@ -42,7 +42,7 @@ import dyxx from "./dyxx.vue"
this.type = 2; this.type = 2;
this.houseId = item.houseId; this.houseId = item.houseId;
this.houseName = item.houseName; this.houseName = item.houseName;
} },
} }
} }
</script> </script>

47
src/views/next/screen-content-map/cpt/hsyf-iframe.vue

@ -8,19 +8,38 @@
* *
--> -->
<template> <template>
<div style="width: 100%; height: 100%;"> <div style="width: 100%; height: 100%;">
<div class='bg_img'> <div class='bg_img'>
</div> <iframe src="https://quanjingtong.cn/t/h3qde4mz8ly" frameborder="no" width="100%" height="100%" id="myIframe">
</iframe>
</div> </div>
</div>
</template> </template>
<script> <script>
export default { export default {
data () { data() {
return {} return {}
}, },
created () { }, created() { },
methods: {}, mounted() {
this.editIframeStyle()
},
methods: {
editIframeStyle() {
var iframeDocument = document.getElementById('myIframe').contentWindow.document;
console.log(iframeDocument,'seee');
//
var elements = iframeDocument.getElementsByClassName('vrModal-inner');
console.log(elements,'elements');
//
if (elements.length > 0) {
var element = elements[0];
element.style.width = "50%"; //
element.style.height = "50%"; //
}
}
},
components: {}, components: {},
computed: {}, computed: {},
watch: {} watch: {}
@ -29,13 +48,13 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.bg_img { .bg_img {
background: url('~@/assets/images/map/hsyf.jpg'); // background: url('~@/assets/images/map/hsyf.jpg');
background-size: 100% 100%; // background-size: 100% 100%;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
} }
</style> </style>

Loading…
Cancel
Save