Commit db87f192 authored by 皮倩雯's avatar 皮倩雯

fix: 'web搭建同步地图组件'

parent d32ac6a6
Pipeline #63430 waiting for manual action with stages
...@@ -342,24 +342,32 @@ const WebConfigPage = props => { ...@@ -342,24 +342,32 @@ const WebConfigPage = props => {
<div style={{ display: 'inline-block', float: 'right', marginTop: '-15px' }}> <div style={{ display: 'inline-block', float: 'right', marginTop: '-15px' }}>
<strong style={{ marginRight: '15px' }}> <strong style={{ marginRight: '15px' }}>
地图组件数量 地图组件数量
{console.log(tabPaneItem)}
{tabPaneItem.existMapComponent < 9 ? ( {tabPaneItem.existMapComponent < 9 ? (
<Tooltip title="点击一键修复" placement="topRight"> <Tooltip title="点击一键修复" placement="topRight">
<span style={{ color: 'red' }} onClick={() => SyncMap(tabPaneItem)}> <span style={{ color: 'red' }} onClick={() => SyncMap(tabPaneItem)}>
{tabPaneItem.existMapComponent} {tabPaneItem.existMapComponent}
</span> </span>
/<span style={{ color: '#1890ff' }}>{tabPaneItem.mapComponent}</span> /
<span style={{ color: '#1890ff' }} onClick={() => SyncMap(tabPaneItem)}>
{tabPaneItem.mapComponent}
</span>
</Tooltip> </Tooltip>
) : ( ) : (
<> <Tooltip title="点击同步地图组件" placement="topRight">
<span style={{ color: '#1890ff' }}>{tabPaneItem.existMapComponent}</span> <span style={{ color: '#1890ff' }} onClick={() => SyncMap(tabPaneItem)}>
{tabPaneItem.existMapComponent}
</span>
<span>/</span> <span>/</span>
{tabPaneItem.existMapComponent !== 9 ? ( {tabPaneItem.existMapComponent !== 9 ? (
<span style={{ color: '#1890ff' }}>{tabPaneItem.existMapComponent}</span> <span style={{ color: '#1890ff' }} onClick={() => SyncMap(tabPaneItem)}>
{tabPaneItem.existMapComponent}
</span>
) : ( ) : (
<span style={{ color: '#1890ff' }}>{tabPaneItem.mapComponent}</span> <span style={{ color: '#1890ff' }} onClick={() => SyncMap(tabPaneItem)}>
{tabPaneItem.mapComponent}
</span>
)} )}
</> </Tooltip>
)} )}
</strong> </strong>
{/* {tabPaneItem.existMapComponent < 9 && ( {/* {tabPaneItem.existMapComponent < 9 && (
...@@ -425,7 +433,7 @@ const WebConfigPage = props => { ...@@ -425,7 +433,7 @@ const WebConfigPage = props => {
type="editable-card" type="editable-card"
onEdit={onEdit} onEdit={onEdit}
onChange={handleTabChange} onChange={handleTabChange}
activeKey={curWeb.id} activeKey={curWeb && curWeb.id}
style={{ style={{
display: 'flex', display: 'flex',
alignContent: 'center', alignContent: 'center',
......
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