Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
binhai-company
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
binhai-jiaoguan
binhai-company
Commits
d8fdf8f5
Commit
d8fdf8f5
authored
Nov 03, 2023
by
mzx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改系统title,修改部门树接口地址
parent
182cea97
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
16 deletions
+38
-16
.env.development
.env.development
+1
-1
.env.production
.env.production
+2
-2
.env.staging
.env.staging
+1
-1
index.html
public/index.html
+2
-1
user.js
src/api/system/user.js
+1
-1
forgotPassword.vue
src/views/forgotPassword.vue
+26
-7
login.vue
src/views/login.vue
+1
-1
vue.config.js
vue.config.js
+4
-2
No files found.
.env.development
View file @
d8fdf8f5
# 页面标题
VUE_APP_TITLE =
若依管理
系统
VUE_APP_TITLE =
新区交通综合信息服务
系统
# 开发环境配置
ENV = 'development'
...
...
.env.production
View file @
d8fdf8f5
# 页面标题
VUE_APP_TITLE =
若依管理
系统
VUE_APP_TITLE =
新区交通综合信息服务
系统
# 生产环境配置
ENV = 'production'
# 若依管理系统/生产环境
VUE_APP_BASE_API = '
/prod-api
'
VUE_APP_BASE_API = '
http://49.232.167.247:22000
'
.env.staging
View file @
d8fdf8f5
# 页面标题
VUE_APP_TITLE =
若依管理
系统
VUE_APP_TITLE =
新区交通综合信息服务
系统
NODE_ENV = production
...
...
public/index.html
View file @
d8fdf8f5
...
...
@@ -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
,
...
...
src/api/system/user.js
View file @
d8fdf8f5
...
...
@@ -129,7 +129,7 @@ export function updateAuthRole(data) {
// 查询部门下拉树结构
export
function
deptTreeSelect
()
{
return
request
({
url
:
'/system/
user/deptTree
'
,
url
:
'/system/
dept/treeselect
'
,
method
:
'get'
})
}
src/views/forgotPassword.vue
View file @
d8fdf8f5
...
...
@@ -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=
"get
c
ode"
>
重新获取
</div>
<div
v-if=
"show == 2"
@
click=
"get
TestC
ode"
>
重新获取
</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() {
...
...
src/views/login.vue
View file @
d8fdf8f5
...
...
@@ -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>
...
...
vue.config.js
View file @
d8fdf8f5
...
...
@@ -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
]:
''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment