diff --git a/.env.cc b/.env.cc
index cb1e07ab..b34b1663 100644
--- a/.env.cc
+++ b/.env.cc
@@ -20,6 +20,8 @@ VUE_APP_YDXCX_URL = 'images/cc/ydxcx.jpg'
VUE_APP_RECORD_NUMBER = '沪ICP备2021036275号-1'
# 系统名
VUE_APP_SYSTEM_NAME = '数字能源一体化平台'
+# 公司名
+VUE_APP_COMPANY_NAME = '上海长城开关厂有限公司'
# 系统登录页 login-green、login-blue-black、login-blue-white
#VUE_APP_LOGIN_PAGE = 'login-green'
#VUE_APP_LOGIN_PAGE = 'login-blue-black'
diff --git a/.env.ccprod b/.env.ccprod
index 40f4e997..df766b89 100644
--- a/.env.ccprod
+++ b/.env.ccprod
@@ -21,6 +21,8 @@ VUE_APP_YDXCX_URL = 'images/cc/ydxcx.jpg'
VUE_APP_RECORD_NUMBER = '沪ICP备2021036275号-1'
# 系统名
VUE_APP_SYSTEM_NAME = '数字能源一体化平台'
+# 公司名
+VUE_APP_COMPANY_NAME = '上海长城开关厂有限公司'
# 系统登录页 login-green、login-blue-black、login-blue-white
#VUE_APP_LOGIN_PAGE = 'login-green'
#VUE_APP_LOGIN_PAGE = 'login-blue-black'
diff --git a/.env.dr b/.env.dr
index edb7b759..45e3ea27 100644
--- a/.env.dr
+++ b/.env.dr
@@ -20,6 +20,8 @@ VUE_APP_YDXCX_URL = 'images/dr/ydxcx.jpg'
VUE_APP_RECORD_NUMBER = '闽ICP备2023009805号-2'
# 系统名称
VUE_APP_SYSTEM_NAME = 'DS-service'
+# 公司名
+VUE_APP_COMPANY_NAME = '德润(福建)物联科技有限公司'
# 系统登录页 login-green、login-blue-black、login-blue-white
#VUE_APP_LOGIN_PAGE = 'login-green'
#VUE_APP_LOGIN_PAGE = 'login-blue-black'
diff --git a/.env.drgy b/.env.drgy
index 28adb00e..09a0548b 100644
--- a/.env.drgy
+++ b/.env.drgy
@@ -20,6 +20,8 @@ VUE_APP_YDXCX_URL = 'images/drgy/ydxcx.jpg'
VUE_APP_RECORD_NUMBER = '沪ICP备2024070570号-1'
# 系统名称
VUE_APP_SYSTEM_NAME = '数字一体化管理系统'
+# 公司名
+VUE_APP_COMPANY_NAME = '上海德润谷云物联科技有限公司'
# 系统登录页 login-green、login-blue-black、login-blue-white
#VUE_APP_LOGIN_PAGE = 'login-green'
#VUE_APP_LOGIN_PAGE = 'login-blue-black'
diff --git a/.env.drgyprod b/.env.drgyprod
index 2983aeb4..815f45bd 100644
--- a/.env.drgyprod
+++ b/.env.drgyprod
@@ -21,6 +21,8 @@ VUE_APP_YDXCX_URL = 'images/drgy/ydxcx.jpg'
VUE_APP_RECORD_NUMBER = '沪ICP备2024070570号-1'
# 系统名称
VUE_APP_SYSTEM_NAME = '数字一体化管理系统'
+# 公司名
+VUE_APP_COMPANY_NAME = '上海德润谷云物联科技有限公司'
# 系统登录页 login-green、login-blue-black、login-blue-white
VUE_APP_LOGIN_PAGE = 'login-green'
#VUE_APP_LOGIN_PAGE = 'login-blue-black'
diff --git a/.env.drprod b/.env.drprod
index fe61b6e4..b0cdfee0 100644
--- a/.env.drprod
+++ b/.env.drprod
@@ -21,6 +21,8 @@ VUE_APP_YDXCX_URL = 'images/dr/ydxcx.jpg'
VUE_APP_RECORD_NUMBER = '闽ICP备2023009805号-2'
# 系统名称
VUE_APP_SYSTEM_NAME = 'DS-service'
+# 公司名
+VUE_APP_COMPANY_NAME = '德润(福建)物联科技有限公司'
# 系统登录页 login-green、login-blue-black、login-blue-white
#VUE_APP_LOGIN_PAGE = 'login-green'
#VUE_APP_LOGIN_PAGE = 'login-blue-black'
diff --git a/src/views/bigScreenIframe/index.vue b/src/views/bigScreenIframe/index.vue
index e992982c..1f15e438 100644
--- a/src/views/bigScreenIframe/index.vue
+++ b/src/views/bigScreenIframe/index.vue
@@ -1,6 +1,6 @@
-
+
@@ -29,9 +29,18 @@ export default {
created() {
this.token = this.getCookie("Admin-Token");
// this.src = process.env.VUE_APP_BIGSCREEN_PLATFORM_URL + "?token=" + this.token;
+
+ // document.getElementById('bigIframe').onload = function () {
+ //
+ // }
+
},
mounted() {
this.iframeRef = this.$refs.iframeRef;
+ // window.addEventListener('message', this.receiveMsg, false);
+ },
+ beforeMount() {
+ // window.removeEventListener('message', this.receiveMsg, false);
},
methods: {
getCookie(name) {
@@ -46,10 +55,36 @@ export default {
},
onIframeLoad() {
this.loading = false;
+ // const iframeContentWindow = this.iframeRef.contentWindow;
+ // const domain = this.extractDomain(this.iframeUrl);
+ // console.log("iframeContentWindow",iframeContentWindow.location)
+
+ // setInterval(()=>{
+ // // test.window.postMessage('hello, child!', 'http://127.0.0.1:8002');
+ // let obj = {
+ // type: 'GlobalVar',
+ // key: 'nowTime',
+ // data: new Date()
+ // }
+ // iframeContentWindow.postMessage(obj, domain);
+ // console.log("父页面-发送消息")
+ // },10000)
+ },
+ receiveMsg(e) {
+ console.log("父页面-接收消息",e)
},
onIframeError() {
this.loading = false;
console.error("Iframe load failed.");
+ },
+ extractDomain(url) {
+ try {
+ const urlObj = new URL(url);
+ return urlObj.origin;
+ } catch (error) {
+ console.error("Invalid URL:", error);
+ return "*"; // 如果 URL 无效,使用通配符
+ }
}
}
};
diff --git a/src/views/login-blue-black.vue b/src/views/login-blue-black.vue
index 1863be61..3fedd495 100644
--- a/src/views/login-blue-black.vue
+++ b/src/views/login-blue-black.vue
@@ -102,7 +102,8 @@
@@ -144,6 +145,7 @@ export default {
loading: false,
redirect: undefined,
recordNumber: '',
+ companyName:''
};
},
watch: {
@@ -162,6 +164,7 @@ export default {
this.logoUrl = require('@/assets/' + process.env.VUE_APP_LGOG_URL);
this.systemName = process.env.VUE_APP_SYSTEM_NAME;
this.recordNumber = process.env.VUE_APP_RECORD_NUMBER;
+ this.companyName = process.env.VUE_APP_COMPANY_NAME;
// this.getCode();
this.getCookie();
diff --git a/src/views/login-blue-white.vue b/src/views/login-blue-white.vue
index 20cf5a45..eccdd014 100644
--- a/src/views/login-blue-white.vue
+++ b/src/views/login-blue-white.vue
@@ -104,7 +104,8 @@
@@ -147,6 +148,7 @@ export default {
loading: false,
redirect: undefined,
recordNumber: '',
+ companyName:''
};
},
watch: {
@@ -166,6 +168,7 @@ export default {
this.bannerUrl = require('@/assets/' + process.env.VUE_APP_BANNER_URL);
this.systemName = process.env.VUE_APP_SYSTEM_NAME;
this.recordNumber = process.env.VUE_APP_RECORD_NUMBER;
+ this.companyName = process.env.VUE_APP_COMPANY_NAME;
// this.getCode();
this.getCookie();
diff --git a/src/views/login-green.vue b/src/views/login-green.vue
index 6dd1c385..69defb3d 100644
--- a/src/views/login-green.vue
+++ b/src/views/login-green.vue
@@ -99,7 +99,8 @@
@@ -141,6 +142,7 @@ export default {
loading: false,
redirect: undefined,
recordNumber: '',
+ companyName:''
};
},
watch: {
@@ -159,6 +161,7 @@ export default {
this.logoUrl = require('@/assets/' + process.env.VUE_APP_LGOG_URL);
this.systemName = process.env.VUE_APP_SYSTEM_NAME;
this.recordNumber = process.env.VUE_APP_RECORD_NUMBER;
+ this.companyName = process.env.VUE_APP_COMPANY_NAME;
// this.getCode();
this.getCookie();