Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
ant-admin-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit b270d3cf
authored
2018-01-24 14:55:15 +0800
by
ethanlamzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
路由与参数的处理
1 parent
b8821c9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
src/routes/devutil/schoollist.js
src/routes/devutil/schoolmgr.js
src/routes/devutil/schoollist.js
View file @
b270d3c
...
...
@@ -175,10 +175,6 @@ export default class linkmanadm extends PureComponent {
dataIndex
:
'corp'
,
},
{
title
:
'学校码'
,
dataIndex
:
'schoolCode'
,
},
{
title
:
'更新时间'
,
dataIndex
:
'updatedAt'
,
sorter
:
true
,
...
...
src/routes/devutil/schoolmgr.js
View file @
b270d3c
...
...
@@ -53,8 +53,14 @@ export default class schoolmgr extends Component{
componentDidMount
()
{
const
{
dispatch
}
=
this
.
props
;
let
schoolCode
=
'test'
;
//console.log(this.props);
//console.log(this.state);
let
schoolCode
=
this
.
props
.
match
.
params
.
schcode
;
this
.
setState
({
schoolCode
:
schoolCode
});
dispatch
({
type
:
'linkman/groups'
,
payload
:{
schoolCode
:
schoolCode
},
...
...
@@ -130,7 +136,7 @@ export default class schoolmgr extends Component{
<
Col
{...
topColResponsiveProps
}
>
<
ChartCard
bordered
=
{
false
}
title
=
"学校名称"
title
=
{
`学校名称-(
${
this
.
state
.
schoolCode
}
)`
}
action
=
{
<
Tooltip
title
=
"指标说明"
>
<
Icon
type
=
"info-circle-o"
/>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment