Commit d8fdf8f5 authored by mzx's avatar mzx

修改系统title,修改部门树接口地址

parent 182cea97
# 页面标题
VUE_APP_TITLE = 若依管理系统
VUE_APP_TITLE = 新区交通综合信息服务系统
# 开发环境配置
ENV = 'development'
......
# 页面标题
VUE_APP_TITLE = 若依管理系统
VUE_APP_TITLE = 新区交通综合信息服务系统
# 生产环境配置
ENV = 'production'
# 若依管理系统/生产环境
VUE_APP_BASE_API = '/prod-api'
VUE_APP_BASE_API = 'http://49.232.167.247:22000'
# 页面标题
VUE_APP_TITLE = 若依管理系统
VUE_APP_TITLE = 新区交通综合信息服务系统
NODE_ENV = production
......
......@@ -6,7 +6,8 @@
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= webpackConfig.name %></title>
<!-- <title><%= webpackConfig.name %></title>-->
<title>新区交通综合信息服务系统</title>
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
<style>
html,
......
......@@ -129,7 +129,7 @@ export function updateAuthRole(data) {
// 查询部门下拉树结构
export function deptTreeSelect() {
return request({
url: '/system/user/deptTree',
url: '/system/dept/treeselect',
method: 'get'
})
}
......@@ -46,7 +46,7 @@
<div class="register-code">
<div v-if="show == 0" @click="getTestCode">获取验证码</div>
<div v-if="show == 1">已发送{{ count }}</div>
<div v-if="show == 2" @click="getcode">重新获取</div>
<div v-if="show == 2" @click="getTestCode">重新获取</div>
</div>
</el-form-item>
<div style="width:100%;">
......@@ -72,7 +72,7 @@
</template>
<script>
import {getCodeImg, getPasswordCode, register, retrievePassword} from '@/api/login'
import {getCodeImg, getPasswordCode, register, retrievePassword } from '@/api/login'
export default {
name: 'Register',
......@@ -105,9 +105,10 @@ export default {
],
repeatPassword: [
{ required: true, trigger: 'blur', message: '请再次输入您的密码' },
{ min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur' },
{ required: true, validator: equalToPassword, trigger: 'blur' }
],
// code: [{ required: true, trigger: 'change', message: '请输入验证码' }]
code: [{ required: true, trigger: 'change', message: '请输入验证码' }]
},
loading: false,
captchaEnabled: true
......@@ -129,7 +130,7 @@ export default {
if (this.registerForm.email !== '') {
getPasswordCode({ email: this.registerForm.email }).then(res => {
if (res.code === 200) {
this.$message('发送成功')
this.$message.success('发送成功')
if (!this.timer) {
this.count = times
this.show = 1
......@@ -146,7 +147,7 @@ export default {
}
})
} else {
this.$message('邮箱不能为空')
this.$message.error('邮箱不能为空')
}
// const times = 60 // 倒计时时间
......@@ -165,8 +166,26 @@ export default {
// }
},
find() {
retrievePassword(this.registerForm).then(res => {
this.$message('成功')
// retrievePassword(this.registerForm).then(res => {
// this.$message('成功')
// })
this.$refs.registerForm.validate(valid => {
if (valid) {
this.loading = true
retrievePassword(this.registerForm).then(res => {
this.$alert("<font color='red'>恭喜你,您的密码修改成功", '系统提示', {
dangerouslyUseHTMLString: true,
type: 'success'
}).then(() => {
this.$router.push('/login')
}).catch(() => {})
}).catch(() => {
this.loading = false
// if (this.captchaEnabled) {
// this.getCode()
// }
})
}
})
},
// getCode() {
......
......@@ -7,7 +7,7 @@
v-model="loginForm.username"
type="text"
auto-complete="off"
placeholder="账号"
placeholder="统一信用代码"
>
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
</el-input>
......
......@@ -7,7 +7,8 @@ function resolve(dir) {
const CompressionPlugin = require('compression-webpack-plugin')
const name = process.env.VUE_APP_TITLE || '若依管理系统' // 网页标题
// 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 // 端口
......@@ -35,7 +36,8 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://localhost:8080`,
target: `http://192.168.10.174:8080`,
// target: `http://vue.ruoyi.vip/prod-api`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment