湖里大屏(BIM中心):完成BIM协同布局

This commit is contained in:
Jack 2022-08-22 15:49:34 +08:00
parent 1977304dba
commit 98eeae12e4
2 changed files with 135 additions and 59 deletions

View File

@ -0,0 +1,56 @@
<template>
<Card title="BIM协同">
<div class="table">
<div class="row">
<div class="td">规划报批</div>
<div class="td">施工图审查</div>
<div class="td">竣工验收</div>
</div>
<div class="row" v-for="(row, i) in list" :key="i">
<div class="td" :class="{ red: !row[0] }">{{ row[0] ? '符合' : '不符合' }}</div>
<div class="td" :class="{ red: !row[1] }">{{ row[1] ? '符合' : '不符合' }}</div>
<div class="td" :class="{ red: !row[2] }">{{ row[2] ? '已验收' : '未验收' }}</div>
</div>
</div>
</Card>
</template>
<script>
import Card from '../components/Card.vue'
// import { modelReport } from '@/assets/json/jlw/bim.json'
export default {
components: { Card },
mounted() {
console.log(this.list, '收待发放')
},
data() {
// return { modelReport }
const list = new Array(6).fill(0).map((item, index) => new Array(3).fill(0).map(() => (index === 3 ? 0 : 1)))
return {
list
}
},
methods: {}
}
</script>
<style lang="less" scoped>
.table {
.row {
margin-bottom: 20px;
font-size: 12px;
display: flex;
.td {
flex: 1;
text-align: center;
&.red {
color: #ff6c7f;
}
}
&:nth-child(1) {
font-size: 14px;
color: #67d4d9;
}
}
}
</style>

View File

@ -1,7 +1,13 @@
<template>
<!-- CIM -->
<div class="container">
<div class="leftBox">
<div class="charts">
<BimCoordination />
</div>
<div class="bim">
<iframe src="/bim.html" frameborder="0" width="100%" height="100%" id="iframe" @load="load"></iframe>
</div>
<!-- <div class="leftBox">
<div class="leftTop">
<leftTop title="模型" />
</div>
@ -19,23 +25,25 @@
<div class="rightCenter">
<rightCenter title="设计变更" />
</div>
</div>
</div> -->
</div>
</template>
<script>
import leftTop from './leftTop'
import leftCenter from './leftCenter'
import rightTop from './rightTop'
import rightCenter from './rightCenter'
// import leftTop from './leftTop'
// import leftCenter from './leftCenter'
// import rightTop from './rightTop'
// import rightCenter from './rightCenter'
import BimCoordination from './BimCoordination'
import { projectJlwBimListApi, getJlwTokenApi } from '@/assets/js/api/project'
export default {
components: {
leftTop,
leftCenter,
rightTop,
rightCenter
// leftTop,
// leftCenter,
// rightTop,
// rightCenter
BimCoordination
},
mounted() {
this.iframe = document.getElementById('iframe')
@ -76,59 +84,71 @@ export default {
<style lang="less" scoped>
.container {
position: relative;
display: flex;
justify-content: space-between;
width: 100%;
height: 100%;
background-color: #07162b;
background-image: url('~@/assets/images/projectImg/Bimbgc.png');
}
.topBox {
height: 20%;
}
.leftBox {
position: relative;
width: 25%;
height: 100%;
margin-right: 15px;
margin-left: 15px;
.leftTop {
height: 33%;
margin-bottom: 15px;
.charts {
width: 420px;
}
.leftCenter {
height: 33%;
margin-bottom: 15px;
.bim {
padding: 8px;
width: calc(100% - 440px);
height: 100%;
}
.leftBottom {
height: 33%;
}
z-index: 2;
}
.centerBox {
position: absolute;
margin-right: 15px;
padding-left: 6px;
width: 100%;
height: 100%;
line-height: 30px;
font-size: 18px;
color: #6ee4f0;
}
// .container {
// position: relative;
// display: flex;
// justify-content: space-between;
// width: 100%;
// height: 100%;
// background-color: #07162b;
// background-image: url('~@/assets/images/projectImg/Bimbgc.png');
// }
// .topBox {
// height: 20%;
// }
// .leftBox {
// position: relative;
// width: 25%;
// height: 100%;
// margin-right: 15px;
// margin-left: 15px;
// .leftTop {
// height: 33%;
// margin-bottom: 15px;
// }
// .leftCenter {
// height: 33%;
// margin-bottom: 15px;
// }
// .leftBottom {
// height: 33%;
// }
// z-index: 2;
// }
// .centerBox {
// position: absolute;
// margin-right: 15px;
// padding-left: 6px;
// width: 100%;
// height: 100%;
// line-height: 30px;
// font-size: 18px;
// color: #6ee4f0;
// }
.rightBox {
position: relative;
width: 25%;
height: 100%;
.rightTop {
height: 33%;
margin-bottom: 15px;
}
.rightCenter {
height: 33%;
margin-bottom: 15px;
}
z-index: 2;
}
// .rightBox {
// position: relative;
// width: 25%;
// height: 100%;
// .rightTop {
// height: 33%;
// margin-bottom: 15px;
// }
// .rightCenter {
// height: 33%;
// margin-bottom: 15px;
// }
// z-index: 2;
// }
</style>