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
622d1b1a
Commit
622d1b1a
authored
3 years ago
by
shaoan123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接方案配置接口
parent
2bc8f01a
master
dev-database
dev-solution
dev-达梦
styleEditBranch
No related merge requests found
Pipeline
#31087
skipped with stages
Changes
4
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
13 deletions
+30
-13
index.jsx
src/components/ThreeMapScope/index.jsx
+1
-2
AddModal.jsx
...atformCenter/dimensionsConfig/solutionConfig/AddModal.jsx
+5
-8
solutionConfig.jsx
...Center/dimensionsConfig/solutionConfig/solutionConfig.jsx
+0
-0
api.js
src/services/webConfig/api.js
+24
-3
No files found.
src/components/ThreeMapScope/index.jsx
View file @
622d1b1a
...
...
@@ -20,7 +20,6 @@ const MapScope = props => {
el
:
el
.
current
,
});
viewer
=
pdViewer
.
viewer
;
console
.
log
(
'viewer'
,
viewer
);
pdViewer
.
viewer
.
camera
.
flyTo
({
destination
:
Cesium
.
Cartesian3
.
fromDegrees
(
114.31
,
30.52
,
15000.0
),
//武汉
});
...
...
@@ -142,7 +141,7 @@ const MapScope = props => {
confirmModal
&&
confirmModal
(
mapSettings
)
}
else
{
message
.
info
(
"未选择视角,请先选择区域
,再点击获取视角按钮获取视角
"
)
message
.
info
(
"未选择视角,请先选择区域"
)
}
}
...
...
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/dimensionsConfig/solutionConfig/AddModal.jsx
View file @
622d1b1a
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Form
,
Modal
,
Input
,
Select
,
AutoComplete
,
Button
,
notification
}
from
'antd'
;
import
{
SetServiceConfig
SetServiceConfig
,
AddWebSchema
}
from
'@/services/webConfig/api'
;
...
...
@@ -17,15 +17,12 @@ const AddModal = props => {
if
(
validate
)
{
setLoading
(
true
);
let
obj
=
form
.
getFieldsValue
();
SetServiceConfig
({
schemename
:
obj
.
schemename
,
terminalType
:
type
===
'add'
?
'web'
:
'phone'
,
isBaseMap
:
'false'
,
jsonCfg
:
type
===
'add'
?
JSON
.
stringify
({
type
:
'dynamic'
})
:
JSON
.
stringify
({
isDefault
:
false
})
AddWebSchema
({
schemename
:
obj
.
schemename
})
.
then
(
res
=>
{
setLoading
(
false
);
if
(
res
.
msg
===
"
Ok
"
)
{
if
(
res
.
msg
===
""
)
{
form
.
resetFields
();
callBackSubmit
();
notification
.
success
({
...
...
@@ -38,7 +35,7 @@ const AddModal = props => {
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
'新增失败'
,
description
:
res
.
msg
,
});
}
})
...
...
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/dimensionsConfig/solutionConfig/solutionConfig.jsx
View file @
622d1b1a
This diff is collapsed.
Click to expand it.
src/services/webConfig/api.js
View file @
622d1b1a
...
...
@@ -282,6 +282,27 @@ export const AddSchemaBaseMap = (query) =>
export
const
DeleteSchemaBaseMap
=
(
query
)
=>
get
(
`
${
PUBLISH_SERVICE
}
/Maplayer/DeleteSchemaBaseMap`
,
query
);
//设置底图激活
//设置底图激活
export
const
SchemaSettingIsActive
=
(
query
)
=>
get
(
`
${
PUBLISH_SERVICE
}
/Maplayer/SchemaSettingIsActive`
,
query
);
\ No newline at end of file
get
(
`
${
PUBLISH_SERVICE
}
/Maplayer/SchemaSettingIsActive`
,
query
);
//获取Web方案配置列表
export
const
GetWebSchemaList
=
(
query
)
=>
get
(
`
${
PUBLISH_SERVICE
}
/Maplayer/GetWebSchemaList`
,
query
);
//添加Web方案
export
const
AddWebSchema
=
(
query
)
=>
post
(
`
${
PUBLISH_SERVICE
}
/Maplayer/AddWebSchema`
,
query
);
//删除Web方案
export
const
DeleteWebSchema
=
(
schemaname
)
=>
get
(
`
${
PUBLISH_SERVICE
}
/Maplayer/DeleteWebSchema?schemaname=
${
schemaname
}
`
);
//设置web方案是否默认
export
const
IsActionWebSchema
=
(
query
)
=>
get
(
`
${
PUBLISH_SERVICE
}
/Maplayer/IsActionWebSchema`
,
query
);
//根据方案名称设置角色
export
const
SettingRoleWebSchema
=
(
query
)
=>
get
(
`
${
PUBLISH_SERVICE
}
/Maplayer/SettingRoleWebSchema`
,
query
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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