Commit 2a185e6d authored by lihonglin's avatar lihonglin

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

parent 03a19602
Pipeline #89967 passed with stages
......@@ -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="展开"
......
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