style: 收紧工具箱页面与侧栏留白
This commit is contained in:
+6
-6
@@ -5,25 +5,25 @@ from toolbox.validation import SOURCES
|
||||
|
||||
|
||||
def render():
|
||||
st.title("MarketGrid 工具箱")
|
||||
st.write("从空间数据到可交付成果,集中完成出图、查询与结果检查。")
|
||||
st.markdown("## MarketGrid 工具箱")
|
||||
st.caption("从空间数据到可交付成果,集中完成出图、查询与结果检查。")
|
||||
tasks = list_tasks()
|
||||
output = ROOT / "output"
|
||||
cols = st.columns(3)
|
||||
cols[0].metric("正在运行", sum(t["status"] in ACTIVE for t in tasks))
|
||||
cols[1].metric("任务记录", len(tasks))
|
||||
cols[2].metric("现有 ZIP 成果", len(list(output.glob("*.zip"))))
|
||||
st.subheader("选择工具")
|
||||
st.markdown("#### 选择工具")
|
||||
left, right = st.columns(2)
|
||||
with left, st.container(border=True):
|
||||
st.markdown("### 🗺️ 市场网格出图")
|
||||
st.markdown("##### 🗺️ 市场网格出图")
|
||||
st.write("六类数据源导入,完整运行专题渲染、空间分包和 QGIS 打包流程。")
|
||||
st.page_link(st.session_state["pages"]["market"], label="进入出图流程", icon="➡️")
|
||||
with right, st.container(border=True):
|
||||
st.markdown("### 🏢 楼宇数据查询")
|
||||
st.markdown("##### 🏢 楼宇数据查询")
|
||||
st.write("导入坐标清单,批量查询楼宇并实时生成 CSV。")
|
||||
st.page_link(st.session_state["pages"]["buildings"], label="进入楼宇查询", icon="➡️")
|
||||
st.subheader("默认数据源")
|
||||
st.markdown("#### 默认数据源")
|
||||
st.dataframe([{"数据源": label, "状态": "已就绪" if (ROOT / file).is_file() else "缺失",
|
||||
"文件": file, "大小 MB": round((ROOT / file).stat().st_size / 1024**2, 1) if (ROOT / file).is_file() else 0}
|
||||
for label, file, _ in SOURCES.values()], hide_index=True, width="stretch")
|
||||
|
||||
Reference in New Issue
Block a user