Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
shuniu-admin-react
Project
Project
Details
Activity
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
superman
shuniu-admin-react
Commits
de5685b7
Commit
de5685b7
authored
Aug 18, 2016
by
superman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.3.3
parent
de51b747
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
128 additions
and
95 deletions
+128
-95
index.css
dist/index.css
+1
-1
index.js
dist/index.js
+11
-11
App.less
src/containers/App/App.less
+10
-2
AddItem.jsx
src/containers/CustomMessage/AddItem.jsx
+7
-0
Item.jsx
src/containers/CustomMessage/Item.jsx
+1
-1
Home.jsx
src/containers/Home/Home.jsx
+8
-6
Login.jsx
src/containers/Login/Login.jsx
+4
-0
Login.less
src/containers/Login/Login.less
+1
-2
EditItem.jsx
src/containers/Users/EditItem.jsx
+75
-64
xFetch.js
src/services/xFetch.js
+10
-8
No files found.
dist/index.css
View file @
de5685b7
This diff is collapsed.
Click to expand it.
dist/index.js
View file @
de5685b7
This diff is collapsed.
Click to expand it.
src/containers/App/App.less
View file @
de5685b7
...
...
@@ -76,13 +76,13 @@
}
}
.ant-menu-inline .ant-menu-item,
.ant-menu-vertical .ant-menu-item{
.ant-menu-vertical .ant-menu-item
{
border-right: 0;
margin-left: 0;
left: 0;
}
.ant-menu-inline .ant-menu-item-selected,
.ant-menu-inline .ant-menu-selected{
.ant-menu-inline .ant-menu-selected
{
border-right: 0;
}
}
...
...
@@ -124,6 +124,14 @@
.main-form {
padding-top: 24px;
}
.authorities-checkbox-group {
.ant-checkbox-group-item {
display: block;
}
.ant-checkbox-wrapper + .ant-checkbox-wrapper {
margin-left: 0;
}
}
}
}
src/containers/CustomMessage/AddItem.jsx
View file @
de5685b7
...
...
@@ -28,6 +28,7 @@ import {formItemLayout, footerFormSubmitLayout} from '../../utils';
@
connect
(
state
=>
({
loading
:
state
.
customMessage
.
loading
,
item
:
state
.
customMessage
.
item
}))
@
Form
.
create
()
export
default
class
AddItem
extends
Component
{
...
...
@@ -40,6 +41,12 @@ export default class AddItem extends Component {
}
}
componentWillReceiveProps
(
nextProps
)
{
if
(
nextProps
&&
nextProps
.
item
&&
nextProps
.
item
.
id
)
{
this
.
props
.
history
.
replace
(
'/customMessages/'
+
nextProps
.
item
.
id
);
}
}
handleSubmit
(
e
)
{
e
.
preventDefault
();
const
data
=
this
.
props
.
form
.
getFieldsValue
();
...
...
src/containers/CustomMessage/Item.jsx
View file @
de5685b7
...
...
@@ -87,7 +87,7 @@ export default class Item extends Component {
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
推送时间
</
Col
>
<
Col
span=
{
vw
}
>
{
item
.
dateCreated
&&
item
.
dateCreated
.
replace
(
/
[
年月
]
/g
,
'-'
).
replace
(
/日/g
,
''
)
}
</
Col
>
span=
{
vw
}
>
{
item
.
dateCreated
&&
(
item
.
dateCreated
+
''
)
.
replace
(
/
[
年月
]
/g
,
'-'
).
replace
(
/日/g
,
''
)
}
</
Col
>
</
Row
>
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
推送人数
</
Col
>
...
...
src/containers/Home/Home.jsx
View file @
de5685b7
...
...
@@ -12,21 +12,23 @@ const Home = ({location}) => {
<
p
>
1. 菜单栏增加"设置"; "管理员"菜单只分配给管理员角色。
<
br
/>
2. 修复Window下, 报单审核照片下载文件扩展名缺失。
<
br
/>
3. 创建角色时, 角色ID强制"ROLE_"开头
<
br
/>
4. ROLE_ADMIN, ROLE_USER, ROLE_DEFAULT 三个角色不允许删除
<
br
/>
3. 创建角色时, 角色ID强制"ROLE_"开头。
<
br
/>
4. ROLE_ADMIN, ROLE_USER, ROLE_DEFAULT 三个角色不允许删除。
<
br
/>
5. BUG修复: 推送自定义消息成功后进入消息详情页面。
<
br
/>
6. 更严谨的权限控制。
</
p
>
<
h3
>
2016-08-17 更新 1.3.2
</
h3
>
<
p
>
1. 报单审核列表页 下载审核成功的照片
1. 报单审核列表页 下载审核成功的照片
。
</
p
>
<
h3
>
2016-08-15 更新 1.3.1
</
h3
>
<
p
>
1. 增加身份认证审核
1. 增加身份认证审核
。
</
p
>
<
h3
>
2016-08-12 更新 1.3.0
</
h3
>
<
p
>
1. 权限系统
<
br
/>
2. 用户退出, 用户密码修改
1. 权限系统
。
<
br
/>
2. 用户退出, 用户密码修改
。
</
p
>
</
div
>
...
...
src/containers/Login/Login.jsx
View file @
de5685b7
...
...
@@ -15,6 +15,10 @@ export default class Login extends Component {
};
componentWillMount
()
{
sessionStorage
.
clear
();
}
handleSubmit
=
(
e
)
=>
{
e
.
preventDefault
();
const
data
=
this
.
props
.
form
.
getFieldsValue
();
...
...
src/containers/Login/Login.less
View file @
de5685b7
...
...
@@ -26,6 +26,7 @@
& > div {
display: flex;
justify-content: center;
margin-top: -150px;
h1 {
text-align: center;
margin-bottom: 50px;
...
...
@@ -64,8 +65,6 @@
}
}
:global(.fade-enter) {
opacity: 0;
animation-duration: 2s;
...
...
src/containers/Users/EditItem.jsx
View file @
de5685b7
This diff is collapsed.
Click to expand it.
src/services/xFetch.js
View file @
de5685b7
...
...
@@ -34,17 +34,19 @@ function errorMessageParse(res) {
function
xFetch
(
url
,
options
)
{
const
opts
=
{...
options
};
let
user
;
try
{
user
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'user'
))
||
{};
user
=
user
.
data
||
{};
}
catch
(
ex
)
{
user
=
{};
}
opts
.
headers
=
{
...
opts
.
headers
,
authorization
:
user
.
token
||
''
,
};
if
(
url
!==
'/api/authenticate'
)
{
let
user
;
try
{
user
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'user'
))
||
{};
user
=
user
.
data
||
{};
}
catch
(
ex
)
{
user
=
{};
}
opts
.
headers
.
authorization
=
user
.
token
||
''
;
}
if
(
opts
.
method
!=
'GET'
)
{
opts
.
headers
[
'content-type'
]
=
'application/x-www-form-urlencoded'
;
}
...
...
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