This commit is contained in:
Vinjor 2024-07-31 18:52:43 +08:00
commit c5e11edfce
7 changed files with 58 additions and 57 deletions

View File

@ -2,7 +2,7 @@
ENV = 'development' ENV = 'development'
# 页面标题 # 页面标题
VUE_APP_TITLE = 芋道管理系统 VUE_APP_TITLE = "车联通"后台管理系统
# 芋道管理系统/开发环境 # 芋道管理系统/开发环境
VUE_APP_BASE_API = 'http://localhost:48080' VUE_APP_BASE_API = 'http://localhost:48080'

View File

@ -12,13 +12,13 @@
<!-- 站内信 --> <!-- 站内信 -->
<notify-message class="right-menu-item hover-effect" /> <notify-message class="right-menu-item hover-effect" />
<el-tooltip content="源码地址" effect="dark" placement="bottom"> <!-- <el-tooltip content="源码地址" effect="dark" placement="bottom">-->
<ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" /> <!-- <ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" />-->
</el-tooltip> <!-- </el-tooltip>-->
<el-tooltip content="文档地址" effect="dark" placement="bottom"> <!-- <el-tooltip content="文档地址" effect="dark" placement="bottom">-->
<ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" /> <!-- <ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" />-->
</el-tooltip> <!-- </el-tooltip>-->
<screenfull id="screenfull" class="right-menu-item hover-effect" /> <screenfull id="screenfull" class="right-menu-item hover-effect" />

View File

@ -35,7 +35,7 @@ export default {
}, },
data() { data() {
return { return {
title: '芋道管理系统', title: '车联通后台管理系统',
logo: logoImg logo: logoImg
} }
} }

View File

