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
dffa4794
Commit
dffa4794
authored
Jun 01, 2021
by
shaoan123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新获取工作空间接口
parent
9f127906
Pipeline
#28713
skipped with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
AddModal.jsx
...pages/platformCenter/schemeConfig/VectorData/AddModal.jsx
+5
-4
api.js
src/services/webConfig/api.js
+1
-1
No files found.
src/pages/platformCenter/schemeConfig/VectorData/AddModal.jsx
View file @
dffa4794
...
...
@@ -155,10 +155,11 @@ const AddModal = props => {
_version
:
9999
,
}
GetGISServerMapList
(
query
).
then
(
res
=>
{
if
(
Array
.
isArray
(
res
))
{
const
defaultValue
=
res
[
0
].
name
||
''
console
.
log
(
'res'
,
res
);
if
(
Array
.
isArray
(
res
.
data
))
{
const
defaultValue
=
res
.
data
[
0
]
||
''
form
.
setFieldsValue
({
name
:
defaultValue
,
workname
:
defaultValue
});
setWorkList
(
res
)
setWorkList
(
res
.
data
)
setWorkSpace
(
defaultValue
)
}
else
{
...
...
@@ -255,7 +256,7 @@ const AddModal = props => {
>
<
div
className=
{
styles
.
imgList
}
>
<
Select
onChange=
{
handleWorkspace
}
value
={
workSpace
}
>
{
workList
.
length
?
workList
.
map
((
item
,
index
)
=>
{
return
<
Option
key=
{
index
}
value=
{
item
.
name
}
>
{
item
.
name
}
</
Option
>
})
:
''
}
{
workList
.
length
?
workList
.
map
((
item
,
index
)
=>
{
return
<
Option
key=
{
index
}
value=
{
item
}
>
{
item
}
</
Option
>
})
:
''
}
</
Select
>
<
Button
style=
{
{
marginLeft
:
'0.5rem'
}
}
onClick=
{
()
=>
{
selectWorkspace
()
}
}
>
选择工作空间
</
Button
>
</
div
>
...
...
src/services/webConfig/api.js
View file @
dffa4794
...
...
@@ -176,7 +176,7 @@ export const GetVectorService = () =>
//获取元数据的工作空间列表
export
const
GetGISServerMapList
=
query
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/D_
GetGISServerMapList`
,
query
);
get
(
`
${
PUBLISH_SERVICE
}
/Maplayer/
GetGISServerMapList`
,
query
);
//发布原数据
...
...
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