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 d7819fe3
authored
2018-01-29 16:42:24 +0800
by
ethanlamzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
链接动态服务
1 parent
f466b6dd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
11 deletions
.roadhogrc
.roadhogrc.mock.js
mock/schoollist.js
src/routes/devutil/schoollist.js
src/routes/devutil/schoolmgr.js
.roadhogrc
0 → 100644
View file @
d7819fe
{
"entry": "src/index.js",
"extraBabelPlugins": [
"transform-runtime",
"transform-decorators-legacy",
"transform-class-properties",
["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }]
],
"env": {
"development": {
"extraBabelPlugins": [
"dva-hmr"
]
}
},
"externals": {
"g2": "G2",
"g-cloud": "Cloud",
"g2-plugin-slider": "G2.Plugin.slider"
},
"ignoreMomentLocale": true,
"theme": "./src/theme.js",
"hash": true
}
.roadhogrc.mock.js
View file @
d7819fe
...
...
@@ -144,4 +144,4 @@ const proxy = {
},
};
export
default
noProxy
?
{}
:
delay
(
proxy
,
1000
);
export
default
noProxy
?
{
"/*"
:
"http://127.0.0.1:8091/"
}
:
delay
(
proxy
,
1000
);
mock/schoollist.js
View file @
d7819fe
...
...
@@ -11,6 +11,7 @@ export function schoolList(count,filter) {
name
:
`学校名字-
${
i
}
`
,
corp
:
`wx_xxxx111100111_
${
i
}
`
,
schoolCode
:
`sch_000111234
${
i
}
`
,
code
:
`sch_000111234
${
i
}
`
,
avatar
:
'XXX'
,
updatedAt
:
new
Date
(
new
Date
().
getTime
()
-
(
1000
*
60
*
60
*
2
*
i
)),
createdAt
:
new
Date
(
new
Date
().
getTime
()
-
(
1000
*
60
*
60
*
2
*
i
)),
...
...
src/routes/devutil/schoollist.js
View file @
d7819fe
...
...
@@ -34,10 +34,6 @@ export default class schoollist extends PureComponent {
const
{
dispatch
}
=
this
.
props
;
dispatch
({
type
:
'schools/fetch'
,
});
dispatch
({
type
:
'areas/fetch'
,
});
}
...
...
@@ -192,10 +188,6 @@ export default class schoollist extends PureComponent {
dataIndex
:
'name'
,
},
{
title
:
'企业号代码'
,
dataIndex
:
'corp'
,
},
{
title
:
'更新时间'
,
dataIndex
:
'updatedAt'
,
sorter
:
true
,
...
...
@@ -203,7 +195,7 @@ export default class schoollist extends PureComponent {
},
{
title
:
'操作'
,
dataIndex
:
'
schoolC
ode'
,
dataIndex
:
'
c
ode'
,
render
:
(
val
)
=>
(
<
Fragment
>
<
a
href
=
""
>
配置
<
/a
>
...
...
src/routes/devutil/schoolmgr.js
View file @
d7819fe
...
...
@@ -72,6 +72,9 @@ export default class schoolmgr extends Component{
//初始化对应的树节点数据
onLoadData
=
(
treeNode
)
=>
{
let
schoolCode
=
this
.
props
.
match
.
params
.
schcode
;
return
new
Promise
((
resolve
)
=>
{
if
(
treeNode
.
props
.
children
)
{
resolve
();
...
...
@@ -82,7 +85,10 @@ export default class schoolmgr extends Component{
let
groupid
=
treeNode
.
props
.
eventKey
;
dispatch
({
type
:
'linkman/lklist'
,
payload
:{
groupid
:
groupid
},
payload
:{
groupid
:
groupid
,
schoolCode
:
schoolCode
},
});
resolve
();
...
...
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