Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
b7e9fa93
Commit
b7e9fa93
authored
Apr 30, 2021
by
mayongxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
范围优化
parent
32ec6209
Pipeline
#26958
passed with stages
in 37 minutes 26 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
card.jsx
...ormCenter/schemeConfig/projectMessage/components/card.jsx
+1
-1
UserManage.js
src/pages/userCenter/userManage/UserManage.js
+17
-6
api.js
src/services/userCenter/userManage/api.js
+2
-0
No files found.
src/pages/platformCenter/schemeConfig/projectMessage/components/card.jsx
View file @
b7e9fa93
...
...
@@ -139,7 +139,7 @@ const CardData = props => {
</
Popconfirm
>
</
a
>
}
style=
{
{
width
:
300
}
}
>
<
p
><
span
className=
{
styles
.
schemeName
}
>
矢量
</
span
>
{
props
.
item
.
servicename
}
</
p
>
<
div
>
<
span
className=
{
styles
.
schemeName
}
>
矢量
</
span
>
<
span
className=
{
styles
.
schemeName
}
>
范围
</
span
>
<
Button
style=
{
{
width
:
'12rem'
,
marginBottom
:
'0.5rem'
}
}
onClick=
{
()
=>
setMapScopeVisible
(
true
)
}
>
选择范围
</
Button
>
</
div
>
<
div
className=
{
styles
.
schemeItem
}
><
span
className=
{
styles
.
schemeName
}
>
瓦片
</
span
>
...
...
src/pages/userCenter/userManage/UserManage.js
View file @
b7e9fa93
...
...
@@ -45,7 +45,8 @@ import {
setUserState
as
postSetUserState
,
multiDeleteUsers
,
setOrgArea
,
getOrgArea
getOrgArea
,
GetMapSetByGroupID
}
from
'@/services/userCenter/userManage/api'
;
import
Tree
from
'@/components/ExpendableTree'
;
import
classnames
from
'classnames'
;
...
...
@@ -372,13 +373,23 @@ const UserManage = () => {
}
else
{
setCurrentSelectOrg
(
props
[
0
]);
}
orgAreas
.
map
((
item
)
=>
{
//
orgAreas.map((item)=>{
if
(
item
.
OUID
==
props
[
0
]){
setCurrentOrgArea
(
item
.
Extent
)
setCurrentOrgDistinct
(
item
.
AreaName
)
// if(item.OUID == props[0]){
// setCurrentOrgArea(item.Extent)
// setCurrentOrgDistinct(item.AreaName)
// }
// })
GetMapSetByGroupID
({
groupID
:
props
[
0
]
}).
then
(
res
=>
{
if
(
res
.
code
==
0
){
setCurrentOrgArea
(
res
.
data
.
MapRange
)
setCurrentOrgDistinct
(
res
.
data
.
AreeName
)
}
})
}
)
setOrgID
(
props
[
0
]
||
currentSelectOrg
);
// 树节点变化(即props不为空)时才请求,避免重复请求
if
(
props
[
0
])
{
...
...
src/services/userCenter/userManage/api.js
View file @
b7e9fa93
...
...
@@ -174,3 +174,5 @@ export const setOrgArea = params =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/SetOrgUserArea`
,
params
)
export
const
getOrgArea
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/GetOrgUserArea`
,
params
)
export
const
GetMapSetByGroupID
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/GetMapSetByGroupID`
,
params
)
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