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
2a185e6d
Commit
2a185e6d
authored
Jun 19, 2024
by
lihonglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 网站配置增加 GIS功能展示高德地图
parent
03a19602
Pipeline
#89967
passed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
siteConfigDrawer.js
...es/productCenter/webConfig/components/siteConfigDrawer.js
+18
-1
No files found.
src/pages/productCenter/webConfig/components/siteConfigDrawer.js
View file @
2a185e6d
...
...
@@ -85,7 +85,7 @@ export default props => {
const
[
showParmarModal
,
setShowParmarModal
]
=
useState
(
false
);
const
[
keepText
,
setKeepText
]
=
useState
([]);
const
[
keepValue
,
setKeepValue
]
=
useState
([]);
const
[
visibleAmap
,
setVisibleAmap
]
=
useState
();
const
[
visibleChecked
,
setVisibleChecked
]
=
useState
(
''
);
// 菜单开关
const
[
visibleChecked1
,
setVisibleChecked1
]
=
useState
(
''
);
// SaaS样式开关
const
[
visibleChecked2
,
setVisibleChecked2
]
=
useState
(
''
);
// Web4地图开关
...
...
@@ -169,6 +169,7 @@ export default props => {
setVisibleChecked4
(
config
.
messageVoice
);
setVisibleChecked7
(
config
.
useCoverMap
==
'true'
);
setHomePageConfig
(
config
.
roleHomePages
);
setVisibleAmap
(
config
.
IsGodFirst
)
setVisibleAnn
(
config
.
OpenAnnouncement
);
form
.
setFieldsValue
({
...
config
,
...
...
@@ -183,6 +184,7 @@ export default props => {
isCache
:
config
.
isCache
,
changeStation
:
config
.
changeStation
,
OpenAnnouncement
:
config
.
OpenAnnouncement
,
isGodFirst
:
config
.
IsGodFirst
,
AnnouncementContent
:
config
.
AnnouncementContent
,
headerPrimaryColor
:
config
.
headerPrimaryColor
?
config
.
headerPrimaryColor
...
...
@@ -217,6 +219,7 @@ export default props => {
setVisibleChecked4
(
true
);
setVisibleChecked5
(
true
);
setVisibleChecked7
(
true
);
setVisibleAmap
(
true
)
setHomePageConfig
([]);
form
.
setFieldsValue
({
shortcutIcon
:
'assets
\\
images
\\
icon
\\
熊猫-蓝色.png'
,
...
...
@@ -235,6 +238,7 @@ export default props => {
isCache
:
true
,
changeStation
:
false
,
OpenAnnouncement
:
false
,
isGodFirst
:
true
,
headerPrimaryColor
:
'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)'
,
});
setVisibleAnn
(
false
);
...
...
@@ -249,6 +253,7 @@ export default props => {
setVisibleChecked2
(
''
);
setVisibleChecked3
(
''
);
setVisibleChecked4
(
''
);
setVisibleAmap
(
''
)
setVisibleChecked5
(
''
);
setVisibleAnn
(
''
);
setHomePageConfig
([]);
...
...
@@ -411,6 +416,10 @@ export default props => {
setVisibleAnn
(
e
);
};
const
changeAmapShow
=
(
e
)
=>
{
setVisibleAmap
(
e
)
}
const
change5
=
e
=>
{
setVisibleChecked5
(
e
);
};
...
...
@@ -785,6 +794,14 @@ export default props => {
<
/Col
>
)}
<
/Row
>
<
Form
.
Item
label
=
"高德地图"
name
=
"isGodFirst"
>
<
Switch
checkedChildren
=
"是"
unCheckedChildren
=
"否"
checked
=
{
visibleAmap
}
onChange
=
{
changeAmapShow
}
/
>
<
/Form.Item
>
{
/* <Form.Item label="菜单样式" name="menuState">
<Switch
checkedChildren="展开"
...
...
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