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