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