Commit 0f4a09e3 authored by 张烨's avatar 张烨

style: 优化站点管理样式

parent d7dbb073
...@@ -181,19 +181,9 @@ const SiteManage = () => { ...@@ -181,19 +181,9 @@ const SiteManage = () => {
console.log(err); console.log(err);
}); });
}; };
return (
<PageContainer> const renderListItem = items =>
<GridContent> items.map(t => (
<Row gutter={12}>
<Col lg={6} sm={6}>
<Card className={styles.cardBox}>
<Spin
tip="loading...."
spinning={spinLoading}
style={{ marginTop: '20px' }}
>
<List>
{treeData.map(t => (
<List.Item <List.Item
onClick={() => { onClick={() => {
setCurrentStation(t); setCurrentStation(t);
...@@ -206,8 +196,20 @@ const SiteManage = () => { ...@@ -206,8 +196,20 @@ const SiteManage = () => {
> >
{t.text} {t.text}
</List.Item> </List.Item>
))} ));
</List>
return (
<PageContainer>
<GridContent>
<Row gutter={12}>
<Col lg={6} sm={6}>
<Card className={styles.cardBox}>
<Spin
tip="loading...."
spinning={spinLoading}
style={{ marginTop: '20px' }}
>
<List>{renderListItem(treeData)}</List>
</Spin> </Spin>
<AddModal <AddModal
visible={modalVisible} visible={modalVisible}
......
.cardBox{ .cardBox{
min-height: calc(100vh - 200px); height: calc(100vh - 200px);
overflow: auto;
} }
.cardBoxR{ .cardBoxR{
min-height: calc(100vh - 292px); min-height: calc(100vh - 292px);
......
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