Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
portalhtml
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
rex
portalhtml
Commits
d8d4f664
Commit
d8d4f664
authored
Oct 12, 2021
by
jiangqihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登入
parent
3b360dbc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
39 deletions
+24
-39
user.js
src/api/user.js
+2
-2
login_top.png
src/assets/images/login_top.png
+0
-0
Logo.vue
src/layout/components/Sidebar/Logo.vue
+1
-1
index.vue
src/views/login/index.vue
+20
-15
vue.config.js
vue.config.js
+1
-21
No files found.
src/api/user.js
View file @
d8d4f664
...
@@ -2,7 +2,7 @@ import request from '@/utils/request'
...
@@ -2,7 +2,7 @@ import request from '@/utils/request'
export
function
login
(
data
)
{
export
function
login
(
data
)
{
return
request
({
return
request
({
url
:
'/
index/
login'
,
url
:
'/login'
,
method
:
'post'
,
method
:
'post'
,
data
data
})
})
...
@@ -18,7 +18,7 @@ export function login(data) {
...
@@ -18,7 +18,7 @@ export function login(data) {
export
function
logout
()
{
export
function
logout
()
{
return
request
({
return
request
({
url
:
'/
index/
logout'
,
url
:
'/logout'
,
method
:
'get'
method
:
'get'
})
})
}
}
...
...
src/assets/images/login_top.png
View replaced file @
3b360dbc
View file @
d8d4f664
133 KB
|
W:
|
H:
10.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/layout/components/Sidebar/Logo.vue
View file @
d8d4f664
...
@@ -45,7 +45,7 @@ export default {
...
@@ -45,7 +45,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
title
:
'
国民技术
CRM管理系统'
,
title
:
'
紫光计算机
CRM管理系统'
,
logo
:
'https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png'
logo
:
'https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png'
}
}
}
}
...
...
src/views/login/index.vue
View file @
d8d4f664
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<div
class=
"title-container"
>
<div
class=
"title-container"
>
<img
src=
"../../assets/images/login_top.png"
>
<img
src=
"../../assets/images/login_top.png"
>
<h3
class=
"title"
>
客户关系管理系统
</h3>
<h3
class=
"title"
>
客户关系管理系统
</h3>
<
h4
class=
"title-sub"
>
Customer Relationship Management
</h4
>
<
!--
<h4
class=
"title-sub"
>
Customer Relationship Management
</h4>
--
>
<!--
<lang-select
class=
"set-language"
/>
-->
<!--
<lang-select
class=
"set-language"
/>
-->
</div>
</div>
...
@@ -48,7 +48,12 @@
...
@@ -48,7 +48,12 @@
</el-form-item>
</el-form-item>
</el-tooltip>
</el-tooltip>
<el-button
:loading=
"loading"
type=
"primary"
style=
"width:100%;margin-bottom:30px;"
@
click
.
native
.
prevent=
"handleLogin"
>
<el-button
:loading=
"loading"
type=
"primary"
style=
"width:100%;margin-bottom:30px;background-color:rgb(162,39,150);border:none"
@
click
.
native
.
prevent=
"handleLogin"
>
{{
$t
(
'login.logIn'
)
}}
{{
$t
(
'login.logIn'
)
}}
</el-button>
</el-button>
...
@@ -70,10 +75,10 @@
...
@@ -70,10 +75,10 @@
</div>
-->
</div>
-->
</el-form>
</el-form>
<
div
class=
"login-footer"
>
<
!--
<div
class=
"login-footer"
>
--
>
<
p>
Copyright © www.nationstech.com, All Rights Reserved.
</p
>
<
!--
<p>
Copyright © www.nationstech.com, All Rights Reserved.
</p>
--
>
<p>
创新服务全民
</p>
<
!--
<
p>
创新服务全民
</p>
</div>
</div>
-->
<!--
<el-dialog
:title=
"$t('login.thirdparty')"
:visible
.
sync=
"showDialog"
>
<!--
<el-dialog
:title=
"$t('login.thirdparty')"
:visible
.
sync=
"showDialog"
>
{{
$t
(
'login.thirdpartyTips'
)
}}
{{
$t
(
'login.thirdpartyTips'
)
}}
...
@@ -171,8 +176,8 @@ export default {
...
@@ -171,8 +176,8 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
this
.
loading
=
true
this
.
loading
=
true
const
params
=
{
const
params
=
{
ext
_EmployeeUserName_KUT
:
this
.
loginForm
.
username
,
ext
UserName_SDK
:
this
.
loginForm
.
username
,
ext
_EmployeePassword_KUT
:
this
.
loginForm
.
password
ext
Password_SDK
:
this
.
loginForm
.
password
}
}
this
.
$store
.
dispatch
(
'user/login'
,
params
)
this
.
$store
.
dispatch
(
'user/login'
,
params
)
.
then
(()
=>
{
.
then
(()
=>
{
...
@@ -224,7 +229,7 @@ export default {
...
@@ -224,7 +229,7 @@ export default {
/* reset element-ui css */
/* reset element-ui css */
.login-container
{
.login-container
{
background
:
url('../../assets/images/login_bg.png')
;
//
background: url('../../assets/images/login_bg.png');
background-size
:
cover
;
background-size
:
cover
;
.el-input
{
.el-input
{
display
:
inline-block
;
display
:
inline-block
;
...
@@ -307,15 +312,15 @@ $dark_gray:#889aa4;
...
@@ -307,15 +312,15 @@ $dark_gray:#889aa4;
.title-container
{
.title-container
{
position
:
relative
;
position
:
relative
;
margin
:
50px
auto
;
img
{
img
{
width
:
8
0%
;
width
:
5
0%
;
margin-left
:
10
%
;
margin-left
:
25
%
;
}
}
.title
{
.title
{
font-size
:
36
px
;
font-size
:
20
px
;
color
:
#154188
;
//
color: #154188;
margin
:
0
auto
10px
;
margin
:
20px
auto
;
text-align
:
center
;
text-align
:
center
;
// font-family: '微软雅黑 Bold', '微软雅黑';
// font-family: '微软雅黑 Bold', '微软雅黑';
font-weight
:
700
;
font-weight
:
700
;
...
...
vue.config.js
View file @
d8d4f664
...
@@ -32,7 +32,7 @@ module.exports = {
...
@@ -32,7 +32,7 @@ module.exports = {
devServer
:
{
devServer
:
{
proxy
:
{
proxy
:
{
'/portal'
:
{
'/portal'
:
{
target
:
'https://
portalapplicationkmif3wwkv6.cn1.platform.sapcloud.cn
/'
,
target
:
'https://
devcrm.wangyouyu.com
/'
,
// target: 'http://localhost:8080/',
// target: 'http://localhost:8080/',
secure
:
false
,
secure
:
false
,
changeOrigin
:
true
,
changeOrigin
:
true
,
...
@@ -51,26 +51,6 @@ module.exports = {
...
@@ -51,26 +51,6 @@ module.exports = {
}
}
}
}
},
},
'/job'
:
{
target
:
'https://jobapplicationkmif3wwkv6.cn1.platform.sapcloud.cn/'
,
// target: 'http://localhost:8080/',
secure
:
false
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/job/'
:
'/'
// rewrite path
},
onProxyReq
:
function
(
proxyReq
,
req
,
res
,
options
)
{
// 由于vue中使用了body-parser 导致http中的body被序列化两次,从而使得配置代理后后端无法获取body中的数据
if
(
req
.
body
)
{
const
reg
=
new
RegExp
(
'application/json'
)
if
(
reg
.
test
(
proxyReq
.
getHeader
(
'Content-Type'
)))
{
const
bodyData
=
JSON
.
stringify
(
req
.
body
)
proxyReq
.
setHeader
(
'Content-Length'
,
Buffer
.
byteLength
(
bodyData
))
// stream the content
proxyReq
.
write
(
bodyData
)
}
}
}
}
},
},
port
:
port
,
port
:
port
,
open
:
true
,
open
:
true
,
...
...
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