会计事项平台更新

This commit is contained in:
hyt 2025-07-31 09:10:09 +08:00
parent 41ebc173f3
commit 64cca71663
5 changed files with 89 additions and 70 deletions

BIN
src/assets/images/left1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -3,63 +3,80 @@
<div class="loginBg">
<main>
<div class="left">
<img src="../assets/images/login-page.png" alt="" />
<img src="../assets/images/login1.png" alt="" />
</div>
<div class="right">
<div class="title">您好!欢迎来到 用安数智中台</div>
<div class="login">
<el-form
:hide-required-asterisk="true"
label-position="top"
ref="loginFormNew"
:model="loginForm"
:rules="loginRulesNew"
class="login-form"
>
<el-form-item prop="login_name" label="手机号/用户名">
<el-input
v-model="loginForm.login_name"
type="text"
auto-complete="off"
placeholder="请输入账号"
>
</el-input>
</el-form-item>
<el-form-item prop="password" label="密码">
<el-input
v-model="loginForm.password"
@keyup.enter.native="handleLogin"
show-password
type="password"
auto-complete="off"
placeholder="请输入密码"
>
</el-input>
</el-form-item>
<el-checkbox
v-model="loginForm.rememberMe"
style="margin: 0px 0px 25px 0px"
<div
style="
width: 60%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
"
>
<div class="imgBox">
<img src="../assets/images/left1.png" alt="" />
<img
src="../assets/images/right1.png"
style="border-left: 1px solid #eee; width: 200px;"
alt=""
/>
</div>
<div class="login">
<el-form
:hide-required-asterisk="true"
label-position="top"
ref="loginFormNew"
:model="loginForm"
:rules="loginRulesNew"
class="login-form"
>
<el-form-item prop="login_name" label="手机号/用户名">
<el-input
v-model="loginForm.login_name"
type="text"
auto-complete="off"
placeholder="请输入账号"
>
</el-input>
</el-form-item>
<el-form-item prop="password" label="密码">
<el-input
v-model="loginForm.password"
@keyup.enter.native="handleLogin"
show-password
type="password"
auto-complete="off"
placeholder="请输入密码"
>
</el-input>
</el-form-item>
<el-checkbox
v-model="loginForm.rememberMe"
style="margin: 0px 0px 25px 0px"
>记住密码</el-checkbox
>
<el-checkbox
v-model="loginForm.automaticLogin"
style="margin: 0px 0px 25px 20px"
>自动登录</el-checkbox
>
<!-- <a class="forgetPwd">忘记密码</a> -->
<el-form-item style="width: 100%">
<el-button
:loading="loading"
size="medium"
type="primary"
style="width: 100%"
@click.native.prevent="handleLogin"
>
<span v-if="!loading"> </span>
<span v-else> 中...</span>
</el-button>
</el-form-item>
</el-form>
<el-checkbox
v-model="loginForm.automaticLogin"
style="margin: 0px 0px 25px 20px"
>自动登录</el-checkbox
>
<!-- <a class="forgetPwd">忘记密码</a> -->
<el-form-item style="width: 100%">
<el-button
:loading="loading"
size="medium"
type="primary"
style="width: 100%"
@click.native.prevent="handleLogin"
>
<span v-if="!loading"> </span>
<span v-else> 中...</span>
</el-button>
</el-form-item>
</el-form>
</div>
</div>
</div>
</main>
@ -259,7 +276,6 @@ export default {
this.$store
.dispatch("Login", this.loginForm)
.then(() => {
console.log(123,'123')
this.loading = false;
this.$router
.push({
@ -318,7 +334,7 @@ export default {
<style lang="scss" scoped>
.loginBg {
background: url("../assets/images/login.png") no-repeat;
background: linear-gradient(to bottom right, #519af6, #84d3e5);
width: 100vw;
height: 100vh;
main {
@ -335,28 +351,30 @@ export default {
border-radius: 3vw;
margin: auto;
> .left {
width: 38vw;
height: 56vh;
min-height: 450px;
margin: 7vh 6.8vw 0 4.2vw;
width: 55%;
background-size: cover;
background-position: center center;
> img {
width: 100%;
height: 100%;
}
}
> .right {
margin-top: 158px;
> .title {
width: 228px;
height: 9vh;
font-size: 36px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #1478f6;
line-height: 50px;
width: 45%;
display: flex;
align-items: center;
justify-content: center;
.imgBox {
display: flex;
margin-bottom: 10px;
img {
width: 160px;
height: 100px;
}
}
> .login {
margin-top: 6vh;
// width: 60%;
}
}
}

View File

@ -41,8 +41,9 @@ module.exports = {
[process.env.VUE_APP_BASE_API]: {
// target: `http://hzya.ufyct.com:9067/`,
// target: `http://127.0.0.1:9081/`,
target: `http://192.168.2.189:10086`,//一凡
// target: `http://192.168.2.189:10086`,//一凡
// target: `http://192.168.2.78:8080`,
target: `http://b8bc6e8e.natappfree.cc`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''