feat: 简化工具箱文案并精简成果下载页
This commit is contained in:
+4
-4
@@ -11,7 +11,7 @@ def task_panel(task_id=None, recent=False):
|
||||
elif recent:
|
||||
tasks = tasks[:1]
|
||||
if not tasks:
|
||||
st.info("暂无任务。启动工具后可在这里查看进度和成果。")
|
||||
st.info("暂无任务。")
|
||||
return
|
||||
for task in tasks:
|
||||
with st.container(border=True):
|
||||
@@ -22,12 +22,12 @@ def task_panel(task_id=None, recent=False):
|
||||
ratio = min(task.get("done", 0) / task["total"], 1.0)
|
||||
st.progress(ratio, text=f"{task.get('done', 0)} / {task['total']}")
|
||||
elif task.get("done"):
|
||||
st.write(f"已处理 {task['done']} 个坐标")
|
||||
st.write(f"已处理 {task['done']} 条")
|
||||
if task.get("counts"):
|
||||
st.write(task["counts"])
|
||||
if task["status"] in ACTIVE:
|
||||
if task["stop_requested"]:
|
||||
st.info("已请求停止,等待当前批次或正在进行的请求完成写入。")
|
||||
st.info("正在停止,请稍候。")
|
||||
elif st.button("停止任务", key=f"stop_{task['id']}"):
|
||||
stop_task(task["id"])
|
||||
st.rerun(scope="fragment")
|
||||
@@ -38,4 +38,4 @@ def task_panel(task_id=None, recent=False):
|
||||
|
||||
def show_started(task_id):
|
||||
st.session_state["last_task"] = task_id
|
||||
st.success("任务已启动。可以切换页面,进度和结果保存在任务中心。")
|
||||
st.success("任务已启动,可在任务中心查看进度。")
|
||||
|
||||
Reference in New Issue
Block a user