feat: 根据端口9408完成登录页和标签页标题,首页地址的修改
This commit is contained in:
parent
97621d8a18
commit
1eefd8299d
BIN
god-ui/public/images/cjcx.png
Normal file
BIN
god-ui/public/images/cjcx.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 MiB |
@ -166,6 +166,10 @@ export default {
|
|||||||
this.title = '工业视觉平台'
|
this.title = '工业视觉平台'
|
||||||
document.title = '工业视觉平台'
|
document.title = '工业视觉平台'
|
||||||
break;
|
break;
|
||||||
|
case '9408':
|
||||||
|
this.title = '车间产线出入库管理系统'
|
||||||
|
document.title = '车间产线出入库管理系统'
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
||||||
this.title = ' '
|
this.title = ' '
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
<cdapChart v-else-if="port === '9404'" />
|
<cdapChart v-else-if="port === '9404'" />
|
||||||
<interface-home v-else-if="port === '9406'" />
|
<interface-home v-else-if="port === '9406'" />
|
||||||
<machine v-else-if="port === '9407'" />
|
<machine v-else-if="port === '9407'" />
|
||||||
|
<interface-home v-else-if="port === '9408'" />
|
||||||
<operate-home v-else-if="port === '80' || port === ''"></operate-home>
|
<operate-home v-else-if="port === '80' || port === ''"></operate-home>
|
||||||
<workshop v-else-if="port === '9408'"></workshop>
|
<workshop v-else-if="port === '9408'"></workshop>
|
||||||
<home-page v-else></home-page>
|
<home-page v-else></home-page>
|
||||||
|
@ -71,7 +71,7 @@ export default {
|
|||||||
name: "Login",
|
name: "Login",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: '',
|
title: '欢迎登录',
|
||||||
codeUrl: "",
|
codeUrl: "",
|
||||||
loginForm: {
|
loginForm: {
|
||||||
username: "",
|
username: "",
|
||||||
@ -117,6 +117,7 @@ export default {
|
|||||||
handlePort() {
|
handlePort() {
|
||||||
// 根据端口号动态修改登录页样式
|
// 根据端口号动态修改登录页样式
|
||||||
let port = window.location.port;
|
let port = window.location.port;
|
||||||
|
console.log("PORT", port);
|
||||||
const loginDom = document.getElementById('loginDom');
|
const loginDom = document.getElementById('loginDom');
|
||||||
switch (port) {
|
switch (port) {
|
||||||
case '9130':
|
case '9130':
|
||||||
@ -295,6 +296,27 @@ export default {
|
|||||||
const dom31 = document.querySelector('.login-form')
|
const dom31 = document.querySelector('.login-form')
|
||||||
dom31.style.marginLeft = '64vw'
|
dom31.style.marginLeft = '64vw'
|
||||||
break;
|
break;
|
||||||
|
case '9408':
|
||||||
|
document.title = '车间产线出入库管理系统'
|
||||||
|
loginDom.style.backgroundImage = 'url(/images/cjcx.png)'
|
||||||
|
this.redirect = '/index'
|
||||||
|
const dom311 = document.querySelector('.login-form')
|
||||||
|
dom311.style.marginLeft = '39vw'
|
||||||
|
const _title1 = document.createElement('div');
|
||||||
|
_title1.innerHTML = '车间产线出入库管理系统';
|
||||||
|
_title1.style.position = 'fixed';
|
||||||
|
_title1.style.width = '33rem';
|
||||||
|
_title1.style.left = '3vw';
|
||||||
|
_title1.style.top = '4vh'
|
||||||
|
_title1.style.color = 'transparent'
|
||||||
|
_title1.style.textAlign = 'center'
|
||||||
|
_title1.style.fontSize = '3rem'
|
||||||
|
_title1.style.backgroundImage = 'linear-gradient(to top, #1890ff, #1890ff80)'
|
||||||
|
_title1.style.webkitBackgroundClip = 'text'
|
||||||
|
|
||||||
|
_title1.style.fontFamily = 'BiaoTiFont'
|
||||||
|
loginDom.appendChild(_title1)
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
document.title = ''
|
document.title = ''
|
||||||
loginDom.style.backgroundImage = 'url(/images/gangyin-bg.png)'
|
loginDom.style.backgroundImage = 'url(/images/gangyin-bg.png)'
|
||||||
|
Loading…
Reference in New Issue
Block a user