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/triangleBarChart.vue | 37 ++++++++++++++++++++++++++----------- 1 files changed, 26 insertions(+), 11 deletions(-) diff --git a/src/components/charts/triangleBarChart.vue b/src/components/charts/triangleBarChart.vue index 6161ca5..28cdfa1 100644 --- a/src/components/charts/triangleBarChart.vue +++ b/src/components/charts/triangleBarChart.vue @@ -68,17 +68,32 @@ }, toParentPage(value) { if (typeof (value) == 'string') { - window.parent.parent.postMessage({ - cmd: "syncPage", - params: { - pageInfo: { - label: "鐢垫簮瀹炴椂鍛婅", - name: "powerRealtimeInfo", - src: '#/powerRealtimeInfo/?alarmType=' + value, - closable: true - }, - } - }, "*"); + if (sessionStorage.getItem('newPlatform') == 1) { + window.parent.parent.postMessage({ + cmd: "syncPage", + params: { + pageInfo: { + label: "鐢垫簮瀹炴椂鍛婅", + name: "powerRealtimeInfo", + src: '/alarmMager/powerRealtimeInfo/?alarmType=' + value, + closable: true + }, + } + }, "*"); + } else { + window.parent.parent.postMessage({ + cmd: "syncPage", + params: { + pageInfo: { + label: "鐢垫簮瀹炴椂鍛婅", + name: "powerRealtimeInfo", + src: '#/powerRealtimeInfo/?alarmType=' + value, + closable: true + }, + } + }, "*"); + } + } }, setOption(opt) { -- Gitblit v1.9.1