@ -1,6 +1,6 @@
<template xmlns=""> <template xmlns="">
<div class="container"> <div class="container">
<div class="logo"></div> <!-- <div class="logo"></div>-->
<!-- 登录区域 --> <!-- 登录区域 -->
<div class="content"> <div class="content">
<!-- 配图 --> <!-- 配图 -->
@ -9,7 +9,7 @@
<div class="field"> <div class="field">
<!-- [移动端]标题 --> <!-- [移动端]标题 -->
<h2 class="mobile-title"> <h2 class="mobile-title">
<h3 class="title">芋道后台管理系统</h3> <h3 class="title">后台管理系统</h3>
</h2> </h2>
<!-- 表单 --> <!-- 表单 -->
@ -17,16 +17,16 @@
<el-tabs class="form" v-model="loginForm.loginType" style=" float:none;"> <el-tabs class="form" v-model="loginForm.loginType" style=" float:none;">
<el-tab-pane label="账号密码登录" name="uname"> <el-tab-pane label="账号密码登录" name="uname">
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="短信验证码登录" name="sms"> <!-- <el-tab-pane label="短信验证码登录" name="sms">-->
</el-tab-pane> <!-- </el-tab-pane>-->
</el-tabs> </el-tabs>
<div> <div>
<el-form ref="loginForm" :model="loginForm" :rules="LoginRules" class="login-form"> <el-form ref="loginForm" :model="loginForm" :rules="LoginRules" class="login-form">
<el-form-item prop="tenantName" v-if="tenantEnable"> <!-- <el-form-item prop="tenantName" v-if="tenantEnable">-->
<el-input v-model="loginForm.tenantName" type="text" auto-complete="off" placeholder='租户'> <!-- <el-input v-model="loginForm.tenantName" type="text" auto-complete="off" placeholder='租户'>-->
<svg-icon slot="prefix" icon-class="tree" class="el-input__icon input-icon"/> <!-- <svg-icon slot="prefix" icon-class="tree" class="el-input__icon input-icon"/>-->
</el-input> <!-- </el-input>-->
</el-form-item> <!-- </el-form-item>-->
<!-- 账号密码登录 --> <!-- 账号密码登录 -->
<div v-if="loginForm.loginType === 'uname'"> <div v-if="loginForm.loginType === 'uname'">
<el-form-item prop="username"> <el-form-item prop="username">
@ -44,26 +44,26 @@
</div> </div>
<!-- 短信验证码登录 --> <!-- 短信验证码登录 -->
<div v-if="loginForm.loginType === 'sms'"> <!-- <div v-if="loginForm.loginType === 'sms'">-->
<el-form-item prop="mobile"> <!-- <el-form-item prop="mobile">-->
<el-input v-model="loginForm.mobile" type="text" auto-complete="off" placeholder="请输入手机号"> <!-- <el-input v-model="loginForm.mobile" type="text" auto-complete="off" placeholder="请输入手机号">-->
<svg-icon slot="prefix" icon-class="phone" class="el-input__icon input-icon"/> <!-- <svg-icon slot="prefix" icon-class="phone" class="el-input__icon input-icon"/>-->
</el-input> <!-- </el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item prop="mobileCode"> <!-- <el-form-item prop="mobileCode">-->
<el-input v-model="loginForm.mobileCode" type="text" auto-complete="off" placeholder="短信验证码" <!-- <el-input v-model="loginForm.mobileCode" type="text" auto-complete="off" placeholder="短信验证码"-->
class="sms-login-mobile-code-prefix" <!-- class="sms-login-mobile-code-prefix"-->
@keyup.enter.native="handleLogin"> <!-- @keyup.enter.native="handleLogin">-->
<template> <!-- <template>-->
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon"/> <!-- <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon"/>-->
</template> <!-- </template>-->
<template slot="append"> <!-- <template slot="append">-->
<span v-if="mobileCodeTimer <= 0" class="getMobileCode" @click="getSmsCode" style="cursor: pointer;">获取验证码</span> <!-- <span v-if="mobileCodeTimer <= 0" class="getMobileCode" @click="getSmsCode" style="cursor: pointer;">获取验证码</span>-->
<span v-if="mobileCodeTimer > 0" class="getMobileCode">{{ mobileCodeTimer }}秒后可重新获取</span> <!-- <span v-if="mobileCodeTimer > 0" class="getMobileCode">{{ mobileCodeTimer }}秒后可重新获取</span>-->
</template> <!-- </template>-->
</el-input> <!-- </el-input>-->
</el-form-item> <!-- </el-form-item>-->
</div> <!-- </div>-->
<!-- 下方的登录按钮 --> <!-- 下方的登录按钮 -->
<el-form-item style="width:100%;"> <el-form-item style="width:100%;">
@ -75,22 +75,22 @@
</el-form-item> </el-form-item>
<!-- 社交登录 --> <!-- 社交登录 -->
<el-form-item style="width:100%;"> <!-- <el-form-item style="width:100%;">-->
<div class="oauth-login" style="display:flex"> <!-- <div class="oauth-login" style="display:flex">-->
<div class="oauth-login-item" v-for="item in SysUserSocialTypeEnum" :key="item.type" @click="doSocialLogin(item)"> <!-- <div class="oauth-login-item" v-for="item in SysUserSocialTypeEnum" :key="item.type" @click="doSocialLogin(item)">-->
<img :src="item.img" height="25px" width="25px" alt="登录" > <!-- <img :src="item.img" height="25px" width="25px" alt="登录" >-->
<span>{{item.title}}</span> <!-- <span>{{item.title}}</span>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</el-form-item> <!-- </el-form-item>-->
<!-- 教程说明 --> <!-- 教程说明 -->
<el-form-item style="width:100%; margin-top:-25px"> <!-- <el-form-item style="width:100%; margin-top:-25px">-->
<el-link href="https://doc.iocoder.cn/" target="_blank">📚开发指南</el-link> <!-- <el-link href="https://doc.iocoder.cn/" target="_blank">📚开发指南</el-link>-->
<el-link href="https://doc.iocoder.cn/video/" target="_blank" style="padding-left: 10px">🔥视频教程</el-link> <!-- <el-link href="https://doc.iocoder.cn/video/" target="_blank" style="padding-left: 10px">🔥视频教程</el-link>-->
<el-link href="https://www.iocoder.cn/Interview/good-collection/" target="_blank" style="padding-left: 10px">面试手册</el-link> <!-- <el-link href="https://www.iocoder.cn/Interview/good-collection/" target="_blank" style="padding-left: 10px">面试手册</el-link>-->
<el-link href="http://static.yudao.iocoder.cn/mp/Aix9975.jpeg" target="_blank" style="padding-left: 10px">🤝外包咨询</el-link> <!-- <el-link href="http://static.yudao.iocoder.cn/mp/Aix9975.jpeg" target="_blank" style="padding-left: 10px">🤝外包咨询</el-link>-->
</el-form-item> <!-- </el-form-item>-->
</el-form> </el-form>
</div> </div>
</div> </div>
@ -134,7 +134,8 @@ export default {
data() { data() {
return { return {
codeUrl: "", codeUrl: "",
captchaEnable: true, //
captchaEnable: false,
tenantEnable: true, tenantEnable: true,
mobileCodeTimer: 0, mobileCodeTimer: 0,
loginForm: { loginForm: {
@ -145,7 +146,7 @@ export default {
mobile: "", mobile: "",
mobileCode: "", mobileCode: "",
rememberMe: false, rememberMe: false,
tenantName: "芋道源码", tenantName: "租户管理员",
}, },
scene: 21, scene: 21,
@ -206,7 +207,7 @@ export default {
}); });
} }
// //
this.captchaEnable = getCaptchaEnable(); this.captchaEnable = false;
// //
this.redirect = this.$route.query.redirect ? decodeURIComponent(this.$route.query.redirect) : undefined; this.redirect = this.$route.query.redirect ? decodeURIComponent(this.$route.query.redirect) : undefined;
this.getCookie(); this.getCookie();

View File

@ -9,7 +9,7 @@
<div class="field"> <div class="field">
<!-- [移动端]标题 --> <!-- [移动端]标题 -->
<h2 class="mobile-title"> <h2 class="mobile-title">
<h3 class="title">芋道后台管理系统</h3> <h3 class="title">智慧"车联通"</h3>
</h2> </h2>
<!-- 表单 --> <!-- 表单 -->

View File

@ -9,7 +9,7 @@
<div class="field"> <div class="field">
<!-- [移动端]标题 --> <!-- [移动端]标题 -->
<h2 class="mobile-title"> <h2 class="mobile-title">
<h3 class="title">芋道后台管理系统</h3> <h3 class="title">"车联通"后台管理系统</h3>
</h2> </h2>
<!-- 表单 --> <!-- 表单 -->

View File

@ -8,7 +8,7 @@ function resolve(dir) {
const CompressionPlugin = require('compression-webpack-plugin') const CompressionPlugin = require('compression-webpack-plugin')
const name = process.env.VUE_APP_TITLE || '芋道管理系统' // 网页标题 const name = process.env.VUE_APP_TITLE || '车联通' // 网页标题
const port = process.env.port || process.env.npm_config_port || 80 // 端口 const port = process.env.port || process.env.npm_config_port || 80 // 端口