|
|
@ -1,5 +1,5 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="login">
|
|
|
|
<div class="login" :style="`background-image: url(${!isStationId?loginBg1:loginBg2});`">
|
|
|
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
|
|
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
|
|
|
<h3 class="title" v-if="!isStationId">京源环保MES系统</h3>
|
|
|
|
<h3 class="title" v-if="!isStationId">京源环保MES系统</h3>
|
|
|
|
<h3 class="title" v-else>京源环保车间MES系统</h3>
|
|
|
|
<h3 class="title" v-else>京源环保车间MES系统</h3>
|
|
|
@ -76,11 +76,15 @@
|
|
|
|
import { getCodeImg, getProcesses } from '@/api/login'
|
|
|
|
import { getCodeImg, getProcesses } from '@/api/login'
|
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
import { encrypt, decrypt } from '@/utils/jsencrypt'
|
|
|
|
import { encrypt, decrypt } from '@/utils/jsencrypt'
|
|
|
|
|
|
|
|
import loginBg1 from '@/assets/images/login-background.jpg'
|
|
|
|
|
|
|
|
import loginBg2 from '@/assets/images/loginBg.jpg'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'Login',
|
|
|
|
name: 'Login',
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
loginBg1,
|
|
|
|
|
|
|
|
loginBg2,
|
|
|
|
codeUrl: '',
|
|
|
|
codeUrl: '',
|
|
|
|
loginForm: {
|
|
|
|
loginForm: {
|
|
|
|
username: 'xin',
|
|
|
|
username: 'xin',
|
|
|
@ -268,7 +272,6 @@ export default {
|
|
|
|
justify-content: center;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-image: url("../assets/images/loginBg.jpg");
|
|
|
|
|
|
|
|
background-size: cover;
|
|
|
|
background-size: cover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|