Commit 2a185e6d authored by lihonglin's avatar lihonglin

feat: 网站配置增加 GIS功能展示高德地图

parent 03a19602
Pipeline #89967 passed with stages
...@@ -85,7 +85,7 @@ export default props => { ...@@ -85,7 +85,7 @@ export default props => {
const [showParmarModal, setShowParmarModal] = useState(false); const [showParmarModal, setShowParmarModal] = useState(false);
const [keepText, setKeepText] = useState([]); const [keepText, setKeepText] = useState([]);
const [keepValue, setKeepValue] = useState([]); const [keepValue, setKeepValue] = useState([]);
const [visibleAmap, setVisibleAmap]= useState();
const [visibleChecked, setVisibleChecked] = useState(''); // 菜单开关 const [visibleChecked, setVisibleChecked] = useState(''); // 菜单开关
const [visibleChecked1, setVisibleChecked1] = useState(''); // SaaS样式开关 const [visibleChecked1, setVisibleChecked1] = useState(''); // SaaS样式开关
const [visibleChecked2, setVisibleChecked2] = useState(''); // Web4地图开关 const [visibleChecked2, setVisibleChecked2] = useState(''); // Web4地图开关
...@@ -169,6 +169,7 @@ export default props => { ...@@ -169,6 +169,7 @@ export default props => {
setVisibleChecked4(config.messageVoice); setVisibleChecked4(config.messageVoice);
setVisibleChecked7(config.useCoverMap == 'true'); setVisibleChecked7(config.useCoverMap == 'true');
setHomePageConfig(config.roleHomePages); setHomePageConfig(config.roleHomePages);
setVisibleAmap(config.IsGodFirst)
setVisibleAnn(config.OpenAnnouncement); setVisibleAnn(config.OpenAnnouncement);
form.setFieldsValue({ form.setFieldsValue({
...config, ...config,
...@@ -183,6 +184,7 @@ export default props => { ...@@ -183,6 +184,7 @@ export default props => {
isCache: config.isCache, isCache: config.isCache,
changeStation: config.changeStation, changeStation: config.changeStation,
OpenAnnouncement: config.OpenAnnouncement, OpenAnnouncement: config.OpenAnnouncement,
isGodFirst: config.IsGodFirst,
AnnouncementContent: config.AnnouncementContent, AnnouncementContent: config.AnnouncementContent,
headerPrimaryColor: config.headerPrimaryColor headerPrimaryColor: config.headerPrimaryColor
? config.headerPrimaryColor ? config.headerPrimaryColor
...@@ -217,6 +219,7 @@ export default props => { ...@@ -217,6 +219,7 @@ export default props => {
setVisibleChecked4(true); setVisibleChecked4(true);
setVisibleChecked5(true); setVisibleChecked5(true);
setVisibleChecked7(true); setVisibleChecked7(true);
setVisibleAmap(true)
setHomePageConfig([]); setHomePageConfig([]);
form.setFieldsValue({ form.setFieldsValue({
shortcutIcon: 'assets\\images\\icon\\熊猫-蓝色.png', shortcutIcon: 'assets\\images\\icon\\熊猫-蓝色.png',
...@@ -235,6 +238,7 @@ export default props => { ...@@ -235,6 +238,7 @@ export default props => {
isCache: true, isCache: true,
changeStation: false, changeStation: false,
OpenAnnouncement: false, OpenAnnouncement: false,
isGodFirst:true,
headerPrimaryColor: 'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)', headerPrimaryColor: 'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)',
}); });
setVisibleAnn(false); setVisibleAnn(false);
...@@ -249,6 +253,7 @@ export default props => { ...@@ -249,6 +253,7 @@ export default props => {
setVisibleChecked2(''); setVisibleChecked2('');
setVisibleChecked3(''); setVisibleChecked3('');
setVisibleChecked4(''); setVisibleChecked4('');
setVisibleAmap('')
setVisibleChecked5(''); setVisibleChecked5('');
setVisibleAnn(''); setVisibleAnn('');
setHomePageConfig([]); setHomePageConfig([]);
...@@ -411,6 +416,10 @@ export default props => { ...@@ -411,6 +416,10 @@ export default props => {
setVisibleAnn(e); setVisibleAnn(e);
}; };
const changeAmapShow =(e) => {
setVisibleAmap(e)
}
const change5 = e => { const change5 = e => {
setVisibleChecked5(e); setVisibleChecked5(e);
}; };
...@@ -785,6 +794,14 @@ export default props => { ...@@ -785,6 +794,14 @@ export default props => {
</Col> </Col>
)} )}
</Row> </Row>
<Form.Item label="高德地图" name="isGodFirst">
<Switch
checkedChildren="是"
unCheckedChildren="否"
checked={visibleAmap}
onChange={changeAmapShow}
/>
</Form.Item>
{/* <Form.Item label="菜单样式" name="menuState"> {/* <Form.Item label="菜单样式" name="menuState">
<Switch <Switch
checkedChildren="展开" checkedChildren="展开"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment