|
@@ -13,7 +13,7 @@
|
|
<el-col :span="12" class="comlogo"></el-col>
|
|
<el-col :span="12" class="comlogo"></el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<div class="grid-content bg-purple-dark title">
|
|
<div class="grid-content bg-purple-dark title">
|
|
- 工业应用操作系统
|
|
|
|
|
|
+ · 工业应用引擎
|
|
<!-- 智能制造平台 -->
|
|
<!-- 智能制造平台 -->
|
|
</div>
|
|
</div>
|
|
</el-col
|
|
</el-col
|
|
@@ -156,29 +156,33 @@ export default {
|
|
// 校验url
|
|
// 校验url
|
|
validateTenantId() {
|
|
validateTenantId() {
|
|
let tenantCode = this.$route.query['tenantCode']
|
|
let tenantCode = this.$route.query['tenantCode']
|
|
|
|
+ console.log("租户登录", tenantCode);
|
|
if (tenantCode != null) {
|
|
if (tenantCode != null) {
|
|
// 得到tenantId 查询裤中是否存在该租户
|
|
// 得到tenantId 查询裤中是否存在该租户
|
|
isTenantExist({tenantCode: tenantCode}).then(res => {
|
|
isTenantExist({tenantCode: tenantCode}).then(res => {
|
|
- if (res == undefined) {
|
|
|
|
- this.$router.push({path: "/401"})
|
|
|
|
- } else if (res.data?.tenantId) { // 判断当前编号是否存在库中
|
|
|
|
|
|
+ if (res.data?.tenantId) { // 判断当前编号是否存在库中
|
|
this.tenantId = res.data.tenantId;
|
|
this.tenantId = res.data.tenantId;
|
|
this.loginForm.tenantID = this.tenantId;
|
|
this.loginForm.tenantID = this.tenantId;
|
|
- if (res.data.loginPageConfiguration != null) {
|
|
|
|
- // 得到租户的信息
|
|
|
|
- this.config = res.data.loginPageConfiguration
|
|
|
|
- this.setConfig();
|
|
|
|
|
|
+ // 得到租户的信息
|
|
|
|
+ this.config = res.data.loginPageConfiguration
|
|
|
|
+ this.setConfig();
|
|
|
|
+ // 如果当前租户没有配置登录页面则不可访问
|
|
|
|
+ if (this.config == null && this.config == undefined) {
|
|
|
|
+ // this.$router.push({path: "/404"})
|
|
|
|
+ this.getCode();
|
|
|
|
+ this.getCookie();
|
|
|
|
+ } else {
|
|
|
|
+ this.getCode();
|
|
|
|
+ this.getCookie();
|
|
}
|
|
}
|
|
- this.getCode();
|
|
|
|
- this.getCookie();
|
|
|
|
} else {
|
|
} else {
|
|
- console.log("租户有问题!")
|
|
|
|
// 当前访问链接中的租户编号不存在
|
|
// 当前访问链接中的租户编号不存在
|
|
- this.$router.push({path: "/401"})
|
|
|
|
|
|
+ this.$router.push({path: "/404"})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- this.$router.push({path: "/401"})
|
|
|
|
|
|
+ console.log('跳转')
|
|
|
|
+ this.$router.push({path: "/404"})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
setConfig() {
|
|
setConfig() {
|
|
@@ -199,6 +203,9 @@ export default {
|
|
process.env.VUE_APP_BASE_IMG_API + loginPageBackgroundImage
|
|
process.env.VUE_APP_BASE_IMG_API + loginPageBackgroundImage
|
|
})`;
|
|
})`;
|
|
|
|
|
|
|
|
+ console.log("" + `url(${
|
|
|
|
+ process.env.VUE_APP_BASE_IMG_API + loginPageBackgroundImage
|
|
|
|
+ })`)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -215,6 +222,7 @@ export default {
|
|
// 设置title
|
|
// 设置title
|
|
if (loginPageTitle) {
|
|
if (loginPageTitle) {
|
|
let titleDom = document.getElementsByClassName("title");
|
|
let titleDom = document.getElementsByClassName("title");
|
|
|
|
+ console.log(titleDom);
|
|
if (titleDom.length > 0) {
|
|
if (titleDom.length > 0) {
|
|
titleDom[0].innerHTML = loginPageTitle;
|
|
titleDom[0].innerHTML = loginPageTitle;
|
|
}
|
|
}
|
|
@@ -223,6 +231,7 @@ export default {
|
|
// 设置meta信息
|
|
// 设置meta信息
|
|
if (windowTitle) {
|
|
if (windowTitle) {
|
|
document.title = windowTitle;
|
|
document.title = windowTitle;
|
|
|
|
+ console.dir(document);
|
|
}
|
|
}
|
|
// 设置页面描述
|
|
// 设置页面描述
|
|
if (loginPageDescription) {
|
|
if (loginPageDescription) {
|
|
@@ -415,11 +424,11 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.comlogo {
|
|
.comlogo {
|
|
- margin-left: 28px;
|
|
|
|
- margin-top: 57px;
|
|
|
|
- width: 194px;
|
|
|
|
- height: 64px;
|
|
|
|
- background: url(../assets/images/mec_logo_login.png);
|
|
|
|
|
|
+ margin-left: 26px;
|
|
|
|
+ margin-top: 49px;
|
|
|
|
+ width: 200px;
|
|
|
|
+ height: 70px;
|
|
|
|
+ background: url(../assets/images/mecos-logo1.jpg);
|
|
/* background: url(../assets/images/comp.png); */
|
|
/* background: url(../assets/images/comp.png); */
|
|
/* box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25); */
|
|
/* box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25); */
|
|
opacity: 1;
|
|
opacity: 1;
|
|
@@ -431,20 +440,24 @@ export default {
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
height: 100%;
|
|
- background-image: url("../assets/images/background.jpg");
|
|
|
|
- background-size: cover;
|
|
|
|
|
|
+ background-image: url("../assets/images/background3.jpg");
|
|
|
|
+ background-size:100% 100%;
|
|
|
|
+ /* padding-bottom: 55.19%; */
|
|
|
|
+ background-position: center;
|
|
|
|
+ background-repeat: no-repeat;
|
|
}
|
|
}
|
|
|
|
|
|
.title {
|
|
.title {
|
|
width: 258px;
|
|
width: 258px;
|
|
height: 35px;
|
|
height: 35px;
|
|
- margin-top: 69px;
|
|
|
|
- margin-left: 17px;
|
|
|
|
- font-size: 32px;
|
|
|
|
|
|
+ margin-top: 70px;
|
|
|
|
+ margin-left: 8px;
|
|
|
|
+ font-size: 22px;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
- letter-spacing: 0px;
|
|
|
|
|
|
+ letter-spacing: 2px;
|
|
line-height: 38.4px;
|
|
line-height: 38.4px;
|
|
- color: rgba(7, 68, 138, 1);
|
|
|
|
|
|
+ /* color: rgba(7, 68, 138, 1); */
|
|
|
|
+ color: black;
|
|
text-align: left;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
vertical-align: top;
|
|
float: left;
|
|
float: left;
|