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
19ebdb02
Commit
19ebdb02
authored
Aug 19, 2016
by
superman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.3.4
parent
6b70e98a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
97 additions
and
47 deletions
+97
-47
index.css
dist/index.css
+1
-1
index.js
dist/index.js
+9
-9
App.less
src/containers/App/App.less
+2
-0
bg.png
src/containers/App/images/bg.png
+0
-0
logo2.png
src/containers/App/images/logo2.png
+0
-0
logo3.png
src/containers/App/images/logo3.png
+0
-0
logo4_02.png
src/containers/App/images/logo4_02.png
+0
-0
logo5_02.png
src/containers/App/images/logo5_02.png
+0
-0
logo6_02.png
src/containers/App/images/logo6_02.png
+0
-0
logo7_02.png
src/containers/App/images/logo7_02.png
+0
-0
logo8_03.png
src/containers/App/images/logo8_03.png
+0
-0
AddItem.jsx
src/containers/CustomMessage/AddItem.jsx
+12
-0
Item.jsx
src/containers/CustomMessage/Item.jsx
+58
-35
Home.jsx
src/containers/Home/Home.jsx
+6
-0
Contract.jsx
src/containers/Trade/Contract.jsx
+2
-2
customMessage.js
src/reducers/customMessage.js
+5
-0
utils.js
src/utils.js
+2
-0
No files found.
dist/index.css
View file @
19ebdb02
This diff is collapsed.
Click to expand it.
dist/index.js
View file @
19ebdb02
This diff is collapsed.
Click to expand it.
src/containers/App/App.less
View file @
19ebdb02
...
@@ -95,6 +95,8 @@
...
@@ -95,6 +95,8 @@
height: 100%;
height: 100%;
flex: 1 0 auto;
flex: 1 0 auto;
overflow: hidden;
overflow: hidden;
//background: url(/src/containers/App/images/bg.png) no-repeat bottom right;
background-size:120px 66px;
h1 {
h1 {
font-size: 18px;
font-size: 18px;
color: #444;
color: #444;
...
...
src/containers/App/images/bg.png
0 → 100644
View file @
19ebdb02
15 KB
src/containers/App/images/logo2.png
0 → 100644
View file @
19ebdb02
27.2 KB
src/containers/App/images/logo3.png
0 → 100644
View file @
19ebdb02
27.4 KB
src/containers/App/images/logo4_02.png
0 → 100644
View file @
19ebdb02
21.4 KB
src/containers/App/images/logo5_02.png
0 → 100644
View file @
19ebdb02
21.4 KB
src/containers/App/images/logo6_02.png
0 → 100644
View file @
19ebdb02
13.2 KB
src/containers/App/images/logo7_02.png
0 → 100644
View file @
19ebdb02
13 KB
src/containers/App/images/logo8_03.png
0 → 100644
View file @
19ebdb02
14.4 KB
src/containers/CustomMessage/AddItem.jsx
View file @
19ebdb02
...
@@ -41,12 +41,24 @@ export default class AddItem extends Component {
...
@@ -41,12 +41,24 @@ export default class AddItem extends Component {
}
}
}
}
componentWillMount
(){
this
.
props
.
dispatch
({
type
:
'CLEAR_MESSAGE_ITEM'
});
}
componentWillReceiveProps
(
nextProps
)
{
componentWillReceiveProps
(
nextProps
)
{
if
(
nextProps
&&
nextProps
.
item
&&
nextProps
.
item
.
id
)
{
if
(
nextProps
&&
nextProps
.
item
&&
nextProps
.
item
.
id
)
{
this
.
props
.
history
.
replace
(
'/customMessages/'
+
nextProps
.
item
.
id
);
this
.
props
.
history
.
replace
(
'/customMessages/'
+
nextProps
.
item
.
id
);
}
}
}
}
// componentWillUnmount(){
// this.props.dispatch({
// type: 'CLEAR_MESSAGE_ITEM'
// });
// }
handleSubmit
(
e
)
{
handleSubmit
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
const
data
=
this
.
props
.
form
.
getFieldsValue
();
const
data
=
this
.
props
.
form
.
getFieldsValue
();
...
...
src/containers/CustomMessage/Item.jsx
View file @
19ebdb02
...
@@ -27,7 +27,6 @@ export default class Item extends Component {
...
@@ -27,7 +27,6 @@ export default class Item extends Component {
};
};
render
()
{
render
()
{
const
{
item
,
loading
,
dispatch
}
=
this
.
props
;
const
{
item
,
loading
,
dispatch
}
=
this
.
props
;
const
styles
=
require
(
'../Trade/Item.less'
);
const
styles
=
require
(
'../Trade/Item.less'
);
...
@@ -35,7 +34,7 @@ export default class Item extends Component {
...
@@ -35,7 +34,7 @@ export default class Item extends Component {
const
vw
=
16
;
const
vw
=
16
;
const
operation
=
(
const
operation
=
(
<
HeaderOperation
history=
{
this
.
props
.
history
}
buttons=
{
[{
key
:
'rollback'
}]
}
/>
<
HeaderOperation
history=
{
this
.
props
.
history
}
buttons=
{
[{
key
:
'rollback'
}]
}
/>
);
);
const
header
=
(
const
header
=
(
...
@@ -57,54 +56,78 @@ export default class Item extends Component {
...
@@ -57,54 +56,78 @@ export default class Item extends Component {
<
Col
span=
{
vw
}
>
{
item
.
id
}
</
Col
>
<
Col
span=
{
vw
}
>
{
item
.
id
}
</
Col
>
</
Row
>
</
Row
>
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
消息标题
</
Col
>
<
Col
span=
{
tw
}
>
推送渠道
</
Col
>
<
Col
span=
{
vw
}
>
{
item
.
title
}
</
Col
>
<
Col
</
Row
>
span=
{
vw
}
>
{
item
.
channelName
}
</
Col
>
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
消息摘要
</
Col
>
<
Col
span=
{
vw
}
>
{
item
.
abstracts
}
</
Col
>
</
Row
>
</
Row
>
{
item
.
channelType
!==
1
&&
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
消息标题
</
Col
>
<
Col
span=
{
vw
}
>
{
item
.
title
}
</
Col
>
</
Row
>
}
{
item
.
channelType
!==
1
&&
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
消息摘要
</
Col
>
<
Col
span=
{
vw
}
>
<
div
style=
{
{
maxWidth
:
600
}
}
>
{
item
.
abstracts
}
</
div
>
</
Col
>
</
Row
>
}
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
消息正文
</
Col
>
<
Col
span=
{
tw
}
>
消息正文
</
Col
>
<
Col
span=
{
vw
}
>
{
item
.
contents
}
</
Col
>
</
Row
>
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
跳转内容
</
Col
>
<
Col
span=
{
vw
}
>
<
Col
span=
{
vw
}
>
<
span
>
{
'类型:'
+
(
item
.
redirectName
||
''
)
}
</
span
>
<
div
style=
{
{
maxWidth
:
600
}
}
>
{
item
.
contents
}
</
div
>
{
item
.
redirect
&&
<
span
style=
{
{
marginLeft
:
'1em'
}
}
>
{
'内容:'
+
item
.
redirect
}
</
span
>
}
</
Col
>
</
Col
>
</
Row
>
</
Row
>
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
{
<
Col
span=
{
tw
}
>
推送渠道
</
Col
>
item
.
channelType
!==
1
&&
<
Col
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
span=
{
vw
}
>
{
item
.
channelName
}
</
Col
>
<
Col
span=
{
tw
}
>
跳转内容
</
Col
>
</
Row
>
<
Col
span=
{
vw
}
>
<
span
>
{
'类型:'
+
(
item
.
redirectName
||
''
)
}
</
span
>
{
item
.
redirect
&&
<
span
style=
{
{
marginLeft
:
'1em'
}
}
>
{
'内容:'
+
item
.
redirect
}
</
span
>
}
</
Col
>
</
Row
>
}
{
item
.
channelType
!==
1
&&
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
推送人数
</
Col
>
<
Col
span=
{
vw
}
>
{
item
.
count
}
</
Col
>
</
Row
>
}
{
item
.
channelType
!==
1
&&
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
推送类型
</
Col
>
<
Col
span=
{
vw
}
>
{
item
.
sendName
}
</
Col
>
</
Row
>
}
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
推送时间
</
Col
>
<
Col
span=
{
tw
}
>
推送时间
</
Col
>
<
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
>
<
Col
span=
{
vw
}
>
{
item
.
count
}
</
Col
>
</
Row
>
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
推送类型
</
Col
>
<
Col
span=
{
vw
}
>
{
item
.
sendName
}
</
Col
>
</
Row
>
</
Row
>
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Row
type=
"flex"
justify=
"space-around"
align=
"middle"
>
<
Col
span=
{
tw
}
>
推送对象
</
Col
>
<
Col
span=
{
tw
}
>
推送对象
</
Col
>
<
Col
span=
{
vw
}
>
{
item
.
send
}
</
Col
>
<
Col
span=
{
vw
}
>
<
div
style=
{
{
maxWidth
:
600
}
}
>
{
item
.
send
}
</
div
>
</
Col
>
</
Row
>
</
Row
>
</
div
>
</
div
>
<
p
>
<
p
>
<
Button
onClick=
{
e
=>
{
e
.
preventDefault
();
this
.
props
.
history
.
goBack
();}
}
<
Button
onClick=
{
e
=>
{
style=
{
{
marginLeft
:
'1em'
}
}
>
e
.
preventDefault
();
this
.
props
.
history
.
goBack
();
}
}
style=
{
{
marginLeft
:
'1em'
}
}
>
<
Icon
type=
"rollback"
/>
返回
<
Icon
type=
"rollback"
/>
返回
</
Button
>
</
Button
>
</
p
>
</
p
>
...
...
src/containers/Home/Home.jsx
View file @
19ebdb02
...
@@ -8,6 +8,12 @@ const Home = ({location}) => {
...
@@ -8,6 +8,12 @@ const Home = ({location}) => {
<
div
className=
{
styles
.
home
}
>
<
div
className=
{
styles
.
home
}
>
<
h1
style=
{
{
marginBottom
:
50
}
}
>
欢迎使用枢纽科技后台
</
h1
>
<
h1
style=
{
{
marginBottom
:
50
}
}
>
欢迎使用枢纽科技后台
</
h1
>
<
h3
>
2016-08-19 更新 1.3.4
</
h3
>
<
p
>
1. BUG修复: 订单合同物流单号设置。
<
br
/>
2. BUG修复: 自定义消息推送BUG; 自定义消息详情展示时微信渠道去除多余字段
<
br
/>
</
p
>
<
h3
>
2016-08-18 更新 1.3.3
</
h3
>
<
h3
>
2016-08-18 更新 1.3.3
</
h3
>
<
p
>
<
p
>
1. 菜单栏增加"设置"; "管理员"菜单只分配给管理员角色。
<
br
/>
1. 菜单栏增加"设置"; "管理员"菜单只分配给管理员角色。
<
br
/>
...
...
src/containers/Trade/Contract.jsx
View file @
19ebdb02
...
@@ -52,11 +52,11 @@ export default class Contract extends Component {
...
@@ -52,11 +52,11 @@ export default class Contract extends Component {
handleSubmit
(
e
)
{
handleSubmit
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
const
data
=
this
.
props
.
form
.
getFieldsValue
();
const
data
=
this
.
props
.
form
.
getFieldsValue
();
data
.
id
=
this
.
props
.
trade
.
id
;
data
.
id
=
this
.
props
.
params
.
id
;
console
.
log
(
data
);
console
.
log
(
data
);
this
.
props
.
dispatch
({
this
.
props
.
dispatch
({
type
:
'UPDATE_CONTRACT_ITEM'
,
type
:
'UPDATE_CONTRACT_ITEM'
,
data
item
:
data
});
});
}
}
...
...
src/reducers/customMessage.js
View file @
19ebdb02
...
@@ -28,7 +28,12 @@ const message = handleActions({
...
@@ -28,7 +28,12 @@ const message = handleActions({
},
},
[
'CREATE_MESSAGE_ITEM_FAILED'
](
state
,
action
){
[
'CREATE_MESSAGE_ITEM_FAILED'
](
state
,
action
){
return
{...
state
,
err
:
action
.
err
,
loading
:
false
,
item
:
null
}
return
{...
state
,
err
:
action
.
err
,
loading
:
false
,
item
:
null
}
},
[
'CLEAR_MESSAGE_ITEM'
](
state
){
console
.
log
(
'CLEAR_MESSAGE_ITEM'
);
return
{...
state
,
item
:
null
};
}
}
},
{
},
{
items
:
[],
items
:
[],
loading
:
false
,
loading
:
false
,
...
...
src/utils.js
View file @
19ebdb02
...
@@ -79,6 +79,8 @@ export const userStatusToString = status => {
...
@@ -79,6 +79,8 @@ export const userStatusToString = status => {
export
const
tradeStatusToString
=
status
=>
{
export
const
tradeStatusToString
=
status
=>
{
switch
(
status
)
{
switch
(
status
)
{
case
0
:
return
'已删除'
;
case
1
:
case
1
:
return
'未报单'
;
return
'未报单'
;
case
10
:
case
10
:
...
...
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