From f868ff46ef4fb25a01364f3c5d0fe220d32b7ad0 Mon Sep 17 00:00:00 2001
From: whyczyk <525500596@qq.com>
Date: 星期二, 01 三月 2022 14:25:16 +0800
Subject: [PATCH] 大屏对接新平台

---
 src/components/charts/latticeBar.vue |   36 +++++++++++++++++++++++++-----------
 1 files changed, 25 insertions(+), 11 deletions(-)

diff --git a/src/components/charts/latticeBar.vue b/src/components/charts/latticeBar.vue
index f38d5eb..9130fbb 100644
--- a/src/components/charts/latticeBar.vue
+++ b/src/components/charts/latticeBar.vue
@@ -67,17 +67,31 @@
 		},
 		toParentPage(value) {
 			if (typeof (value) == 'string') {
-				window.parent.parent.postMessage({
-					cmd: "syncPage",
-					params: {
-						pageInfo: {
-							label: "鐢垫睜瀹炴椂鍛婅",
-							name: "batteryrTimequery",
-							src: "#/batteryrTimequery/?alarmType=" + value,
-							closable: true
-						},
-					}
-				}, "*");
+				if (sessionStorage.getItem('newPlatform') == 1) {
+					window.parent.parent.postMessage({
+						cmd: "syncPage",
+						params: {
+							pageInfo: {
+								label: "鐢垫睜瀹炴椂鍛婅",
+								name: "batteryrTimequery",
+								src: "/alarmMager/batteryrTimequery/?alarmType=" + value,
+								closable: true
+							},
+						}
+					}, "*");
+				} else {
+					window.parent.parent.postMessage({
+						cmd: "syncPage",
+						params: {
+							pageInfo: {
+								label: "鐢垫睜瀹炴椂鍛婅",
+								name: "batteryrTimequery",
+								src: "#/batteryrTimequery/?alarmType=" + value,
+								closable: true
+							},
+						}
+					}, "*");
+				}
 			}
 		},
 		setOption(opt) {

--
Gitblit v1.9.1