开发环境初始化

This commit is contained in:
PQZ 2024-07-31 18:16:29 +08:00
parent 0537507af4
commit 9c77355933
7 changed files with 58 additions and 57 deletions

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
<template xmlns="">
<div class="container">
<div class="logo"></div>
<!-- <div class="logo"></div>-->
<!-- 登录区域 -->
<div class="content">
<!-- 配图 -->
@ -9,7 +9,7 @@
<div class="field">
<!-- [移动端]标题 -->
<h2 class="mobile-title">
<h3 class="title">芋道后台管理系统</h3>
<h3 class="title">后台管理系统</h3>
</h2>
<!-- 表单 -->
@ -17,16 +17,16 @@
<el-tabs class="form" v-model="loginForm.loginType" style=" float:none;">
<el-tab-pane label="账号密码登录" name="uname">
</el-tab-pane>
<el-tab-pane label="短信验证码登录" name="sms">
</el-tab-pane>
<!-- <el-tab-pane label="短信验证码登录" name="sms">-->
<!-- </el-tab-pane>-->
</el-tabs>
<div>
<el-form ref="loginForm" :model="loginForm" :rules="LoginRules" class="login-form">
<el-form-item prop="tenantName" v-if="tenantEnable">
<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"/>
</el-input>
</el-form-item>
<!-- <el-form-item prop="tenantName" v-if="tenantEnable">-->
<!-- <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"/>-->
<!-- </el-input>-->
<!-- </el-form-item>-->
<!-- 账号密码登录 -->
<div v-if="loginForm.loginType === 'uname'">
<el-form-item prop="username">
@ -44,26 +44,26 @@
</div>
<!-- 短信验证码登录 -->
<div v-if="loginForm.loginType === 'sms'">
<el-form-item prop="mobile">
<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"/>
</el-input>
</el-form-item>
<el-form-item prop="mobileCode">
<el-input v-model="loginForm.mobileCode" type="text" auto-complete="off" placeholder="短信验证码"
class="sms-login-mobile-code-prefix"
@keyup.enter.native="handleLogin">
<template>
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon"/>
</template>
<template slot="append">
<span v-if="mobileCodeTimer <= 0" class="getMobileCode" @click="getSmsCode" style="cursor: pointer;">获取验证码</span>
<span v-if="mobileCodeTimer > 0" class="getMobileCode">{{ mobileCodeTimer }}秒后可重新获取</span>
</template>
</el-input>
</el-form-item>
</div>
<!-- <div v-if="loginForm.loginType === 'sms'">-->
<!-- <el-form-item prop="mobile">-->
<!-- <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"/>-->
<!-- </el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item prop="mobileCode">-->
<!-- <el-input v-model="loginForm.mobileCode" type="text" auto-complete="off" placeholder="短信验证码"-->
<!-- class="sms-login-mobile-code-prefix"-->
<!-- @keyup.enter.native="handleLogin">-->
<!-- <template>-->
<!-- <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon"/>-->
<!-- </template>-->
<!-- <template slot="append">-->
<!-- <span v-if="mobileCodeTimer <= 0" class="getMobileCode" @click="getSmsCode" style="cursor: pointer;">获取验证码</span>-->
<!-- <span v-if="mobileCodeTimer > 0" class="getMobileCode">{{ mobileCodeTimer }}秒后可重新获取</span>-->
<!-- </template>-->
<!-- </el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- 下方的登录按钮 -->
<el-form-item style="width:100%;">
@ -75,22 +75,22 @@
</el-form-item>
<!-- 社交登录 -->
<el-form-item style="width:100%;">
<div class="oauth-login" style="display:flex">
<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="登录" >
<span>{{item.title}}</span>
</div>
</div>
</el-form-item>
<!-- <el-form-item style="width:100%;">-->
<!-- <div class="oauth-login" style="display:flex">-->
<!-- <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="登录" >-->
<!-- <span>{{item.title}}</span>-->
<!-- </div>-->
<!-- </div>-->
<!-- </el-form-item>-->
<!-- 教程说明 -->
<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/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="http://static.yudao.iocoder.cn/mp/Aix9975.jpeg" target="_blank" style="padding-left: 10px">🤝外包咨询</el-link>
</el-form-item>
<!-- <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/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="http://static.yudao.iocoder.cn/mp/Aix9975.jpeg" target="_blank" style="padding-left: 10px">🤝外包咨询</el-link>-->
<!-- </el-form-item>-->
</el-form>
</div>
</div>
@ -134,7 +134,8 @@ export default {
data() {
return {
codeUrl: "",
captchaEnable: true,
//
captchaEnable: false,
tenantEnable: true,
mobileCodeTimer: 0,
loginForm: {
@ -145,7 +146,7 @@ export default {
mobile: "",
mobileCode: "",
rememberMe: false,
tenantName: "芋道源码",
tenantName: "租户管理员",
},
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.getCookie();

View File

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

View File

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

View File

@ -8,7 +8,7 @@ function resolve(dir) {
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 // 端口