@@ -209,7 +209,7 @@ export default {
},
data() {
return {
- lendData: [18203, 23489, 29034, 104970],
+ lendData: [100, 18203, 23489, 29034, 104970],
cateData: [1000, 700],
typeData: [1110, 2000, 800, 600, 900]
}
diff --git a/src/views/storeManage/warehouse3D/archivesStorage/index.vue b/src/views/storeManage/warehouse3D/archivesStorage/index.vue
index 2cfc900..ccea014 100644
--- a/src/views/storeManage/warehouse3D/archivesStorage/index.vue
+++ b/src/views/storeManage/warehouse3D/archivesStorage/index.vue
@@ -121,9 +121,12 @@ export default {
isScroll: false // 是否滚动
}
},
+ created() {
+ window.getIframeLoading = this.getIframeLoading // 把vue实例中的方法引用给window对象
+ },
mounted() {
const _this = this
- this.iframeWin = this.$refs.myIframe.contentWindow
+ _this.iframeWin = this.$refs.myIframe.contentWindow
// inframe 加载完成之后
document.getElementById('myIframe').onload = function() {
_this.deviceState()
@@ -131,6 +134,14 @@ export default {
window.addEventListener('message', this.handleMessageDevice)
},
methods: {
+ // 加载完成状态传值
+ getIframeLoading(value) {
+ // console.log(`我是iframe传过来的参数:${value}`)
+ if (value === 'false') {
+ this.handleHide('DAK_MO_OAO_001')
+ this.handleAlarm('DAK_MO_OAO_003')
+ }
+ },
// 传入设备状态data / 给iframe传初始值
deviceState(e) {
this.iframeWin.postMessage({
@@ -182,6 +193,10 @@ export default {
handleAlarm(deviceId) {
window.frames['iframeMap'].Myalert(deviceId, true)
},
+ // 设置是否显示
+ handleHide(deviceId) {
+ window.frames['iframeMap'].setYangGanCanshow(deviceId, false)
+ },
getData() {
this.tableData = data1.rows
},
diff --git a/src/views/storeManage/warehouse3D/collateRoom/index.vue b/src/views/storeManage/warehouse3D/collateRoom/index.vue
index 78adfa8..7608159 100644
--- a/src/views/storeManage/warehouse3D/collateRoom/index.vue
+++ b/src/views/storeManage/warehouse3D/collateRoom/index.vue
@@ -26,6 +26,9 @@ export default {
return {
}
},
+ created() {
+ window.getIframeLoading = this.getIframeLoading // 把vue实例中的方法引用给window对象
+ },
mounted() {
const _this = this
this.iframeWin = this.$refs.myIframe.contentWindow
@@ -36,6 +39,13 @@ export default {
// window.addEventListener('message', this.handleMessageDevice)
},
methods: {
+ // 加载完成状态传值
+ getIframeLoading(value) {
+ // console.log(`我是iframe传过来的参数:${value}`)
+ if (value === 'false') {
+ this.handleHide('ZLS_MO_OAO_001')
+ }
+ },
// 传入设备状态data / 给iframe传初始值
deviceState(e) {
this.iframeWin.postMessage({
@@ -48,6 +58,10 @@ export default {
}
]
}, '*')
+ },
+ // 设置是否显示
+ handleHide(deviceId) {
+ window.frames['iframeMap'].setYangGanCanshow(deviceId, false)
}
// 点击查看设备状况
// handleMessageDevice(event) {
diff --git a/src/views/storeManage/warehouse3D/index.vue b/src/views/storeManage/warehouse3D/index.vue
index 3614d36..e0a1b48 100644
--- a/src/views/storeManage/warehouse3D/index.vue
+++ b/src/views/storeManage/warehouse3D/index.vue
@@ -1,5 +1,5 @@
-
+
-
diff --git a/src/views/storeManage/warehouse3D/readRoom/index.vue b/src/views/storeManage/warehouse3D/readRoom/index.vue
index f33789e..71294dd 100644
--- a/src/views/storeManage/warehouse3D/readRoom/index.vue
+++ b/src/views/storeManage/warehouse3D/readRoom/index.vue
@@ -28,6 +28,9 @@ export default {
tableData: []
}
},
+ created() {
+ window.getIframeLoading = this.getIframeLoading // 把vue实例中的方法引用给window对象
+ },
mounted() {
const _this = this
this.iframeWin = this.$refs.myIframe.contentWindow
@@ -38,6 +41,13 @@ export default {
// window.addEventListener('message', this.handleMessageDevice)
},
methods: {
+ // 加载完成状态传值
+ getIframeLoading(value) {
+ // console.log(`我是iframe传过来的参数:${value}`)
+ if (value === 'false') {
+ this.handleHide('YLS_MO_OAO_001')
+ }
+ },
// 传入设备状态data / 给iframe传初始值
deviceState(e) {
this.iframeWin.postMessage({
@@ -50,6 +60,10 @@ export default {
}
]
}, '*')
+ },
+ // 设置是否显示
+ handleHide(deviceId) {
+ window.frames['iframeMap'].setYangGanCanshow(deviceId, false)
}
// 点击查看设备状况
// handleMessageDevice(event) {
diff --git a/src/views/system/archiveStatistics/index.vue b/src/views/system/archiveStatistics/index.vue
index 77d0cd7..5213db1 100644
--- a/src/views/system/archiveStatistics/index.vue
+++ b/src/views/system/archiveStatistics/index.vue
@@ -97,7 +97,7 @@ export default {
components: { lendAcross, catePie, typePie, BarEcharts, AcrossBar, LineEchart },
data() {
return {
- lendData: [18203, 23489, 29034, 104970],
+ lendData: [100, 18203, 23489, 29034, 104970],
cateData: [1000, 700],
typeData: [1110, 2000, 800, 600, 900]
}