安全管理(数字工地)

This commit is contained in:
骆乐 2023-01-10 23:53:26 +08:00
parent c6a081c0cb
commit e2e82c2192
5 changed files with 15 additions and 7 deletions

View File

@ -159,6 +159,7 @@ export default {
if (this.$route.path.indexOf('/firm/towerManage') != -1) {
this.$emit('getTreeData', this.treeData)
}
console.log('areaTree.vue传递设备列表数据 --- this.activeLive : ',this.activeLive)
if (this.activeLive) {
this.treeData.forEach(item => {
if (this.activeLive.devSn == item.serialNumber) {

View File

@ -1,5 +1,5 @@
.videoOverview{
position: relative;
// position: relative;
// background-color: #03112b;
height: 100%;
.videoTop{

View File

@ -2,7 +2,7 @@
<Card title="数字工地" showRefresh @query="handleQuery" class="mapContent">
<vue-scroll>
<div class="pane mapUrl">
<img :src="imageUrlMap" alt="" class="bgPackImg" ref="bgPackImg" @load="countBoxSize" style="width: 100%; height: auto; position: relative">
<img :src="imageUrlMap" alt="" class="bgPackImg" ref="bgPackImg" @load="countBoxSize" style="width: 100%; height: 571; position: relative;top:7px">
<div
class="point"
:class="[`i-video`, { show: tabIndex === 0 || point === tabs[tabIndex].value }]"
@ -18,7 +18,7 @@
</div>
<FaceGageDialog v-if="gateDialog" :close="() => (gateDialog = false)" :data="faceGateData" />
<EnvironmentDialog v-if="environmentDialog" :data="environmentInfo" :close="() => (environmentDialog = false)" />
<VideoDialog v-if="videoDialog" :close="() => (videoDialog = false)" />
<VideoDialog v-if="videoDialog" :close="() => (videoDialog = false)" :data="pointdata" />
<ElevatorDialog v-if="elevatorDialog" :close="() => (elevatorDialog = false)" />
<TowerDialog v-if="towerDialog" :close="() => (towerDialog = false)" />
</div>
@ -57,6 +57,7 @@ export default {
},
data() {
return {
pointdata:{},
projectSn: this.$store.state.projectSn,
tabIndex: 0,
tabs: [
@ -112,6 +113,7 @@ export default {
}
//
selectDevCoordinateListApi(data).then(res => {
console.log("获取设备信息 :"+JSON.stringify(res.result));
this.points = res.result
})
},
@ -129,6 +131,7 @@ export default {
this.tabIndex = index
},
handlePoint(point) {
this.pointdata = point
this.videoDialog = true
},
getFaceGateInfo() {

View File

@ -5,7 +5,6 @@
<AreaTree @playParams="getPlayParams" :activeLive="activeLiveData" :videoType="1"></AreaTree>
<VideoModule
class="playVideoBox playVideoBox2"
:class="{ isIframe: isIframe }"
:value="playList"
:type="'1x1'"
:displayBottomMod="true"
@ -28,8 +27,13 @@ import VideoModule from '@/components/videoModule/videoModule'
export default {
components: { AreaTree, VideoModule },
props: {
close: {
data: {
type: Object,
required: true,
default: () => ({})
},
close: {
type: Function,
default: () => false
}
},
@ -37,7 +41,7 @@ export default {
return {
videoList: [],
playList: [],
activeLiveData: { devSn: '' }
activeLiveData: { devSn: this.data.devSn}
}
},
methods: {

View File

@ -39,7 +39,7 @@
<script>
import LeftOne from './leftOne'
import LeftTwo from './leftTwo'
import LeftThree from './leftThree'
import LeftThree from './LeftThree'
import LeftFour from './leftFour'
import Center from './center'
import CenterBOne from './centerBOne'