update 登录页背景, 组织机构code非必填, dapper查询优化
This commit is contained in:
|
Before Width: | Height: | Size: 223 KiB After Width: | Height: | Size: 223 KiB |
BIN
Web/src/assets/image/login-bg-01.jpg
Normal file
BIN
Web/src/assets/image/login-bg-01.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 560 KiB |
BIN
Web/src/assets/image/login-bg-02.jpg
Normal file
BIN
Web/src/assets/image/login-bg-02.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 431 KiB |
BIN
Web/src/assets/image/login-bg-03.jpg
Normal file
BIN
Web/src/assets/image/login-bg-03.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 143 KiB |
@@ -6,8 +6,14 @@
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
>img {
|
||||
display: block;
|
||||
|
||||
background: url('~@/assets/image/login-bg.jpg') no-repeat center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
object-fit: cover;
|
||||
}
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="yo-login">
|
||||
<img :src="backgroundImage" />
|
||||
<div class="yo-login--placeholder">
|
||||
<container mode="container-sm">
|
||||
<a-form-model :model="form" @submit="handleSubmit" @submit.native.prevent>
|
||||
@@ -52,6 +53,8 @@ import { doLogin } from '@/common/login';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
backgroundImage: null,
|
||||
|
||||
loading: false,
|
||||
form: {
|
||||
user: '',
|
||||
@@ -63,6 +66,11 @@ export default {
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
created() {
|
||||
this.backgroundImage = require(`@/assets/image/login-bg-0${Math.floor(Math.random() * 4)}.jpg`);
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleSubmit(e) {
|
||||
this.loading = true;
|
||||
|
||||
Reference in New Issue
Block a user