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 2d65cc00
authored
2018-02-01 09:52:31 +0800
by
ethanlamzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化界面
1 parent
af9e177f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
src/routes/devutil/schoollist.js
src/services/devutil.js
src/routes/devutil/schoollist.js
View file @
2d65cc0
...
...
@@ -136,7 +136,7 @@ export default class schoollist extends PureComponent {
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
FormItem
label
=
"地区"
>
{
getFieldDecorator
(
'areaCode'
)(
<
Select
placeholder
=
"
请选择
"
style
=
{{
width
:
'100%'
}}
>
<
Select
placeholder
=
"
非精确查询,需要选择地区
"
style
=
{{
width
:
'100%'
}}
>
{
this
.
renderSellectOption
(
this
.
props
.
areas
.
list
.
sort
(
this
.
areasort
))}
<
/Select
>
)}
...
...
@@ -210,7 +210,6 @@ export default class schoollist extends PureComponent {
dataIndex
:
'code'
,
render
:
(
val
)
=>
(
<
Fragment
>
<
a
href
=
""
>
配置
<
/a
>
<
Divider
type
=
"vertical"
/>
<
Link
to
=
{
`/devutil/schoolmgr/
${
val
}
`
}
className
=
{
styles
.
logo
}
key
=
"logo"
>
<
span
>
查看
<
/span
>
...
...
src/services/devutil.js
View file @
2d65cc0
...
...
@@ -5,9 +5,14 @@ import { getToken } from '../utils/authority';
//处理请求的合法性问题
export
function
availToken
(
params
){
console
.
log
(
'availToken'
);
if
(
params
==
undefined
)
params
=
{
}
console
.
log
(
params
);
let
tokeninfo
=
getToken
();
params
.
tpAccount
=
tokeninfo
.
tpAccount
;
params
.
tpToken
=
tokeninfo
.
tpToken
;
console
.
log
(
params
);
return
params
;
}
...
...
@@ -28,7 +33,9 @@ export async function checkSchinfo(params){
//获取对应的地区列表信息
export
async
function
queryWXArea
(
params
)
{
return
request
(
`/api/ywpt/bd/area
${
stringify
(
params
)}
`
);
console
.
log
(
'queryWXArea'
);
params
=
availToken
(
params
);
return
request
(
`/api/ywpt/bd/area?
${
stringify
(
params
)}
`
);
}
//groups
...
...
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