Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wms
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
wuhao
wms
Commits
fd1543dc
Commit
fd1543dc
authored
May 17, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
232589d0
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
360 additions
and
179 deletions
+360
-179
index.jsx
src/components/Footer/index.jsx
+4
-11
global.less
src/global.less
+34
-2
index.jsx
src/pages/user/Login/index.jsx
+302
-66
index.less
src/pages/user/Login/index.less
+7
-0
fields.js
src/pages/user/Logon/fields.js
+13
-100
No files found.
src/components/Footer/index.jsx
View file @
fd1543dc
...
@@ -4,31 +4,24 @@ import { DefaultFooter } from "@ant-design/pro-layout";
...
@@ -4,31 +4,24 @@ import { DefaultFooter } from "@ant-design/pro-layout";
const
Footer
=
()
=>
{
const
Footer
=
()
=>
{
const
intl
=
useIntl
();
const
intl
=
useIntl
();
const
defaultMessage
=
intl
.
formatMessage
({
id
:
"app.copyright.produced"
,
defaultMessage
:
"蚂蚁集团体验技术部出品"
,
});
const
currentYear
=
new
Date
().
getFullYear
();
const
currentYear
=
new
Date
().
getFullYear
();
return
(
return
(
<
DefaultFooter
<
DefaultFooter
copyright=
{
`${currentYear}
${defaultMessage}
`
}
copyright=
{
`${currentYear}
江苏南高智能装备创新中心出品
`
}
links=
{
[
links=
{
[
{
{
key
:
"Ant Design Pro"
,
key
:
"Ant Design Pro"
,
title
:
"Ant Design Pro"
,
title
:
"JiangSuNanGao"
,
href
:
"https://pro.ant.design"
,
blankTarget
:
true
,
blankTarget
:
true
,
},
},
{
{
key
:
"github"
,
key
:
"github"
,
title
:
<
GithubOutlined
/>,
title
:
<
GithubOutlined
/>,
href
:
"https://github.com/ant-design/ant-design-pro"
,
blankTarget
:
true
,
blankTarget
:
true
,
},
},
{
{
key
:
"Ant Design"
,
key
:
"Designed By Wuhao"
,
title
:
"Ant Design"
,
title
:
"Designed By Wuhao"
,
href
:
"https://ant.design"
,
blankTarget
:
true
,
blankTarget
:
true
,
},
},
]
}
]
}
...
...
src/global.less
View file @
fd1543dc
...
@@ -110,12 +110,16 @@ ol {
...
@@ -110,12 +110,16 @@ ol {
padding: 10px 0 10px 0 !important;
padding: 10px 0 10px 0 !important;
}
}
.ant-pro-form-login-container {
.ant-pro-form-login-container {
padding-top: 22vh !important;
height: auto !important;
margin-top: -10vh;
padding: 0 !important;
background: transparent !important;
background: transparent !important;
}
}
.ant-pro-form-login-main {
.ant-pro-form-login-main {
margin-top: 30px !important;
margin-top: 30px !important;
}
}
pre {
pre {
color: rgba(0, 0, 0, 0.85) !important;
color: rgba(0, 0, 0, 0.85) !important;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
...
@@ -223,5 +227,33 @@ pre {
...
@@ -223,5 +227,33 @@ pre {
.ant-pro-form-login-desc {
.ant-pro-form-login-desc {
margin-bottom: 0 !important;
margin-bottom: 0 !important;
}
}
#content {
.ant-layout-footer {
background-color: transparent !important;
.ant-pro-global-footer {
margin: 0 !important;
padding: 0 !important;
}
}
.logincontent {
.ant-layout-footer {
background-color: #23394a !important;
.ant-pro-global-footer {
margin: 0 0 20px 0 !important;
padding: 0 !important;
* {
color: rgba(255, 255, 255, 0.6) !important;
}
.ant-pro-global-footer-copyright {
color: rgba(255, 255, 255, 0.3) !important;
}
}
}
}
.reg {
b {
color: #fff !important;
font-weight: normal !important;
}
}
}
src/pages/user/Login/index.jsx
View file @
fd1543dc
This diff is collapsed.
Click to expand it.
src/pages/user/Login/index.less
View file @
fd1543dc
...
@@ -18,7 +18,10 @@
...
@@ -18,7 +18,10 @@
}
}
.content {
.content {
display: flex;
flex: 1;
flex: 1;
align-items: center;
justify-content: center;
height: 100%;
height: 100%;
padding: 32px 0;
padding: 32px 0;
background-color: #23394a;
background-color: #23394a;
...
@@ -26,6 +29,9 @@
...
@@ -26,6 +29,9 @@
@media (min-width: @screen-md-min) {
@media (min-width: @screen-md-min) {
.content {
.content {
display: flex;
align-items: center;
justify-content: center;
padding: 32px 0 24px;
padding: 32px 0 24px;
}
}
}
}
...
@@ -42,3 +48,4 @@
...
@@ -42,3 +48,4 @@
color: @primary-color;
color: @primary-color;
}
}
}
}
src/pages/user/Logon/fields.js
View file @
fd1543dc
...
@@ -22,29 +22,23 @@ export default {
...
@@ -22,29 +22,23 @@ export default {
name
:
[
"userName"
],
name
:
[
"userName"
],
required
:
true
,
required
:
true
,
},
},
gender
:
{
value
:
null
,
type
:
"select"
,
title
:
"性别"
,
name
:
[
"gender"
],
required
:
false
,
options
:
[
{
label
:
"男"
,
value
:
1
,
},
{
label
:
"女"
,
value
:
2
,
},
],
},
telephone
:
{
telephone
:
{
value
:
null
,
value
:
null
,
type
:
"input"
,
type
:
"input"
,
title
:
"联系电话"
,
title
:
"联系电话"
,
name
:
[
"telephone"
],
name
:
[
"telephone"
],
required
:
false
,
},
departmentId
:
{
value
:
null
,
type
:
"treeselect"
,
title
:
"组织"
,
name
:
[
"departmentId"
],
required
:
true
,
required
:
true
,
options
:
{
database
:
departmentTree
,
params
:
{},
},
},
},
factoryId
:
{
factoryId
:
{
value
:
null
,
value
:
null
,
...
@@ -58,21 +52,10 @@ export default {
...
@@ -58,21 +52,10 @@ export default {
},
},
linked
:
true
,
linked
:
true
,
},
},
departmentId
:
{
value
:
null
,
type
:
"treeselect"
,
title
:
"部门"
,
name
:
[
"departmentId"
],
required
:
true
,
options
:
{
database
:
departmentTree
,
params
:
{},
},
},
shopIdList
:
{
shopIdList
:
{
value
:
[],
value
:
[],
type
:
"select"
,
type
:
"select"
,
title
:
"负责
车间
"
,
title
:
"负责
仓库
"
,
name
:
[
"shopIdList"
],
name
:
[
"shopIdList"
],
required
:
false
,
required
:
false
,
belinked
:
{
belinked
:
{
...
@@ -84,34 +67,6 @@ export default {
...
@@ -84,34 +67,6 @@ export default {
linked
:
true
,
linked
:
true
,
multiple
:
true
,
multiple
:
true
,
},
},
sectionIdList
:
{
value
:
[],
type
:
"select"
,
title
:
"负责工段"
,
name
:
[
"sectionIdList"
],
required
:
false
,
belinked
:
{
options
:
{
database
:
sectionSelectByShops
,
params
:
{
shopIdList
:
"linked"
,
factoryId
:
"linked"
},
},
},
multiple
:
true
,
},
productionLineIdList
:
{
value
:
[],
type
:
"select"
,
title
:
"负责产线"
,
name
:
[
"productionLineIdList"
],
required
:
false
,
belinked
:
{
options
:
{
database
:
productionLineSelectByShops
,
params
:
{
shopIdList
:
"linked"
,
factoryId
:
"linked"
},
},
},
multiple
:
true
,
},
roleIdList
:
{
roleIdList
:
{
value
:
[],
value
:
[],
type
:
"select"
,
type
:
"select"
,
...
@@ -149,36 +104,6 @@ export default {
...
@@ -149,36 +104,6 @@ export default {
span
:
12
,
span
:
12
,
},
},
},
},
academicCareer
:
{
value
:
null
,
type
:
"input"
,
title
:
"学历"
,
name
:
[
"academicCareer"
],
required
:
false
,
col
:
{
span
:
12
,
},
},
university
:
{
value
:
null
,
type
:
"input"
,
title
:
"毕业院校"
,
name
:
[
"university"
],
required
:
false
,
col
:
{
span
:
12
,
},
},
major
:
{
value
:
null
,
type
:
"input"
,
title
:
"专业"
,
name
:
[
"major"
],
required
:
false
,
col
:
{
span
:
12
,
},
},
remark
:
{
remark
:
{
value
:
null
,
value
:
null
,
type
:
"textarea"
,
type
:
"textarea"
,
...
@@ -187,17 +112,5 @@ export default {
...
@@ -187,17 +112,5 @@ export default {
required
:
false
,
required
:
false
,
col
:
{
span
:
24
},
col
:
{
span
:
24
},
},
},
userImgList
:
{
value
:
null
,
type
:
"upload"
,
title
:
"个人图片"
,
name
:
[
"userImgList"
],
required
:
false
,
col
:
{
span
:
24
,
},
listType
:
"img"
,
multiple
:
false
,
limit
:
1
,
},
};
};
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