From a05920b3f4650251313034c7f5997622bfe765bf Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Fri, 19 Aug 2022 15:54:20 +0800 Subject: [PATCH] =?UTF-8?q?3D=E5=BA=93=E6=88=BF=E6=91=84=E5=83=8F=E5=A4=B4?= =?UTF-8?q?=E5=BD=95=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warehouse3D/archivesStorage/index.vue | 2 - .../warehouse3D/collateRoom/index.vue | 3 - src/views/storeManage/warehouse3D/index.vue | 23 ++++--- .../storeManage/warehouse3D/module/video.vue | 60 ++++++++++++++----- .../warehouse3D/readRoom/index.vue | 3 - .../storeManage/warehouse3DConfig/index.vue | 2 - 6 files changed, 56 insertions(+), 37 deletions(-) diff --git a/src/views/storeManage/warehouse3D/archivesStorage/index.vue b/src/views/storeManage/warehouse3D/archivesStorage/index.vue index 9b51dd1..b5ea241 100644 --- a/src/views/storeManage/warehouse3D/archivesStorage/index.vue +++ b/src/views/storeManage/warehouse3D/archivesStorage/index.vue @@ -194,7 +194,6 @@ export default { getIframeLoading(value) { // console.log(`我是iframe传过来的参数:${value}`) if (value === 'false') { - console.log(this.allDisplayConfigData) this.allDisplayConfigData.forEach(element => { if ((!element.isDisplay || !element.bindState) && element.divPosition.includes('OAO')) { this.handleHide(element.divPosition) @@ -250,7 +249,6 @@ export default { if (this.allDeviceIds.length > 0) { thirdApi.getRealTimeData({ ids: this.allDeviceIds, url: this.url }).then((data) => { this.oaoMessage.splice(0, this.oaoMessage.length) - console.log(this.displayConfigData) this.displayConfigData.forEach(element => { if (element.divPosition.includes('TOP') && element.deviceSpecParams[0]) { // 获取页面div显示的数据 diff --git a/src/views/storeManage/warehouse3D/collateRoom/index.vue b/src/views/storeManage/warehouse3D/collateRoom/index.vue index e3c9a69..6d10a7e 100644 --- a/src/views/storeManage/warehouse3D/collateRoom/index.vue +++ b/src/views/storeManage/warehouse3D/collateRoom/index.vue @@ -69,7 +69,6 @@ export default { getIframeLoading(value) { // console.log(`我是iframe传过来的参数:${value}`) if (value === 'false') { - console.log(this.allDisplayConfigData) this.allDisplayConfigData.forEach(element => { if ((!element.isDisplay || !element.bindState) && element.divPosition.includes('OAO')) { this.handleHide(element.divPosition) @@ -99,7 +98,6 @@ export default { if (this.allDeviceIds.length > 0) { thirdApi.getRealTimeData({ ids: this.allDeviceIds, url: this.url }).then((data) => { this.oaoMessage.splice(0, this.oaoMessage.length) - console.log(this.displayConfigData) this.displayConfigData.forEach(element => { if (element.divPosition.includes('OAO') && element.deviceSpecParams[0]) { // 获取3D弹窗显示的数据 @@ -140,7 +138,6 @@ export default { // this.$refs.camera.videoTitle = _this.deviceId // }) // } - // console.log(_this.deviceId) // } // }, } diff --git a/src/views/storeManage/warehouse3D/index.vue b/src/views/storeManage/warehouse3D/index.vue index d914898..1315502 100644 --- a/src/views/storeManage/warehouse3D/index.vue +++ b/src/views/storeManage/warehouse3D/index.vue @@ -91,19 +91,16 @@ export default { } // 摄像头 if (data.includes('CAM')) { - _this.$nextTick(() => { - const camConfig = this.camConfigData.find((x) => { return x.divPosition === data }) - console.log(1, camConfig) - if (camConfig && camConfig.isDisplay && camConfig.bindState) { - console.log(2, camConfig) - // ToDo.... - this.$refs.camera.openVideoVisible = true - // 后期看接口调试变化 - this.$refs.camera.camConfig = camConfig - this.$refs.camera.videoTitle = data - this.$refs.camera.play() - } - }) + const camConfig = this.camConfigData.find((x) => { return x.divPosition === data }) + if (camConfig && camConfig.isDisplay && camConfig.bindState) { + // console.log(2, camConfig) + // // ToDo.... + this.$refs.camera.openVideoVisible = true + // 后期看接口调试变化 + this.$refs.camera.camConfig = camConfig + this.$refs.camera.videoTitle = data + this.$refs.camera.play() + } } } }, diff --git a/src/views/storeManage/warehouse3D/module/video.vue b/src/views/storeManage/warehouse3D/module/video.vue index 8a885a4..5ae0020 100644 --- a/src/views/storeManage/warehouse3D/module/video.vue +++ b/src/views/storeManage/warehouse3D/module/video.vue @@ -1,16 +1,18 @@ diff --git a/src/views/storeManage/warehouse3D/readRoom/index.vue b/src/views/storeManage/warehouse3D/readRoom/index.vue index 20fbd44..1d692bb 100644 --- a/src/views/storeManage/warehouse3D/readRoom/index.vue +++ b/src/views/storeManage/warehouse3D/readRoom/index.vue @@ -60,13 +60,11 @@ export default { methods: { // 加载完成状态传值 getIframeLoading(value) { - // console.log(`我是iframe传过来的参数:${value}`) // if (value === 'false') { // this.handleHide(element.divPosition) // } // this.deviceState() if (value === 'false') { - console.log(this.allDisplayConfigData) this.allDisplayConfigData.forEach(element => { if ((!element.isDisplay || !element.bindState) && element.divPosition.includes('OAO')) { this.handleHide(element.divPosition) @@ -95,7 +93,6 @@ export default { if (this.allDeviceIds.length > 0) { thirdApi.getRealTimeData({ ids: this.allDeviceIds, url: this.url }).then((data) => { this.oaoMessage.splice(0, this.oaoMessage.length) - console.log(this.displayConfigData) this.displayConfigData.forEach(element => { if (element.divPosition.includes('OAO') && element.deviceSpecParams[0]) { // 获取3D弹窗显示的数据 diff --git a/src/views/storeManage/warehouse3DConfig/index.vue b/src/views/storeManage/warehouse3DConfig/index.vue index f1213b9..c4a5c3c 100644 --- a/src/views/storeManage/warehouse3DConfig/index.vue +++ b/src/views/storeManage/warehouse3DConfig/index.vue @@ -132,7 +132,6 @@ export default { this.$nextTick(function() { // this.form.deviceSpecParams const selectedParams = this.paramsOptions.filter((item) => { return this.form.deviceSpecParams === item.value || (Array.isArray(this.form.deviceSpecParams) && this.form.deviceSpecParams.includes(item.value)) }) - console.log(this.form.deviceSpecParams) if (selectedParams.length > 0) { this.$refs.paramsSelect.selectedLabel = selectedParams.map((item) => { return item.label }).join(',') } else { @@ -261,7 +260,6 @@ export default { if (this.form.deviceInfo.id) { getParams({ deviceInfoId: this.form.deviceInfo.id }).then((data) => { this.paramsOptions = data.map(data => { return { value: data.id, label: data.paramName, info: data.paramId, self: data } }) - console.log(3333, this.paramsOptions) }) } },