fast(登录): 登录添加公司名称和备案查询跳转

This commit is contained in:
fhysy 2024-10-10 11:09:32 +08:00
parent 7473fcdf3c
commit fb26b864a1
10 changed files with 60 additions and 4 deletions

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -1,6 +1,6 @@
<template>
<div v-loading="loading" class="big-screen-iframe" style="height: calc(100vh - 0px);">
<iframe ref="iframeRef" :src="iframeUrl" allow="*" allowfullscreen="true" class="big-iframe" frameborder="0" style="width: 100%; height: 100%;" @error="onIframeError" @load="onIframeLoad"/>
<iframe id="bigIframe" ref="iframeRef" :src="iframeUrl" allow="*" allowfullscreen="true" class="big-iframe" frameborder="0" name='test' style="width: 100%; height: 100%;" @error="onIframeError" @load="onIframeLoad"/>
</div>
</template>
@ -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 使
}
}
}
};

View File

@ -102,7 +102,8 @@
</div>
<!-- 底部 -->
<div class="el-login-footer">
<span>备案号{{ recordNumber }}</span>
<span><a href="https://beian.miit.gov.cn/" target="_blank">{{ recordNumber }}</a></span>
<span v-if="companyName"> | 版权所有 © {{ companyName }}</span>
</div>
</div>
</template>
@ -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();

View File

@ -104,7 +104,8 @@
</div>
<!-- 底部 -->
<div class="el-login-footer">
<span>备案号{{ recordNumber }}</span>
<span><a href="https://beian.miit.gov.cn/" target="_blank">{{ recordNumber }}</a></span>
<span v-if="companyName"> | 版权所有 © {{ companyName }}</span>
</div>
</div>
</template>
@ -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();

View File

@ -99,7 +99,8 @@
</div>
<!-- 底部 -->
<div class="el-login-footer">
<span>备案号{{ recordNumber }}</span>
<span><a href="https://beian.miit.gov.cn/" target="_blank">{{ recordNumber }}</a></span>
<span v-if="companyName"> | 版权所有 © {{ companyName }}</span>
</div>
</div>
</template>
@ -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();