Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HotelProject
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
zhengke
HotelProject
Commits
bf5c04b3
Commit
bf5c04b3
authored
Feb 12, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/zk123/hotelproject
parents
e5c345b3
5ddfadf3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
109 additions
and
102 deletions
+109
-102
HotelList.vue
src/components/assetsman/HotelList.vue
+1
-1
Login.vue
src/components/global/Login.vue
+108
-101
No files found.
src/components/assetsman/HotelList.vue
View file @
bf5c04b3
...
...
@@ -96,7 +96,7 @@
total
:
0
,
msg
:
{
pageIndex
:
1
,
pageSize
:
1
5
,
pageSize
:
1
0
,
SHotelName
:
""
,
//酒店名称
Status
:
-
1
,
//酒店状态
SCountryId
:
651
,
//国家编号
...
...
src/components/global/Login.vue
View file @
bf5c04b3
<
template
>
<div
class=
"login"
>
<div
class=
"loginContent"
>
<p
class=
"f40 bold c11"
>
SCM管理
系统
</p>
<p
class=
"f40 bold c11"
>
SCM管理
システム
</p>
<div
style=
"margin:60px 0 50px 0"
>
<p>
<p
title=
"账号"
>
<img
style=
"width:16px;height:14px"
src=
"../../assets/img/user.png"
alt=
""
>
账号
</p>
<el-input
v-model=
"userInfo.EmAccount"
placeholder=
"请输入"
></el-input>
アカウント
</p>
<el-input
v-model=
"userInfo.EmAccount"
placeholder=
"口座に入力してください"
></el-input>
</div>
<div>
<p>
<img
style=
"width:16px;height:14px;margin-right:4px"
src=
"../../assets/img/passwd.png"
alt=
""
>
密码
</p>
<el-input
type=
"password"
v-model=
"userInfo.EmPassword"
placeholder=
"请输入内容"
></el-input>
<p
title=
"密码"
>
<img
style=
"width:16px;height:14px;margin-right:4px"
src=
"../../assets/img/passwd.png"
alt=
""
>
パスワード
</p>
<el-input
type=
"password"
v-model=
"userInfo.EmPassword"
placeholder=
"暗証番号を入力してください"
></el-input>
</div>
<div
class=
"loginDiv"
>
<span
v-loading=
"btnLoading"
@
click=
"Login"
>
登录
</span>
<span
v-loading=
"btnLoading"
@
click=
"Login"
title=
"登录"
>
ログイン
</span>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'login'
,
data
()
{
return
{
userInfo
:
{
EmAccount
:
''
,
EmPassword
:
''
,
Domain
:
''
,
},
btnLoading
:
false
,
export
default
{
name
:
'login'
,
data
()
{
return
{
userInfo
:
{
EmAccount
:
''
,
EmPassword
:
''
,
Domain
:
''
,
},
btnLoading
:
false
,
}
},
created
()
{
},
created
()
{
},
mounted
()
{
this
.
initData
();
},
methods
:
{
getUserInfo
(){
this
.
apiJavaPost
(
"/api/user/GetUserLoginMenu"
,{},
res
=>
{
this
.
btnLoading
=
false
;
},
mounted
()
{
this
.
initData
();
},
methods
:
{
getUserInfo
()
{
this
.
apiJavaPost
(
"/api/user/GetUserLoginMenu"
,
{},
res
=>
{
this
.
btnLoading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
let
user
=
res
.
data
.
data
;
let
user
=
res
.
data
.
data
;
var
userJson
=
JSON
.
stringify
(
user
);
localStorage
.
scmAccount
=
userJson
;
this
.
$router
.
push
({
path
:
'Home'
})
this
.
$router
.
push
({
path
:
'Home'
})
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
},
null
},
null
);
},
initData
()
{
...
...
@@ -67,80 +66,88 @@ export default {
}
this
.
userInfo
.
Domain
=
window
.
location
.
hostname
},
Login
(){
Login
()
{
if
(
this
.
userInfo
.
EmAccount
==
""
)
{
this
.
nameIsShow
=
true
;
this
.
Error
(
"请输入用户名
"
);
return
;
this
.
nameIsShow
=
true
;
this
.
Error
(
"口座に入力してください
"
);
return
;
}
else
if
(
this
.
userInfo
.
EmPassword
==
""
)
{
this
.
passwordIsShow
=
true
;
this
.
Error
(
"请输入密码"
);
return
;
}
this
.
btnLoading
=
true
;
this
.
apipost
(
"scm_get_SCMLoginService"
,
this
.
userInfo
,
res
=>
{
this
.
btnLoading
=
false
;
this
.
passwordIsShow
=
true
;
this
.
Error
(
"暗証番号を入力してください"
);
return
;
}
this
.
btnLoading
=
true
;
this
.
apipost
(
"scm_get_SCMLoginService"
,
this
.
userInfo
,
res
=>
{
this
.
btnLoading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
let
user
=
res
.
data
.
data
;
let
user
=
res
.
data
.
data
;
var
userJson
=
JSON
.
stringify
(
user
);
localStorage
.
scmAccount
=
userJson
;
this
.
$router
.
push
({
path
:
'Home'
})
this
.
$router
.
push
({
path
:
'Home'
})
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
},
null
},
null
);
},
},
},
}
}
</
script
>
<
style
>
.login
.el-loading-mask
{
border-radius
:
24px
;
}
.login
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
top
:
0
;
background-color
:
#F8FAFB
;
background
:
url('../../assets/img/login.png')
no-repeat
;
background-size
:
100%
100%
;
font-family
:
"PingFang"
;
}
.login
.loginContent
{
position
:
absolute
;
top
:
20%
;
left
:
15%
;
width
:
400px
;
}
.login
.loginContent
.el-input__inner
{
border
:
none
;
border-bottom
:
1px
solid
#CCCCCC
;
border-radius
:
0
;
color
:
#333333
;
padding
:
0
;
}
.login
.loginContent
.el-input.is-active
.el-input__inner
,
.login
.loginContent
.el-input__inner
:focus
{
border-bottom
:
2px
solid
#089bab
!important
;
}
.loginDiv
{
margin-top
:
50px
;
}
.loginDiv
span
{
display
:
inline-block
;
width
:
180px
;
height
:
48px
;
line-height
:
48px
;
background
:
rgba
(
17
,
17
,
17
,
1
);
border-radius
:
24px
;
text-align
:
center
;
color
:
#FFFFFF
;
cursor
:
pointer
;
}
.login
.el-loading-mask
{
border-radius
:
24px
;
}
.login
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
top
:
0
;
background-color
:
#F8FAFB
;
background
:
url('../../assets/img/login.png')
no-repeat
;
background-size
:
100%
100%
;
font-family
:
"PingFang"
;
}
.login
.loginContent
{
position
:
absolute
;
top
:
20%
;
left
:
15%
;
width
:
400px
;
}
.login
.loginContent
.el-input__inner
{
border
:
none
;
border-bottom
:
1px
solid
#CCCCCC
;
border-radius
:
0
;
color
:
#333333
;
padding
:
0
;
}
.login
.loginContent
.el-input.is-active
.el-input__inner
,
.login
.loginContent
.el-input__inner
:focus
{
border-bottom
:
2px
solid
#089bab
!important
;
}
.loginDiv
{
margin-top
:
50px
;
}
.loginDiv
span
{
display
:
inline-block
;
width
:
180px
;
height
:
48px
;
line-height
:
48px
;
background
:
rgba
(
17
,
17
,
17
,
1
);
border-radius
:
24px
;
text-align
:
center
;
color
:
#FFFFFF
;
cursor
:
pointer
;
}
</
style
>
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