中建四局(质量管理):完成数字质控布局
This commit is contained in:
parent
2f803d09b5
commit
4826f79bd7
@ -1,14 +1,51 @@
|
|||||||
<template>
|
<template>
|
||||||
<Card title="数字质控">
|
<Card title="数字质控">
|
||||||
数字质控
|
<div class="bim">
|
||||||
|
<iframe src="/bim.html" frameborder="0" width="100%" height="100%" id="iframe"></iframe>
|
||||||
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { projectJlwBimListApi, getJlwTokenApi } from '@/assets/js/api/project'
|
||||||
import Card from '../components/Card.vue'
|
import Card from '../components/Card.vue'
|
||||||
export default {
|
export default {
|
||||||
components: { Card }
|
components: { Card },
|
||||||
|
mounted() {
|
||||||
|
this.iframe = document.getElementById('iframe')
|
||||||
|
this.getModelList()
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
iframe: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getModelList() {
|
||||||
|
projectJlwBimListApi({ projectSn: this.$store.state.projectSn }).then(res => {
|
||||||
|
this.buildList = res.result.page.records
|
||||||
|
res.result.page.records.forEach(item => {
|
||||||
|
if (item.isEnable) {
|
||||||
|
this.getToken(item.fileId)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getToken(fileId) {
|
||||||
|
getJlwTokenApi({ fileId, projectSn: this.$store.state.projectSn }).then(res => {
|
||||||
|
const token = res.result
|
||||||
|
this.iframe.contentWindow.postMessage({ token })
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style></style>
|
<style lang="less" scoped>
|
||||||
|
.bim {
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 10px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user