fix:[FL-153][导入雷电分布数据改成导入地闪密度数据]
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -583,7 +583,7 @@ def import_lightning_distribution_from_file(
|
||||
inserted_count += len(rows_to_insert)
|
||||
|
||||
if inserted_count == 0:
|
||||
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail="未解析到可导入的有效雷电分布记录")
|
||||
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail="未解析到可导入的有效地闪密度记录")
|
||||
|
||||
db.commit()
|
||||
_publish_lightning_change(
|
||||
|
||||
@@ -275,7 +275,7 @@ DEFAULT_MENUS: list[dict[str, object]] = [
|
||||
},
|
||||
{
|
||||
"code": "admin.lightning_distribution",
|
||||
"name": "雷电分布统计",
|
||||
"name": "地闪密度统计",
|
||||
"path": "/admin/lightning-distribution",
|
||||
"icon": "Map",
|
||||
"parent_code": None,
|
||||
|
||||
@@ -290,7 +290,7 @@ export default function AdminLightningDistributionPage() {
|
||||
<Card>
|
||||
<Space direction="vertical" size={12}>
|
||||
<Typography.Text type="secondary">
|
||||
请先登录后再访问雷电分布统计页面。
|
||||
请先登录后再访问地闪密度统计页面。
|
||||
</Typography.Text>
|
||||
<Button>
|
||||
<Link href="/">返回首页</Link>
|
||||
@@ -320,7 +320,7 @@ export default function AdminLightningDistributionPage() {
|
||||
extra={
|
||||
canManage && (
|
||||
<Button type="primary" onClick={() => setImportModalOpen(true)}>
|
||||
导入雷电分布数据
|
||||
导入地闪密度数据
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
@@ -388,7 +388,7 @@ export default function AdminLightningDistributionPage() {
|
||||
</Card>
|
||||
|
||||
<Modal
|
||||
title="导入雷电分布数据"
|
||||
title="导入地闪密度数据"
|
||||
open={importModalOpen}
|
||||
onCancel={() => {
|
||||
setImportModalOpen(false);
|
||||
|
||||
Reference in New Issue
Block a user