Commit 8db0d39a authored by 涂伟's avatar 涂伟

fix: '运维初始化查看授权记录交互优化'

parent 48b2418e
Pipeline #97448 failed with stages
...@@ -1514,31 +1514,31 @@ const DatabaseInitialization = props => { ...@@ -1514,31 +1514,31 @@ const DatabaseInitialization = props => {
// color: 'rgb(137 67 67 / 85%)', // color: 'rgb(137 67 67 / 85%)',
}} }}
> >
<div style={{ display: 'inline-block', backgroundColor: 'aliceblue' }}> <Tooltip title={keepHistroy.length > 0 ? '查看数据库授权记录' : ''} >
{keepHistroy.length > 0 ? ( <div style={{ display: 'inline-block', backgroundColor: 'aliceblue' }} onClick={keepHistroy.length > 0 ? onHistory : ''} className={keepHistroy.length > 0 ? styles.cursor : ''}>
<Tooltip title="查看数据库授权记录"> {keepHistroy.length > 0 ? (
<EyeOutlined <EyeOutlined
style={{ color: 'rgb(24 144 255)', marginRight: '5px' }} style={{ color: 'rgb(24 144 255)', marginRight: '5px' }}
onClick={onHistory} // onClick={onHistory}
/> />
</Tooltip> ) : (
) : ( <></>
<></> )}
)} <BarcodeOutlined style={{ color: 'rgb(227 168 96)', marginRight: '5px' }} />
<BarcodeOutlined style={{ color: 'rgb(227 168 96)', marginRight: '5px' }} /> 授权码:
授权码: {keepNumber ? (
{keepNumber ? ( <>{keepNumber}</>
<>{keepNumber}</> ) : (
) : ( <span>
<span> --
-- {/* <EditOutlined
{/* <EditOutlined
style={{ color: 'rgb(24 144 255)', marginLeft: '20px', marginTop: '10px' }} style={{ color: 'rgb(24 144 255)', marginLeft: '20px', marginTop: '10px' }}
onClick={} onClick={}
/> */} /> */}
</span> </span>
)} )}
</div> </div>
</Tooltip>
<div style={{ display: 'inline-block', backgroundColor: 'aliceblue' }}> <div style={{ display: 'inline-block', backgroundColor: 'aliceblue' }}>
<CalendarOutlined style={{ color: '#8466cb', marginRight: '5px' }} /> <CalendarOutlined style={{ color: '#8466cb', marginRight: '5px' }} />
项目名:{keepMsg ? <>{keepMsg}</> : '--'} 项目名:{keepMsg ? <>{keepMsg}</> : '--'}
...@@ -1666,7 +1666,7 @@ const DatabaseInitialization = props => { ...@@ -1666,7 +1666,7 @@ const DatabaseInitialization = props => {
</div> </div>
</Card> </Card>
</div> </div>
</div> </div >
<Modal <Modal
title="初始化数据库" title="初始化数据库"
visible={initVisible} visible={initVisible}
...@@ -1903,7 +1903,7 @@ const DatabaseInitialization = props => { ...@@ -1903,7 +1903,7 @@ const DatabaseInitialization = props => {
)} )}
</div> </div>
</Modal> </Modal>
</PageContainer> </PageContainer >
</> </>
); );
}; };
......
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
font-size: 16px; font-size: 16px;
} }
.mgTop20 { .mgTop20 {
.cursor:hover {
cursor: pointer;
}
// height: calc(100vh - 170px); // height: calc(100vh - 170px);
} }
.tCenter { .tCenter {
......
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