sync update from LAN repo (source master @ 6e3f02a2)
This commit is contained in:
1 parent
66a443e915
commit
6c25c89d93
431 files changed
+68511
-2240
No files matched your search
+1
@@ -0,0 +1 @@
|
||||
{"meta": {"title": "台湾飞行部队知识数据展示平台", "version": "原型版 3.2(离线来源内容版)", "updated": "2026-06-23", "notice": "基于公开资料构建;单位级人员、飞机可用数量及实时战备状态未公开时均不作推断。", "offline": true}, "units": [{"profile_id": "UFP-001", "organization_id": "ORG-AF-SONGSHAN", "name": "空军松山基地指挥部", "path": "entities/units/air_force/songshan_base_command.md", "type": "unit_profile", "priority": "P1", "topic_group": "unit_force_profiles", "service": "air_force", "organization_type": "base_command", "parent_id": "ORG-AF-HQ", "status": "CURRENT_CONFIRMED", "confidence": "A", "public_location": "台北松山地区(公开基地层级)", "summary": "松山基地指挥部是空军特种运输、行政航空和首都地区基地运行的公开组织节点,内部同时包含飞行、修护补给和基地勤务功能。", "mission_roles": ["特种/行政运输", "专机与公务航空保障", "基地运行与军民航协调"], "platforms": ["B-737-800", "Fokker 50", "Beech 1900等公开特种运输平台"], "force_structure": "基地指挥部级;公开内部要素包括特种运输队、修护补给队和基地勤务队。飞行单位规模和机组数量未公开。", "personnel_domains": ["特种运输飞行员与机组", "专机任务与服务人员", "机务与航电人员", "航管/基地勤务/消防人员"], "training_profile": "执行机型换装、专机程序、仪表飞行、复杂空域和应急训练;具体课目与资格数量未公开。", "support_profile": "修护补给队承担机务与补给,基地勤务队承担场站运行;涉及军民共用机场协调。", "quantity_reference": "官方沿革明确2000年B-737-800成军;其他平台在官网公开列示。当前各型机确切数量和可用率不公开。", "history": "由松山站、供应分队、机场勤务中队和基地大队等单位演变,1966年扩编为松山基地指挥部。", "source_ids": ["AF-SONGSHAN", "AF-SPECIAL-AIRCRAFT"], "relations": ["ORG-AF-SONGSHAN-SPECIAL-TRANSPORT", "ORG-AF-SONGSHAN-MAINT", "ORG-AF-SONGSHAN-BASE-SERVICE"], "force_level": "基地指挥部级", "readiness_statement": "公开资料可确认单位、平台或任务存在,但不公开实时战备等级、可飞数量和当日人员状态。", "notes": "", "registry_status": "CURRENT_CONFIRMED", "registry_confidence": "A", "last_verified": "2026-06-23", "unit_personnel_strength": "NOT_PUBLIC", "unit_aircraft_strength": "NOT_PUBLIC_OR_NOT_STABLE", "commander_field": "不写入静态档案;需查询单位官网最新公开信息", "do_not_infer": ["实时可飞数量或妥善率", "人员实际员额、值班名单或资格分布", "弹药库存和挂载数量", "飞行频率、值班节奏和临时部署", "基地内部设施、机堡位置和警卫布置"]}, {"profile_id": "UFP-002", "organization_id": "ORG-AF-SONGSHAN-SPECIAL-TRANSPORT", "name": "空军松山基地指挥部特种运输队", "path": "entities/units/air_force/songshan_special_transport_unit.md", "type": "unit_profile", "priority": "P2", "topic_group": "unit_force_profiles", "service": "air_force", "organization_type": "special_transport_unit", "parent_id": "ORG-AF-SONGSHAN", "status": "CURRENT_PROBABLE", "confidence": "B", "public_location": "台北松山地区(公开基地层级)", "summary": "特种运输队是松山基地指挥部内承担专机与行政运输的飞行要素,其档案重点是任务机组、平台构成和特殊服务程序,而不是推断高层行程。", "mission_roles": ["行政运输", "专机运输", "紧急或公务航空支援"], "platforms": ["B-737-800", "Fokker 50", "Beech 1900等"], "force_structure": "队级飞行单位;上级为松山基地指挥部。现行完整内部机组编制和飞机分配未公开。", "personnel_domains": ["固定翼飞行员", "任务机组与客舱服务", "任务规划", "机务与航电专业"], "training_profile": "机型换装、仪表飞行、机场程序、紧急程序和任务服务标准化。", "support_profile": "依托所属联队的修护补给、基地勤务、航管气象和武器保障;单位级确切班组与员额未公开。", "quantity_reference": "单位级飞机编配数、可飞数和飞行员员额未公开;仅确认机型/任务归属,不从联队总量反推。", "history": "其前身与松山基地历次专机/运输编组有关,现行正式名称依据公开组织资料为较高可信。", "source_ids": ["AF-SONGSHAN", "AF-SPECIAL-AIRCRAFT"], "relations": ["ORG-AF-SONGSHAN"], "force_level": "special_transport_unit", "readiness_statement": "公开资料可确认单位、平台或任务存在,但不公开实时战备等级、可飞数量和当日人员状态。", "notes": "", "registry_status": "CURRENT_PROBABLE", "registry_confidence": "B", "last_verified": "2026-06-23", "unit_personnel_strength": "NOT_PUBLIC", "unit_aircraft_strength": "NOT_PUBLIC_OR_NOT_STABLE",Line truncated
|
||||
+954
@@ -0,0 +1,954 @@
|
||||
{
|
||||
"说明": "字段显示目录:控制详情字段渲染 + 是否接受抽取更新(keys=数据字段键)。",
|
||||
"fields": [
|
||||
{
|
||||
"label": "档案编号",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(profile_id)",
|
||||
"keys": [
|
||||
"profile_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "组织编号",
|
||||
"pages": [
|
||||
"organizations",
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(organization_id)",
|
||||
"keys": [
|
||||
"organization_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "名称",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(name)",
|
||||
"keys": [
|
||||
"name"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "名称",
|
||||
"pages": [
|
||||
"装备体系",
|
||||
"organizations",
|
||||
"weapons"
|
||||
],
|
||||
"description": "数据字段(name_zh)",
|
||||
"keys": [
|
||||
"name_zh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "知识文件路径",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(path)",
|
||||
"keys": [
|
||||
"path"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "类型",
|
||||
"pages": [
|
||||
"safetyMetrics",
|
||||
"时间线与来源",
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(type)",
|
||||
"keys": [
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "优先级",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(priority)",
|
||||
"keys": [
|
||||
"priority"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "主题分组",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(topic_group)",
|
||||
"keys": [
|
||||
"topic_group"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "军种/系统",
|
||||
"pages": [
|
||||
"装备体系",
|
||||
"maintenance",
|
||||
"organizations",
|
||||
"safetyEvents",
|
||||
"训练与保障",
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(service)",
|
||||
"keys": [
|
||||
"service"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "组织类型",
|
||||
"pages": [
|
||||
"organizations",
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(organization_type)",
|
||||
"keys": [
|
||||
"organization_type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "上级组织编号",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(parent_id)",
|
||||
"keys": [
|
||||
"parent_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "状态",
|
||||
"pages": [
|
||||
"装备体系",
|
||||
"工业链与外部依赖",
|
||||
"maintenance",
|
||||
"organizationRelations",
|
||||
"organizations",
|
||||
"platformWeapon",
|
||||
"safetyControls",
|
||||
"safetyProcess",
|
||||
"supplierDependencies",
|
||||
"训练与保障",
|
||||
"单位与兵力",
|
||||
"weapons"
|
||||
],
|
||||
"description": "数据字段(status)",
|
||||
"keys": [
|
||||
"status"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "可信度",
|
||||
"pages": [
|
||||
"工业链与外部依赖",
|
||||
"maintenance",
|
||||
"organizationRelations",
|
||||
"organizations",
|
||||
"platformWeapon",
|
||||
"safetyEvents",
|
||||
"simulators",
|
||||
"sources",
|
||||
"supplierDependencies",
|
||||
"训练与保障",
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(confidence)",
|
||||
"keys": [
|
||||
"confidence"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "公开驻地",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(public_location)",
|
||||
"keys": [
|
||||
"public_location"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "摘要",
|
||||
"pages": [
|
||||
"safetyEvents",
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(summary)",
|
||||
"keys": [
|
||||
"summary"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "主要任务",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(mission_roles)",
|
||||
"keys": [
|
||||
"mission_roles"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "平台与系统",
|
||||
"pages": [
|
||||
"工业链与外部依赖",
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(platforms)",
|
||||
"keys": [
|
||||
"platforms"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "兵力结构",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(force_structure)",
|
||||
"keys": [
|
||||
"force_structure"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "人员专业",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(personnel_domains)",
|
||||
"keys": [
|
||||
"personnel_domains"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "训练与资格",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(training_profile)",
|
||||
"keys": [
|
||||
"training_profile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "维修保障",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(support_profile)",
|
||||
"keys": [
|
||||
"support_profile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "数量口径",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(quantity_reference)",
|
||||
"keys": [
|
||||
"quantity_reference"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "沿革",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(history)",
|
||||
"keys": [
|
||||
"history"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "来源编号",
|
||||
"pages": [
|
||||
"装备体系",
|
||||
"externalDependencies",
|
||||
"工业链与外部依赖",
|
||||
"maintenance",
|
||||
"organizationRelations",
|
||||
"organizations",
|
||||
"safetyEvents",
|
||||
"simulators",
|
||||
"supplierDependencies",
|
||||
"时间线与来源",
|
||||
"训练与保障",
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(source_ids)",
|
||||
"keys": [
|
||||
"source_ids"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "关联组织",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(relations)",
|
||||
"keys": [
|
||||
"relations"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "单位层级",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(force_level)",
|
||||
"keys": [
|
||||
"force_level"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "战备信息边界",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(readiness_statement)",
|
||||
"keys": [
|
||||
"readiness_statement"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "备注",
|
||||
"pages": [
|
||||
"organizationRelations",
|
||||
"organizations",
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(notes)",
|
||||
"keys": [
|
||||
"notes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "登记状态",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(registry_status)",
|
||||
"keys": [
|
||||
"registry_status"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "登记可信度",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(registry_confidence)",
|
||||
"keys": [
|
||||
"registry_confidence"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "最后核验",
|
||||
"pages": [
|
||||
"装备体系",
|
||||
"organizations",
|
||||
"单位与兵力",
|
||||
"weapons"
|
||||
],
|
||||
"description": "数据字段(last_verified)",
|
||||
"keys": [
|
||||
"last_verified"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "人员数量",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(unit_personnel_strength)",
|
||||
"keys": [
|
||||
"unit_personnel_strength"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "飞机数量",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(unit_aircraft_strength)",
|
||||
"keys": [
|
||||
"unit_aircraft_strength"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "主官字段",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(commander_field)",
|
||||
"keys": [
|
||||
"commander_field"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "禁止推断",
|
||||
"pages": [
|
||||
"单位与兵力"
|
||||
],
|
||||
"description": "数据字段(do_not_infer)",
|
||||
"keys": [
|
||||
"do_not_infer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "单位/机构",
|
||||
"pages": [
|
||||
"工业链与外部依赖",
|
||||
"simulators"
|
||||
],
|
||||
"description": "数据字段(organization)",
|
||||
"keys": [
|
||||
"organization"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "类别",
|
||||
"pages": [
|
||||
"装备体系",
|
||||
"safetyEvents",
|
||||
"simulators",
|
||||
"weapons"
|
||||
],
|
||||
"description": "数据字段(category)",
|
||||
"keys": [
|
||||
"category"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "公开证据",
|
||||
"pages": [
|
||||
"externalDependencies",
|
||||
"safetyControls",
|
||||
"safetyProcess",
|
||||
"simulators"
|
||||
],
|
||||
"description": "数据字段(evidence)",
|
||||
"keys": [
|
||||
"evidence"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "训练阶段",
|
||||
"pages": [
|
||||
"simulators"
|
||||
],
|
||||
"description": "数据字段(training_stage)",
|
||||
"keys": [
|
||||
"training_stage"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "教员要求",
|
||||
"pages": [
|
||||
"simulators"
|
||||
],
|
||||
"description": "数据字段(instructor_requirement)",
|
||||
"keys": [
|
||||
"instructor_requirement"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "构型状态",
|
||||
"pages": [
|
||||
"simulators"
|
||||
],
|
||||
"description": "数据字段(configuration_status)",
|
||||
"keys": [
|
||||
"configuration_status"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "交付/使用状态",
|
||||
"pages": [
|
||||
"simulators"
|
||||
],
|
||||
"description": "数据字段(delivery_status)",
|
||||
"keys": [
|
||||
"delivery_status"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "平台或任务",
|
||||
"pages": [
|
||||
"simulators"
|
||||
],
|
||||
"description": "数据字段(platform_or_role)",
|
||||
"keys": [
|
||||
"platform_or_role"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "平台族",
|
||||
"pages": [
|
||||
"maintenance",
|
||||
"supplierDependencies"
|
||||
],
|
||||
"description": "数据字段(platform_family)",
|
||||
"keys": [
|
||||
"platform_family"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "维修层级",
|
||||
"pages": [
|
||||
"externalDependencies",
|
||||
"maintenance"
|
||||
],
|
||||
"description": "数据字段(level)",
|
||||
"keys": [
|
||||
"level"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "任务类别",
|
||||
"pages": [
|
||||
"maintenance"
|
||||
],
|
||||
"description": "数据字段(task_family)",
|
||||
"keys": [
|
||||
"task_family"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "责任单位",
|
||||
"pages": [
|
||||
"maintenance",
|
||||
"训练与保障"
|
||||
],
|
||||
"description": "数据字段(responsible_entity)",
|
||||
"keys": [
|
||||
"responsible_entity"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "主要输出",
|
||||
"pages": [
|
||||
"maintenance"
|
||||
],
|
||||
"description": "数据字段(key_outputs)",
|
||||
"keys": [
|
||||
"key_outputs"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "质量关口",
|
||||
"pages": [
|
||||
"maintenance"
|
||||
],
|
||||
"description": "数据字段(quality_gate)",
|
||||
"keys": [
|
||||
"quality_gate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "技术依赖",
|
||||
"pages": [
|
||||
"maintenance"
|
||||
],
|
||||
"description": "数据字段(technical_dependency)",
|
||||
"keys": [
|
||||
"technical_dependency"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "节点类型",
|
||||
"pages": [
|
||||
"工业链与外部依赖"
|
||||
],
|
||||
"description": "数据字段(node_type)",
|
||||
"keys": [
|
||||
"node_type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "能力范围",
|
||||
"pages": [
|
||||
"工业链与外部依赖"
|
||||
],
|
||||
"description": "数据字段(capabilities)",
|
||||
"keys": [
|
||||
"capabilities"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "成熟度",
|
||||
"pages": [
|
||||
"工业链与外部依赖"
|
||||
],
|
||||
"description": "数据字段(maturity)",
|
||||
"keys": [
|
||||
"maturity"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "国外接口",
|
||||
"pages": [
|
||||
"工业链与外部依赖"
|
||||
],
|
||||
"description": "数据字段(foreign_interface)",
|
||||
"keys": [
|
||||
"foreign_interface"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "平台或系统",
|
||||
"pages": [
|
||||
"externalDependencies"
|
||||
],
|
||||
"description": "数据字段(platform_or_system)",
|
||||
"keys": [
|
||||
"platform_or_system"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "依赖维度",
|
||||
"pages": [
|
||||
"externalDependencies"
|
||||
],
|
||||
"description": "数据字段(dimension)",
|
||||
"keys": [
|
||||
"dimension"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "国内能力",
|
||||
"pages": [
|
||||
"externalDependencies"
|
||||
],
|
||||
"description": "数据字段(domestic_capability)",
|
||||
"keys": [
|
||||
"domestic_capability"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "外部依赖",
|
||||
"pages": [
|
||||
"externalDependencies"
|
||||
],
|
||||
"description": "数据字段(foreign_dependency)",
|
||||
"keys": [
|
||||
"foreign_dependency"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "缓解/自主化措施",
|
||||
"pages": [
|
||||
"externalDependencies"
|
||||
],
|
||||
"description": "数据字段(mitigation)",
|
||||
"keys": [
|
||||
"mitigation"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "待核问题",
|
||||
"pages": [
|
||||
"externalDependencies"
|
||||
],
|
||||
"description": "数据字段(unresolved)",
|
||||
"keys": [
|
||||
"unresolved"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "风险描述",
|
||||
"pages": [
|
||||
"safetyRisks"
|
||||
],
|
||||
"description": "数据字段(risk)",
|
||||
"keys": [
|
||||
"risk"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "表现或示例",
|
||||
"pages": [
|
||||
"safetyRisks"
|
||||
],
|
||||
"description": "数据字段(examples)",
|
||||
"keys": [
|
||||
"examples"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "控制措施",
|
||||
"pages": [
|
||||
"safetyRisks"
|
||||
],
|
||||
"description": "数据字段(controls)",
|
||||
"keys": [
|
||||
"controls"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "HFACS层级",
|
||||
"pages": [
|
||||
"safetyRisks"
|
||||
],
|
||||
"description": "数据字段(hfacs_level)",
|
||||
"keys": [
|
||||
"hfacs_level"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "治理阶段",
|
||||
"pages": [
|
||||
"safetyProcess"
|
||||
],
|
||||
"description": "数据字段(stage)",
|
||||
"keys": [
|
||||
"stage"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "责任主体",
|
||||
"pages": [
|
||||
"safetyProcess"
|
||||
],
|
||||
"description": "数据字段(owner)",
|
||||
"keys": [
|
||||
"owner"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "输入",
|
||||
"pages": [
|
||||
"safetyProcess"
|
||||
],
|
||||
"description": "数据字段(inputs)",
|
||||
"keys": [
|
||||
"inputs"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "输出",
|
||||
"pages": [
|
||||
"safetyProcess"
|
||||
],
|
||||
"description": "数据字段(outputs)",
|
||||
"keys": [
|
||||
"outputs"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "日期",
|
||||
"pages": [
|
||||
"safetyEvents",
|
||||
"时间线与来源"
|
||||
],
|
||||
"description": "数据字段(date)",
|
||||
"keys": [
|
||||
"date"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "平台",
|
||||
"pages": [
|
||||
"platformWeapon",
|
||||
"safetyEvents"
|
||||
],
|
||||
"description": "数据字段(platform)",
|
||||
"keys": [
|
||||
"platform"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "严重度",
|
||||
"pages": [
|
||||
"safetyEvents"
|
||||
],
|
||||
"description": "数据字段(severity)",
|
||||
"keys": [
|
||||
"severity"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "结果",
|
||||
"pages": [
|
||||
"safetyEvents"
|
||||
],
|
||||
"description": "数据字段(outcome)",
|
||||
"keys": [
|
||||
"outcome"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "停飞/限制",
|
||||
"pages": [
|
||||
"safetyEvents"
|
||||
],
|
||||
"description": "数据字段(grounding)",
|
||||
"keys": [
|
||||
"grounding"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "复飞状态",
|
||||
"pages": [
|
||||
"safetyEvents"
|
||||
],
|
||||
"description": "数据字段(return_to_flight)",
|
||||
"keys": [
|
||||
"return_to_flight"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "原因状态",
|
||||
"pages": [
|
||||
"safetyEvents"
|
||||
],
|
||||
"description": "数据字段(cause_status)",
|
||||
"keys": [
|
||||
"cause_status"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "标题",
|
||||
"pages": [
|
||||
"sources",
|
||||
"时间线与来源"
|
||||
],
|
||||
"description": "数据字段(title)",
|
||||
"keys": [
|
||||
"title"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "主要用途",
|
||||
"pages": [
|
||||
"sources"
|
||||
],
|
||||
"description": "数据字段(usage)",
|
||||
"keys": [
|
||||
"usage"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "网址",
|
||||
"pages": [
|
||||
"通用"
|
||||
],
|
||||
"description": "数据字段(url)",
|
||||
"keys": [
|
||||
"url"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "核验日期",
|
||||
"pages": [
|
||||
"sources"
|
||||
],
|
||||
"description": "数据字段(verified)",
|
||||
"keys": [
|
||||
"verified"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Markdown正文",
|
||||
"pages": [
|
||||
"单位详情"
|
||||
],
|
||||
"description": "详情字段(Markdown正文)",
|
||||
"keys": []
|
||||
},
|
||||
{
|
||||
"label": "下级单位数",
|
||||
"pages": [
|
||||
"单位详情"
|
||||
],
|
||||
"description": "详情字段(下级单位数)",
|
||||
"keys": []
|
||||
},
|
||||
{
|
||||
"label": "专题分类",
|
||||
"pages": [
|
||||
"单位详情"
|
||||
],
|
||||
"description": "详情字段(专题分类)",
|
||||
"keys": []
|
||||
},
|
||||
{
|
||||
"label": "公开上级",
|
||||
"pages": [
|
||||
"单位详情"
|
||||
],
|
||||
"description": "详情字段(公开上级)",
|
||||
"keys": []
|
||||
},
|
||||
{
|
||||
"label": "当前阶段",
|
||||
"pages": [
|
||||
"单位详情"
|
||||
],
|
||||
"description": "详情字段(当前阶段)",
|
||||
"keys": []
|
||||
},
|
||||
{
|
||||
"label": "所属体系",
|
||||
"pages": [
|
||||
"单位详情"
|
||||
],
|
||||
"description": "详情字段(所属体系)",
|
||||
"keys": []
|
||||
},
|
||||
{
|
||||
"label": "档案类型",
|
||||
"pages": [
|
||||
"单位详情"
|
||||
],
|
||||
"description": "详情字段(档案类型)",
|
||||
"keys": []
|
||||
},
|
||||
{
|
||||
"label": "正文规模",
|
||||
"pages": [
|
||||
"单位详情"
|
||||
],
|
||||
"description": "详情字段(正文规模)",
|
||||
"keys": []
|
||||
},
|
||||
{
|
||||
"label": "浅红节点",
|
||||
"pages": [
|
||||
"单位详情"
|
||||
],
|
||||
"description": "详情字段(浅红节点)",
|
||||
"keys": []
|
||||
},
|
||||
{
|
||||
"label": "白色节点",
|
||||
"pages": [
|
||||
"单位详情"
|
||||
],
|
||||
"description": "详情字段(白色节点)",
|
||||
"keys": []
|
||||
},
|
||||
{
|
||||
"label": "红色节点",
|
||||
"pages": [
|
||||
"单位详情"
|
||||
],
|
||||
"description": "详情字段(红色节点)",
|
||||
"keys": []
|
||||
},
|
||||
{
|
||||
"label": "结构化数据",
|
||||
"pages": [
|
||||
"单位详情"
|
||||
],
|
||||
"description": "详情字段(结构化数据)",
|
||||
"keys": []
|
||||
}
|
||||
]
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
[{"path": "README.md", "title": "台湾飞行部队综合知识库 v7(单位与兵力档案深化版)", "category": "系统说明", "type": "知识专题", "stage": "持续更新", "confidence": "", "when": "", "summary": "版本 :v6.0 reference style 更新时间 :2026 06 23 条目数 :52 基础版本 :v5飞行安全深化版", "sections": [{"id": "sec-0", "title": "档案元数据与说明", "html": "<p><strong>版本</strong>:v6.0-reference-style<br/>\n<strong>更新时间</strong>:2026-06-23<br/>\n<strong>条目数</strong>:52<br/>\n<strong>基础版本</strong>:v5飞行安全深化版</p>\n"}, {"id": "sec-1", "title": "一、重组方式", "html": "<p>本版按照两个参考文件的组织逻辑重新编排:</p>\n<ol>\n<li><strong>Markdown单主题档案</strong>:每个文件统一包含“类型、当前阶段、何时调用、一句话浓缩、核心知识正文、关联分析、常见陷阱、仍不确定部分、与其他文件关系、末尾浓缩”。</li>\n<li><strong>JSON建设清单</strong>:每个条目统一包含<code>id/path/name/type/priority/topic_group/topic/style_reference/must_cover/key_relations/notes</code>。</li>\n<li><strong>主题目录</strong>:不再依赖00—51的线性顺序,而按实体、能力、飞安、事件、框架和调用规则组织。</li>\n<li><strong>内容保留</strong>:v5全部正文保留于新档案的“核心知识正文”,原始章节另存于<code>legacy_v5/wiki/</code>。</li>\n<li><strong>数据保留</strong>:v5的CSV、JSONL、Schema和来源索引完整保留。</li>\n</ol>\n"}, {"id": "sec-2", "title": "二、主要入口", "html": "<ul>\n<li><code>catalog/taiwan_flight_forces_catalog_v6.json</code>:全库总索引</li>\n<li><code>catalog/P1_catalog.json</code>:核心总览、主干组织、主平台与任务</li>\n<li><code>catalog/P2_catalog.json</code>:装备、组织、训练、保障和工业专题</li>\n<li><code>catalog/P3_catalog.json</code>:审计、规则、本体和待核机制</li>\n<li><code>catalog/P4_catalog.json</code>:飞行安全、事故和风险治理</li>\n<li><code>catalog/v5_to_v6_path_mapping.csv</code>:旧路径到新路径映射</li>\n</ul>\n"}, {"id": "sec-3", "title": "三、主题目录", "html": "<ul>\n<li><code>foundations/</code>:知识库导读与总体画像</li>\n<li><code>entities/organizations/</code>:军种、指挥部、联队、航空旅和航空大队</li>\n<li><code>entities/equipment/</code>:航空器、武器、任务系统和无人装备</li>\n<li><code>capabilities/</code>:任务、训练、人员、维修、航材和工业链</li>\n<li><code>safety/</code>:飞安治理、事故事件和风险框架</li>\n<li><code>events/timelines/</code>:历史和事故时间线</li>\n<li><code>frameworks/assessment/</code>:完整性审计和综合评估</li>\n<li><code>playbooks/</code>:LLM调用、数据本体、更新和条目规则</li>\n<li><code>data/</code>、<code>schemas/</code>、<code>sources/</code>:结构化数据、模式和来源</li>\n<li><code>legacy_v5/</code>:v5原始章节及清单</li>\n</ul>\n"}, {"id": "sec-4", "title": "四、推荐调用流程", "html": "<pre><code class=\"language-text\">总JSON索引\n→ 按topic_group/priority筛选\n→ 打开目标Markdown\n→ 阅读一句话浓缩与当前阶段\n→ 检索核心知识正文\n→ 同步读取key_relations\n→ 检查仍不确定部分与常见陷阱\n→ 回到sources和data验证\n</code></pre>\n"}, {"id": "sec-5", "title": "五、完整性边界", "html": "<p>本版是组织方式重构,不新增未公开事实。原知识库中的公开资料边界、安全限制、状态标签和禁止推断规则继续有效。</p>\n"}, {"id": "sec-6", "title": "v7单位与兵力档案新增", "html": "<p>本版新增<code>entities/units/</code>和<code>catalog/unit_force_profiles_catalog_v7.json</code>,形成<strong>41个逐单位档案</strong>。</p>\n<p>新增结构化数据:</p>\n<ul>\n<li><code>data/unit_force_profiles_v7.jsonl</code></li>\n<li><code>data/unit_force_matrix_v7.csv</code></li>\n<li><code>data/unit_force_relations_v7.csv</code></li>\n<li><code>data/unit_profile_completeness_audit_v6_to_v7.csv</code></li>\n<li><code>schemas/unit_force_profile_v7.schema.json</code></li>\n</ul>\n<p>兵力数量规则:</p>\n<ol>\n<li>官方历史接收数只作为历史参考;</li>\n<li>全军采购或项目总量不等于单位编配;</li>\n<li>单位实际分配、可飞数和人员员额未公开时标记<code>NOT_PUBLIC</code>;</li>\n<li>不使用媒体估算补齐实时兵力。</li>\n</ol>\n"}], "text": "版本 :v6.0-reference-style 更新时间 :2026-06-23 条目数 :52 基础版本 :v5飞行安全深化版 本版按照两个参考文件的组织逻辑重新编排: Markdown单主题档案 :每个文件统一包含“类型、当前阶段、何时调用、一句话浓缩、核心知识正文、关联分析、常见陷阱、仍不确定部分Line truncated
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"系统": {
|
||||
"名称": "台湾飞行部队知识数据展示平台",
|
||||
"版本": "原型版 3.2(离线来源内容版)",
|
||||
"更新时间": "2026-06-23",
|
||||
"说明": "基于公开资料构建;单位级人员、飞机可用数量及实时战备状态未公开时均不作推断。"
|
||||
},
|
||||
"页面": [
|
||||
{
|
||||
"编号": "overview",
|
||||
"名称": "总览"
|
||||
},
|
||||
{
|
||||
"编号": "organization",
|
||||
"名称": "组织机构"
|
||||
},
|
||||
{
|
||||
"编号": "units",
|
||||
"名称": "单位与兵力"
|
||||
},
|
||||
{
|
||||
"编号": "equipment",
|
||||
"名称": "装备体系"
|
||||
},
|
||||
{
|
||||
"编号": "training",
|
||||
"名称": "训练与保障"
|
||||
},
|
||||
{
|
||||
"编号": "industry",
|
||||
"名称": "工业链与外部依赖"
|
||||
},
|
||||
{
|
||||
"编号": "safety",
|
||||
"名称": "飞安与风险治理"
|
||||
},
|
||||
{
|
||||
"编号": "timeline",
|
||||
"名称": "时间线与来源"
|
||||
},
|
||||
{
|
||||
"编号": "knowledge",
|
||||
"名称": "知识专题库"
|
||||
}
|
||||
],
|
||||
"交互规则": {
|
||||
"默认展示": "overview"
|
||||
}
|
||||
}
|
||||
+226
@@ -0,0 +1,226 @@
|
||||
/* no.2 页面运行时(结构化模板)。
|
||||
* 由 template_fill.compose_structured 内联进骨架的运行时注入点。
|
||||
* 数据从骨架 JSON 元素读取:DATA / KNOWLEDGE / SOURCE_LOCAL / MANIFEST。 */
|
||||
const DATA=JSON.parse(document.getElementById("structured-data").textContent);
|
||||
const KNOWLEDGE=JSON.parse(document.getElementById("structured-knowledge").textContent);
|
||||
const SOURCE_LOCAL=JSON.parse(document.getElementById("structured-source-local").textContent);
|
||||
const MANIFEST=JSON.parse(document.getElementById("structured-manifest").textContent);
|
||||
const FIELDS=JSON.parse((document.getElementById("structured-fields")||{textContent:"[]"}).textContent);
|
||||
(()=>{
|
||||
'use strict';
|
||||
const $=s=>document.querySelector(s), $$=s=>[...document.querySelectorAll(s)];
|
||||
const esc=v=>String(v??'').replace(/[&<>"']/g,m=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[m]));
|
||||
const arr=v=>Array.isArray(v)?v:(v?String(v).split(/;|;|、/).map(x=>x.trim()).filter(Boolean):[]);
|
||||
const uniq=a=>[...new Set(a.filter(Boolean))];
|
||||
const clip=(v,n=110)=>String(v||'').length>n?String(v).slice(0,n)+'…':String(v||'');
|
||||
const labels={service:{air_force:'空军',army:'陆军',navy:'海军',civil:'民政航空',other:'其他'},status:{CURRENT_CONFIRMED:'现行确认',CURRENT_PROBABLE:'现行较高可信',CURRENT_CONFIRMED_OR_TRANSITIONING:'现行/转型中',FIELD_CONFIRMED:'现役确认',FUNCTION_CONFIRMED:'功能确认',FUNCTION_INFERRED:'功能推定',PROCUREMENT_TRANSITIONING:'采购转型中',PROCUREMENT_CONFIRMED:'采购确认',PROCUREMENT_PACKAGE_CONFIRMED:'采购包确认',CURRENT_ROLE_CONFIRMED:'岗位确认',CURRENT_USE_CONFIRMED:'使用确认',TRAINING_FUNCTION_CONFIRMED:'训练功能确认',TRAINING_PIPELINE_INFERRED:'训练链推定',ORGANIZATION_UNRESOLVED:'组织待核',CURRENT_CONFIRMED_FUNCTION:'现行功能确认',HISTORICAL_BASELINE:'历史基线',NOT_PUBLIC:'未公开',NOT_PUBLIC_OR_NOT_STABLE:'未公开或非稳定口径',OPEN_SOURCE_LIMITED:'公开资料有限',PARTIALLY_COMPLETE:'部分完整',COMPLETED:'已完成',ANALYTICAL_ASSESSMENT:'分析评估',HIGH_EXTERNAL_DEPENDENCY:'外部依赖较高',OEM_AUTHORIZED_FMS_CONTROLLED:'原厂授权/军售管制',FMS_CONTROLLED:'军售管制',DOMESTIC_INTEGRATOR:'国内系统整合',DOMESTIC_DESIGN_AND_INTEGRATION:'国内设计与整合',JOINT_DEVELOPMENT_EXTERNAL_COMPONENTS:'合作研制/含外部部件',JOINT_OR_FOREIGN_CORE_DEPENDENCY:'合作或外部核心依赖',MIXED_UNRESOLVED:'混合/待核'},category:{FA:'飞行事故',SI:'严重征候',NI:'近失事件',GS:'地面安全',AN:'航管与导航',MQ:'维修质量',US:'无人航空安全',HR:'危险源报告',SAR:'搜救事件'}};
|
||||
const FIELD_LABELS={profile_id:'档案编号',organization_id:'组织编号',name:'名称',name_zh:'名称',path:'知识文件路径',type:'类型',priority:'优先级',topic_group:'主题分组',service:'军种/系统',organization_type:'组织类型',parent_id:'上级组织编号',status:'状态',confidence:'可信度',public_location:'公开驻地',summary:'摘要',mission_roles:'主要任务',platforms:'平台与系统',force_structure:'兵力结构',personnel_domains:'人员专业',training_profile:'训练与资格',support_profile:'维修保障',quantity_reference:'数量口径',history:'沿革',source_ids:'来源编号',relations:'关联组织',force_level:'单位层级',readiness_statement:'战备信息边界',notes:'备注',registry_status:'登记状态',registry_confidence:'登记可信度',last_verified:'最后核验',unit_personnel_strength:'人员数量',unit_aircraft_strength:'飞机数量',commander_field:'主官字段',do_not_infer:'禁止推断',organization:'单位/机构',category:'类别',evidence:'公开证据',training_stage:'训练阶段',instructor_requirement:'教员要求',configuration_status:'构型状态',delivery_status:'交付/使用状态',platform_or_role:'平台或任务',platform_family:'平台族',level:'维修层级',task_family:'任务类别',responsible_entity:'责任单位',key_outputs:'主要输出',quality_gate:'质量关口',technical_dependency:'技术依赖',node_type:'节点类型',capabilities:'能力范围',maturity:'成熟度',foreign_interface:'国外接口',platform_or_system:'平台或系统',dimension:'依赖维度',domestic_capability:'国内能力',foreign_dependency:'外部依赖',mitigation:'缓解/自主化措施',unresolved:'待核问题',risk:'风险描述',examples:'表现或示例',controls:'控制措施',hfacs_level:'HFACS层级',stage:'治理阶段',owner:'责任主体',inputs:'输入',outputs:'输出',date:'日期',platform:'平台',severity:'严重度',outcome:'结果',grounding:'停飞/限制',return_to_flight:'复飞状态',cause_status:'原因状态',title:'标题',usage:'主要用途',url:'网址',verified:'核验日期'};
|
||||
const state={tab:'overview',unitView:'cards',unitPage:1,unitSize:12,unitFilters:{q:'',service:'全部',level:'全部',location:'全部',status:'全部'},equipCat:'全部',orgService:'air_force',orgZoom:1,sourceQ:'',knowledgeCategory:'全部',knowledgeQ:'',knowledgePage:1,knowledgeSize:15};
|
||||
const sourceMap=Object.fromEntries(DATA.sources.map(x=>[x.source_id,x]));const sourceLocalMap=SOURCE_LOCAL||{};
|
||||
const orgMap=Object.fromEntries(DATA.organizations.map(x=>[x.organization_id,x]));
|
||||
const unitMap=Object.fromEntries(DATA.units.map(x=>[x.organization_id,x]));
|
||||
const knowledgeMap=Object.fromEntries(KNOWLEDGE.map(x=>[x.path,x]));
|
||||
const status=v=>labels.status[v]||v||'待核'; const service=v=>labels.service[v]||v||'其他';
|
||||
const badge=(v,kind='status')=>{const t=kind==='confidence'?`可信度 ${v||'待核'}`:status(v);let c=/确认|完成|现役/.test(t)?'green':(/待核|未公开|推定|有限/.test(t)?'amber':'red');return `<span class="badge ${c}">${esc(t)}</span>`};
|
||||
const chips=(xs,limit=8)=>arr(xs).slice(0,limit).map(x=>`<span class="chip red">${esc(x)}</span>`).join('');
|
||||
const F=label=>!(((MANIFEST||{})["字段显示"]||{})[label]===false);
|
||||
const kv=(k,v)=>F(k)?`<div class="kv"><span class="k">${esc(k)}</span><span class="v">${v}</span></div>`:'';
|
||||
const sourcePrefixes=new Set(Object.keys(sourceMap).map(id=>String(id).split('-')[0]));
|
||||
const sourceButton=id=>sourceMap[id]?`<button type="button" class="source-ref-btn" data-action="open-source" data-id="${esc(id)}" title="查看来源详情">${esc(id)}</button>`:`<button type="button" class="source-ref-btn missing-source" data-action="missing-source" data-id="${esc(id)}" title="来源索引中暂未匹配">${esc(id)} · 待补来源</button>`;
|
||||
const unitRefInfo=item=>{if(item===null||item===undefined)return null;let id='',name='',meta='';if(typeof item==='object'){id=item.organization_id||item.org_id||item.id||'';name=item.name||item.name_zh||item.organization_name||'';meta=item.relationship||item.relation||item.status||''}else{const raw=String(item).trim();id=(unitMap[raw]||orgMap[raw])?raw:'';name=unitMap[raw]?.name||orgMap[raw]?.name_zh||raw}if(id){name=name||unitMap[id]?.name||orgMap[id]?.name_zh||id;meta=meta||unitMap[id]?.force_level||orgMap[id]?.organization_type||'关联单位'}return{name:name||'未命名单位',id,meta}};
|
||||
const renderUnitRefs=value=>{const items=arr(value).map(unitRefInfo).filter(Boolean);if(!items.length)return '待核';return `<div class="unit-ref-grid">${items.map(x=>{const action=x.id?(unitMap[x.id]?'open-unit':'open-org'):'';return action?`<button type="button" class="unit-ref-card" data-action="${action}" data-id="${esc(x.id)}"><strong>${esc(x.name)}</strong><small>${esc(x.meta||x.id)}</small></button>`:`<div class="unit-ref-card static"><strong>${esc(x.name)}</strong><small>${esc(x.meta||'公开关联单位')}</small></div>`}).join('')}</div>`};
|
||||
const objectLabel=o=>o?.name||o?.name_zh||o?.title||o?.organization||o?.platform_or_system||o?.platform_or_role||o?.organization_id||o?.id||'结构化对象';
|
||||
const objectSummary=o=>Object.entries(o||{}).filter(([k,v])=>!['name','name_zh','title','organization','platform_or_system','platform_or_role'].includes(k)&&v!==null&&v!==''&&typeof v!=='object').slice(0,3).map(([k,v])=>`${FIELD_LABELS[k]||k}:${String(v)}`).join(';');
|
||||
const humanValue=(k,v)=>{if(v===null||v===undefined||v==='')return '未提供/待核';if(k==='source_ids')return arr(v).map(id=>sourceButton(String(id))).join(' ');if(['related_units','units_public','relations'].includes(k))return renderUnitRefs(v);if(Array.isArray(v)){if(!v.length)return '无';if(v.some(x=>x&&typeof x==='object'))return `<div class="object-value-list">${v.map(x=>typeof x==='object'?`<div class="object-value-item"><strong>${esc(objectLabel(x))}</strong><span>${esc(objectSummary(x)||'结构化关联对象')}</span></div>`:`<span class="chip red">${esc(x)}</span>`).join('')}</div>`;return chips(v,30)}if(typeof v==='object')return `<div class="object-value-list">${Object.entries(v).map(([a,b])=>`<div class="object-value-item"><strong>${esc(FIELD_LABELS[a]||a)}</strong><span>${esc(typeof b==='object'?JSON.stringify(b):String(b))}</span></div>`).join('')}</div>`;if(k==='service')return esc(service(v));if(/status/.test(k))return badge(v);if(k==='confidence')return badge(v,'confidence');return esc(String(v));};
|
||||
const looksLikeSourceId=id=>/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/.test(id)&&sourcePrefixes.has(id.split('-')[0]);
|
||||
function enrichKnowledgeHtml(raw){const box=document.createElement('div');box.innerHTML=raw||'';
|
||||
box.querySelectorAll('[data-source-id]').forEach(n=>{const id=n.getAttribute('data-source-id');n.outerHTML=sourceButton(id)});
|
||||
box.querySelectorAll('[data-knowledge-path]').forEach(n=>{const p=n.getAttribute('data-knowledge-path'),label=n.textContent.trim()||knowledgeMap[p]?.title||p;n.outerHTML=knowledgeMap[p]?`<button type="button" class="org-ref-btn" data-action="open-knowledge" data-path="${esc(p)}">${esc(label)}</button>`:`<span class="offline-link-disabled">${esc(label)}</span>`});
|
||||
box.querySelectorAll('a').forEach(a=>{const label=a.textContent.trim()||'外部资料';a.outerHTML=`<span class="offline-link-disabled" title="离线部署未收录该外部页面内容">${esc(label)}</span>`});
|
||||
box.querySelectorAll('code').forEach(code=>{const id=code.textContent.trim();if(sourceMap[id]||looksLikeSourceId(id)){code.outerHTML=sourceButton(id)}else if(unitMap[id]){code.outerHTML=`<button type="button" class="org-ref-btn" data-action="open-unit" data-id="${esc(id)}">${esc(unitMap[id].name||id)}</button>`}else if(orgMap[id]){code.outerHTML=`<button type="button" class="org-ref-btn" data-action="open-org" data-id="${esc(id)}">${esc(orgMap[id].name_zh||id)}</button>`}});
|
||||
const walker=document.createTreeWalker(box,NodeFilter.SHOW_TEXT);const nodes=[];while(walker.nextNode())nodes.push(walker.currentNode);nodes.forEach(node=>{if(node.parentElement?.closest('button,script,style,code'))return;const text=node.nodeValue||'';const re=/\[([A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+)\]/g;if(!re.test(text))return;re.lastIndex=0;const frag=document.createDocumentFragment();let last=0,m;while((m=re.exec(text))){frag.append(document.createTextNode(text.slice(last,m.index)));const id=m[1];if(sourceMap[id]||looksLikeSourceId(id)){const wrap=document.createElement('span');wrap.innerHTML=sourceButton(id);frag.append(wrap.firstElementChild)}else{frag.append(document.createTextNode(m[0]))}last=re.lastIndex}frag.append(document.createTextNode(text.slice(last)));node.replaceWith(frag)});return box.innerHTML}
|
||||
function pageVisible(key){var p=(MANIFEST['页面']||[]).find(function(x){return x['编号']===key});return !(p&&p['隐藏']===true)}
|
||||
function applyPageVisibility(){
|
||||
(MANIFEST['页面']||[]).forEach(function(p){
|
||||
if(p&&p['隐藏']===true&&p['编号']){
|
||||
var b=document.querySelector('.tab[data-tab="'+p['编号']+'"]');if(b)b.style.display='none';
|
||||
var s=document.getElementById('page-'+p['编号']);if(s)s.style.display='none';
|
||||
}
|
||||
});
|
||||
}
|
||||
function setTab(tab){if(!pageVisible(tab))return;state.tab=tab;$$('.tab').forEach(x=>x.classList.toggle('active',x.dataset.tab===tab));$$('.page').forEach(x=>x.classList.toggle('active',x.id===`page-${tab}`));window.scrollTo(0,0)}
|
||||
function openModal(html){$('#modalBody').innerHTML=html;$('#modal').classList.remove('hidden');document.body.style.overflow='hidden'} function closeModal(){$('#modal').classList.add('hidden');document.body.style.overflow=''}
|
||||
function openDrawer(title,html){$('#drawerTitle').textContent=title;$('#drawerBody').innerHTML=html;$('#drawer').classList.remove('hidden');document.body.style.overflow='hidden'} function closeDrawer(){$('#drawer').classList.add('hidden');document.body.style.overflow=''}
|
||||
function closeDetail(){$('#detail').classList.add('hidden');$('#detail').innerHTML='';document.body.style.overflow=''} function closeQuery(){$('#queryPanel').classList.add('hidden');document.body.style.overflow=''}
|
||||
function relatedDocs(paths){const ds=uniq(paths).map(p=>knowledgeMap[p]).filter(Boolean);return ds.length?`<div class="related-docs">${ds.map(d=>`<div class="related-doc" data-action="open-knowledge" data-path="${esc(d.path)}"><strong>${esc(d.title)}</strong><p>${esc(clip(d.summary,100))}</p></div>`).join('')}</div>`:'<p class="rich">暂无匹配的知识正文。</p>'}
|
||||
function technicalFields(x){return `<details class="technical-details"><summary>查看全部结构化字段(中文字段名)</summary><table class="human-table"><tbody>${Object.entries(x).map(([k,v])=>`<tr><th>${esc(FIELD_LABELS[k]||k)}</th><td>${humanValue(k,v)}</td></tr>`).join('')}</tbody></table></details>`}
|
||||
function infoGroup(title,fields,x){return `<section class="record-group"><h3>${esc(title)}</h3>${fields.filter(k=>k in x&&F(FIELD_LABELS[k]||k)).map(k=>`<div class="record-field"><span class="label">${esc(FIELD_LABELS[k]||k)}</span><span class="value">${humanValue(k,x[k])}</span></div>`).join('')}</section>`}
|
||||
const RELATED={simulator:['capabilities/training/simulators_training_devices_and_digital_training.md','capabilities/training/flight_training_pipeline_and_qualification_generation.md'],maintenance:['capabilities/maintenance/maintenance_levels_airworthiness_quality_and_configuration.md','capabilities/logistics/aviation_materials_suppliers_and_lifecycle_supply_chain.md'],industry:['capabilities/industry/domestic_aviation_industry_and_defense_ecosystem.md','capabilities/industry/external_technology_dependencies_and_autonomy_boundaries.md'],dependency:['capabilities/industry/external_technology_dependencies_and_autonomy_boundaries.md'],risk:['safety/frameworks/human_factors_crm_hfacs_fatigue_and_safety_culture.md','safety/frameworks/environment_atc_base_ground_and_uas_safety.md'],process:['safety/governance/investigation_evidence_grounding_inspection_and_return_to_flight.md','safety/governance/aviation_safety_governance_organizations_and_institutions.md'],training:['capabilities/training/flight_training_pipeline_and_qualification_generation.md'],safety:['safety/events/public_major_aviation_safety_events_timeline.md','safety/governance/investigation_evidence_grounding_inspection_and_return_to_flight.md']};
|
||||
function recordTitle(type,x){return x.name||x.name_zh||x.title||x.organization||x.platform_or_system||x.platform_or_role||x.platform_family||x.domain||x.stage||x.summary||'专题详情'}
|
||||
function openRecord(type,x){let groups=[];if(type==='simulator')groups=[['基本信息',['platform_or_role','category','organization','delivery_status','confidence']],['训练应用',['training_stage','evidence','instructor_requirement']],['构型与保障',['configuration_status','source_ids']]];else if(type==='maintenance')groups=[['维修对象',['platform_family','level','task_family','service','status']],['责任与输出',['responsible_entity','key_outputs','quality_gate']],['技术支撑',['technical_dependency','confidence','source_ids']]];else if(type==='industry')groups=[['产业节点',['organization','node_type','maturity','status','confidence']],['能力范围',['capabilities','platforms']],['外部接口',['foreign_interface','source_ids']]];else if(type==='dependency')groups=[['平台与维度',['platform_or_system','dimension','level']],['国内能力',['domestic_capability','mitigation']],['外部依赖与待核',['foreign_dependency','evidence','unresolved','source_ids']]];else if(type==='risk')groups=[['风险识别',['domain','risk','hfacs_level']],['表现与控制',['examples','controls']]];else if(type==='process')groups=[['治理阶段',['stage','owner','status']],['输入与输出',['inputs','outputs']],['证据依据',['evidence']]];else if(type==='training')groups=[['训练阶段',['stage_name','career_track','stage_order','service','status']],['责任与输入',['responsible_entity','input','academic']],['模拟与实飞',['simulator','flight','output']],['证据',['confidence','source_ids']]];else if(type==='safety')groups=[['事件概览',['date','service','platform','category','severity','summary','outcome']],['处置与恢复',['grounding','return_to_flight']],['调查状态',['cause_status','confidence','source_ids']]];else groups=[['详细字段',Object.keys(x)]];
|
||||
const paths=RELATED[type]||[];openModal(`<div class="record-hero"><h2>${esc(recordTitle(type,x))}</h2><p>以下内容已按业务语义重新分组,原始JSON不再作为默认展示。</p></div><div class="record-grid">${groups.map(g=>infoGroup(g[0],g[1],x)).join('')}</div><section class="detail-section"><h3>关联知识正文</h3>${relatedDocs(paths)}</section>${technicalFields(x)}`)}
|
||||
function renderKnowledgeDetail(doc,unit){if(!doc)return;const heroExtra=unit?`<div class="detail-summary">${kv('单位层级',esc(unit.force_level))}${kv('公开驻地',esc(unit.public_location))}${kv('状态',badge(unit.registry_status||unit.status))}${kv('可信度',badge(unit.registry_confidence||unit.confidence,'confidence'))}</div>`:`<div class="detail-summary">${kv('专题分类',esc(doc.category))}${kv('档案类型',esc(doc.type))}${kv('当前阶段',esc(doc.stage))}${kv('正文规模',`${doc.word_count} 字符`)}</div>`;$('#detail').innerHTML=`<div class="detail-top"><div><strong>${unit?'单位与兵力档案':'知识专题正文'}</strong><span style="opacity:.72;margin-left:12px">Markdown全文呈现</span></div><button class="btn white" data-action="close-detail">返回</button></div><div class="detail-body"><section class="detail-hero"><div><h2>${esc(doc.title)}</h2><p>${esc(doc.summary||doc.when||'知识库专题正文')}</p><div><span class="badge red">${esc(doc.category)}</span><span class="badge red">${esc(doc.type)}</span>${doc.confidence?badge(doc.confidence,'confidence'):''}</div></div>${heroExtra}</section><div class="reader-layout mt"><aside class="reader-toc"><h4>本页目录</h4>${doc.sections.map((s,i)=>`<button class="${i===0?'active':''}" data-action="reader-scroll" data-target="${s.id}">${esc(s.title)}</button>`).join('')}</aside><article class="reader-main">${doc.sections.map(s=>`<section id="${s.id}" class="md-section"><h2>${esc(s.title)}</h2><div class="md-body">${enrichKnowledgeHtml(s.html)}</div></section>`).join('')}</article></div></div>`;$('#detail').classList.remove('hidden');document.body.style.overflow='hidden'}
|
||||
function openKnowledge(path){renderKnowledgeDetail(knowledgeMap[path])} function openUnit(id){const u=unitMap[id];if(!u)return;const d=knowledgeMap[u.path];if(d)renderKnowledgeDetail(d,u);else openRecord('unit',u)}
|
||||
function unitCard(u){return `<article class="unit-card" data-action="open-unit" data-id="${esc(u.organization_id)}"><div class="top"><div><h4>${esc(u.name)}</h4><div class="sub">${esc(service(u.service))} · ${esc(u.force_level||u.organization_type)}</div></div>${badge(u.registry_status||u.status)}</div><div class="mt">${chips(u.platforms,4)}</div><p>${esc(clip(u.summary,145))}</p><div class="foot"><span>${esc(u.public_location||'驻地待核')}</span><button class="btn light sm">阅读完整档案</button></div></article>`}
|
||||
function renderOverview(){const stats=[['单位档案',DATA.units.length,'41篇单位Markdown'],['组织实体',DATA.organizations.length,'组织与支援关系'],['装备平台',DATA.equipment.length,'平台与状态'],['知识专题',KNOWLEDGE.length,'非重复Markdown全文'],['飞安事件',DATA.safetyEvents.length,'公开事件基线'],['官方来源',DATA.sources.length,'一手资料索引']];const entry=[['组织机构','organization','组织架构图','按军种展开联队、旅、大队和队级飞行单位'],['单位兵力','units','完整单位档案','直接阅读对应Markdown全部章节'],['装备体系','equipment','装备专题','结构化装备信息关联知识正文'],['训练保障','training','能力生成','模拟器和维修弹框改为业务详情页'],['工业依赖','industry','产业专题','国内能力、供应商和外部依赖'],['飞安治理','safety','风险闭环','事故、人因、调查与复飞正文'],['知识专题','knowledge','Markdown全文','按分类浏览全部96篇非重复知识文件']];$('#page-overview').innerHTML=`<div class="page-head"><div><h2>全库态势总览</h2><p>结构化JSON用于检索、筛选和关联;Markdown正文作为详情页面的主要内容源,最大限度保留知识深度。</p></div><div class="page-actions"><button class="btn line" data-action="open-query">交互查询</button><button class="btn primary" data-action="goto-tab" data-tab="knowledge">进入知识专题库</button></div></div><div class="stats">${stats.map(s=>`<div class="stat"><div class="label">${s[0]}</div><div class="num">${s[1]}</div><div class="hint">${s[2]}</div></div>`).join('')}</div><div class="section-title"><h3>专题入口</h3><span>详情默认采用中文业务结构与Markdown全文</span></div><div class="grid cols3">${entry.map(e=>`<article class="entry" data-action="goto-tab" data-tab="${e[1]}"><div class="letter">${e[0][0]}</div><strong>${e[0]}</strong><p>${e[3]}</p><span class="badge red">${e[2]}</span></article>`).join('')}</div><div class="grid cols2 mt"><div class="panel"><h3>本版核心变化</h3>${['取消默认原始JSON弹框','单位详情加载完整Markdown','增加96篇知识专题浏览','搜索覆盖Markdown全文','专题详情采用字段分组、流程、关系和来源卡片'].map(x=>`<div class="source-card">${x}</div>`).join('')}</div><div class="panel"><h3>数据边界与口径</h3><div class="notice">${esc(DATA.meta.notice)}</div>${kv('Markdown正文','保留章节、表格、列表、引用、代码块和关联分析')}${kv('结构化数据','用于交互查询和跨实体关联,不替代知识正文')}${kv('数量口径','区分历史接收、项目总量、单位分配与实时可用')}</div></div><div class="section-title"><h3>重点单位</h3><span>进入二级页面阅读单位Markdown全文</span></div><div class="grid cols3">${DATA.units.filter(x=>x.priority==='P1').slice(0,9).map(unitCard).join('')}</div>`}
|
||||
function orgImportant(o){return unitMap[o.organization_id]||['service_headquarters','functional_command','tactical_fighter_wing','tactical_composite_wing','composite_wing','aviation_brigade','aviation_group','training_command','base_command','rescue_squadron'].includes(o.organization_type)}
|
||||
function orgTreeData(svc){const active=DATA.organizations.filter(o=>o.service===svc&&!String(o.status).includes('HISTORICAL')&&!String(o.status).includes('DEPRECATED')&&orgImportant(o));const ids=new Set(active.map(x=>x.organization_id)),roots=active.filter(x=>!x.parent_public||!ids.has(x.parent_public)),children={};active.forEach(x=>(children[x.parent_public]??=[]).push(x));return{roots,children}}
|
||||
function nodeHtml(o,children,depth=0){const kids=(children[o.organization_id]||[]).sort((a,b)=>a.name_zh.localeCompare(b.name_zh,'zh-CN')),cls=depth===0?'root':depth===1?'branch':'';return `<li><button class="org-node ${cls}" data-action="open-org" data-id="${esc(o.organization_id)}"><span>${esc(o.name_zh)}</span><small>${esc(status(o.status))}</small></button>${kids.length?`<ul>${kids.map(k=>nodeHtml(k,children,depth+1)).join('')}</ul>`:''}</li>`}
|
||||
function renderOrganization(){const groups=[['air_force','空军体系'],['army','陆军航空'],['navy','海军航空'],['civil','民政航空支援']],{roots,children}=orgTreeData(state.orgService);$('#page-organization').innerHTML=`<div class="page-head"><div><h2>组织机构图</h2><p>点击节点查看中文组织详情;已有单位Markdown的节点可继续进入全文档案。</p></div></div><div class="org-layout"><aside class="side-nav"><h3 style="margin:5px 8px 12px">组织分类</h3>${groups.map(g=>`<button class="${state.orgService===g[0]?'active':''}" data-action="org-service" data-service="${g[0]}">${g[1]}</button>`).join('')}<div class="notice mt">完整119个组织实体仍可通过交互查询检索。</div></aside><div class="org-canvas"><div class="org-toolbar"><div><strong>${groups.find(x=>x[0]===state.orgService)?.[1]||'组织体系'}</strong><div style="font-size:12px;color:#667085;margin-top:4px">点击组织节点进行下钻</div></div><div class="zoom"><button class="btn light sm" data-action="zoom-out">缩小</button><button class="btn light sm" data-action="zoom-reset">复原</button><button class="btn light sm" data-action="zoom-in">放大</button></div></div><div class="tree" style="--scale:${state.orgZoom}"><ul>${roots.map(r=>nodeHtml(r,children)).join('')||'<div class="empty">暂无主干节点</div>'}</ul></div></div><aside class="side-info"><h3>组织图说明</h3>${kv('红色节点','军种或主干根节点')}${kv('浅红节点','联队、旅、大队等主要分支')}${kv('白色节点','队级飞行单位或专业组织')}<div class="notice mt">组织存在不等于完整兵力公开。</div></aside></div>`}
|
||||
function openOrg(id){const o=orgMap[id];if(!o)return;const u=unitMap[id],parent=orgMap[o.parent_public],childs=DATA.organizations.filter(x=>x.parent_public===id&&!String(x.status).includes('HISTORICAL')).slice(0,18);const orgDocPaths=['entities/organizations/air_force_headquarters_and_four_commands.md','entities/organizations/air_force_wings_1_to_7.md','entities/organizations/army_aviation_special_forces_system.md','entities/organizations/naval_antisubmarine_aviation_system.md'].filter(p=>knowledgeMap[p]);openModal(`<div class="record-hero"><h2>${esc(o.name_zh)}</h2><p>${esc(o.notes||'公开组织实体与关系档案')}</p></div><div class="record-grid">${infoGroup('组织身份',['organization_type','service','status','confidence','last_verified'],o)}<section class="record-group"><h3>隶属与关联</h3>${kv('公开上级',esc(parent?.name_zh||'待核/不适用'))}${kv('下级单位数',String(childs.length))}${childs.map(x=>`<div class="field-item" data-action="open-org" data-id="${esc(x.organization_id)}"><strong>${esc(x.name_zh)}</strong><span>${esc(status(x.status))}</span></div>`).join('')}</section></div>${u?`<button class="btn primary mt" data-action="open-unit" data-id="${esc(id)}">阅读完整单位Markdown档案</button>`:''}<section class="detail-section"><h3>关联组织专题</h3>${relatedDocs(orgDocPaths)}</section>${technicalFields(o)}`)}
|
||||
function filteredUnits(){return DATA.units.filter(u=>{const f=state.unitFilters;return(!f.q||JSON.stringify(u).toLowerCase().includes(f.q.toLowerCase()))&&(f.service==='全部'||service(u.service)===f.service)&&(f.level==='全部'||String(u.force_level).includes(f.level))&&(f.location==='全部'||String(u.public_location).includes(f.location))&&(f.status==='全部'||status(u.registry_status||u.status)===f.status)})}
|
||||
function renderUnits(){const all=filteredUnits(),pages=Math.max(1,Math.ceil(all.length/state.unitSize));state.unitPage=Math.min(state.unitPage,pages);const show=all.slice((state.unitPage-1)*state.unitSize,state.unitPage*state.unitSize),services=['全部',...uniq(DATA.units.map(x=>service(x.service)))],levels=['全部',...uniq(DATA.units.map(x=>x.force_level).filter(Boolean)).slice(0,12)],locs=['全部',...uniq(DATA.units.map(x=>String(x.public_location||'').split('(')[0]).filter(Boolean)).slice(0,15)],sts=['全部',...uniq(DATA.units.map(x=>status(x.registry_status||x.status)))];$('#page-units').innerHTML=`<div class="page-head"><div><h2>单位与兵力档案</h2><p>41个单位均连接对应Markdown全文,卡片摘要不再代替详细知识。</p></div><div class="view-switch"><button class="${state.unitView==='cards'?'active':''}" data-action="unit-view" data-view="cards">卡片</button><button class="${state.unitView==='table'?'active':''}" data-action="unit-view" data-view="table">矩阵</button></div></div><div class="filters"><input class="input" id="uQ" value="${esc(state.unitFilters.q)}" placeholder="查询单位、任务、装备或驻地"><select class="select" id="uService">${services.map(x=>`<option ${state.unitFilters.service===x?'selected':''}>${esc(x)}</option>`).join('')}</select><select class="select" id="uLevel">${levels.map(x=>`<option ${state.unitFilters.level===x?'selected':''}>${esc(x)}</option>`).join('')}</select><select class="select" id="uLoc">${locs.map(x=>`<option ${state.unitFilters.location===x?'selected':''}>${esc(x)}</option>`).join('')}</select><select class="select" id="uStatus">${sts.map(x=>`<option ${state.unitFilters.status===x?'selected':''}>${esc(x)}</option>`).join('')}</select><button class="btn light" data-action="clear-units">清空</button></div>${state.unitView==='cards'?`<div class="grid cols3">${show.map(unitCard).join('')||'<div class="empty">没有匹配单位</div>'}</div>`:`<div class="table-wrap"><table><thead><tr><th>单位名称</th><th>军种</th><th>层级</th><th>驻地</th><th>平台</th><th>任务</th><th>状态</th><th>完整档案</th></tr></thead><tbody>${show.map(u=>`<tr><td><strong>${esc(u.name)}</strong></td><td>${esc(service(u.service))}</td><td>${esc(u.force_level)}</td><td>${esc(u.public_location)}</td><td>${chips(u.platforms,4)}</td><td>${esc(arr(u.mission_roles).slice(0,3).join('、'))}</td><td>${badge(u.registry_status||u.status)}</td><td><button class="btn primary sm" data-action="open-unit" data-id="${esc(u.organization_id)}">阅读全文</button></td></tr>`).join('')}</tbody></table></div>`}<div class="pagination"><button class="btn line sm" data-action="unit-page" data-page="${state.unitPage-1}" ${state.unitPage<=1?'disabled':''}>上一页</button><span>第 ${state.unitPage} / ${pages} 页,共 ${all.length} 个单位</span><button class="btn line sm" data-action="unit-page" data-page="${state.unitPage+1}" ${state.unitPage>=pages?'disabled':''}>下一页</button></div>`;['uQ','uService','uLevel','uLoc','uStatus'].forEach(id=>$('#'+id).addEventListener(id==='uQ'?'input':'change',e=>{const k={uQ:'q',uService:'service',uLevel:'level',uLoc:'location',uStatus:'status'}[id];state.unitFilters[k]=e.target.value;state.unitPage=1;renderUnits()}))}
|
||||
function equipName(x){return x.display_name||x.name_zh||x.platform_name||x.platform_id} function equipCat(x){const n=equipName(x),c=x.category||'';if(/F-16|Mirage|F-CK|战斗/.test(n+c))return'战斗机';if(/T-34|AJT|AT-3|TH-67|教练/.test(n+c))return'教练机';if(/E-2|预警/.test(n+c))return'预警机';if(/C-130|运输|B-737|Fokker|Beech/.test(n+c))return'运输与专机';if(/P-3|反潜巡逻/.test(n+c))return'反潜巡逻机';if(/AH-|UH-|OH-|CH-|S-70|EC225|500MD|直升/.test(n+c))return'直升机';if(/无人|MQ-|腾云|剑翔|锐鸢|Altius|Switchblade/.test(n+c))return'无人航空器';return'其他平台'}
|
||||
function equipDocs(x){const cat=equipCat(x),m={'无人航空器':['entities/equipment/unmanned_aviation_forces.md','entities/equipment/unmanned_equipment_maturity_and_program_status.md'],'直升机':['entities/equipment/aircraft_platform_lineage.md','entities/equipment/army_navy_aviation_weapons_and_mission_systems.md'],'战斗机':['entities/equipment/aircraft_platform_lineage.md','entities/equipment/air_force_airborne_weapons_munitions_and_pods.md'],'教练机':['entities/equipment/aircraft_platform_lineage.md','capabilities/training/flight_training_pipeline_and_qualification_generation.md'],'预警机':['entities/equipment/special_rescue_vip_and_electronic_warfare_aircraft.md','capabilities/missions/mission_system_and_joint_relations.md'],'运输与专机':['entities/equipment/special_rescue_vip_and_electronic_warfare_aircraft.md'],'反潜巡逻机':['entities/equipment/special_rescue_vip_and_electronic_warfare_aircraft.md','entities/equipment/army_navy_aviation_weapons_and_mission_systems.md']};return m[cat]||['entities/equipment/aircraft_platform_lineage.md']}
|
||||
function renderEquipment(){const cats=['全部',...uniq(DATA.equipment.map(equipCat))],list=DATA.equipment.filter(x=>state.equipCat==='全部'||equipCat(x)===state.equipCat);$('#page-equipment').innerHTML=`<div class="page-head"><div><h2>装备体系</h2><p>装备详情采用业务字段、武器关系、来源卡和关联Markdown专题,不再展示裸JSON。</p></div></div><div class="equipment-layout"><aside class="side-nav category-list"><h3 style="margin:5px 8px 12px">装备分类</h3>${cats.map(c=>`<button class="${state.equipCat===c?'active':''}" data-action="equip-cat" data-cat="${esc(c)}"><span>${esc(c)}</span><span>${c==='全部'?DATA.equipment.length:DATA.equipment.filter(x=>equipCat(x)===c).length}</span></button>`).join('')}</aside><div><div class="grid cols3">${list.map(x=>`<article class="equip-card" data-action="open-equip" data-id="${esc(x.platform_id)}"><div class="top"><h4>${esc(equipName(x))}</h4>${badge(x.status)}</div><div>${chips([equipCat(x),service(x.service)],4)}</div><p>公开配属:${esc(arr(x.units_public).join('、')||'待核')}。点击查看任务关系、武器系统、来源和专题正文。</p><div class="foot"><span>${esc(x.last_verified||'')}</span><button class="btn light sm">丰富详情</button></div></article>`).join('')}</div></div></div>`}
|
||||
function openEquip(id){const x=DATA.equipment.find(e=>e.platform_id===id);if(!x)return;const rel=DATA.platformWeapon.filter(r=>String(r.platform).includes(equipName(x))||String(r.platform).includes(x.name_zh||'')),unitValue=(x.related_units&&x.related_units.length?x.related_units:x.units_public),srcs=arr(x.source_ids).map(id=>sourceMap[id]).filter(Boolean);openModal(`<div class="record-hero"><h2>${esc(equipName(x))}</h2><p>平台、任务、配属、武器关系、来源和关联知识正文综合展示。</p><div>${badge(x.status)} ${badge(x.confidence,'confidence')} <span class="badge red">${esc(equipCat(x))}</span></div></div><div class="record-grid"><section class="record-group"><h3>平台身份</h3>${kv('所属体系',esc(service(x.service)))}<div class="record-field"><span class="label">公开单位</span><span class="value">${renderUnitRefs(unitValue)}</span></div>${kv('最后核验',esc(x.last_verified||'待核'))}</section><section class="record-group"><h3>数量与状态边界</h3><p class="rich">军售批准、采购、交付、接装和稳定形成能力属于不同状态;不从全军采购总量推算单位编配或实时可用数量。</p></section></div><section class="detail-section"><h3>武器与任务系统关系</h3>${rel.length?`<div class="table-wrap"><table><thead><tr><th>武器或系统</th><th>用途</th><th>状态</th><th>可信度</th></tr></thead><tbody>${rel.map(r=>`<tr><td>${esc(r.weapon_or_system)}</td><td>${esc(r.role)}</td><td>${badge(r.status)}</td><td>${badge(r.confidence,'confidence')}</td></tr>`).join('')}</tbody></table></div>`:'<p class="rich">当前没有匹配到结构化武器关系,不代表平台没有任务系统。</p>'}</section><section class="detail-section"><h3>公开来源</h3>${srcs.length?srcs.map(s=>`<div class="source-card" data-action="open-source" data-id="${esc(s.source_id)}"><strong>${esc(s.title)}</strong><p>${esc(s.usage)}</p></div>`).join(''):'<p>来源编号已记录或待补充。</p>'}</section><section class="detail-section"><h3>关联知识正文</h3>${relatedDocs(equipDocs(x))}</section>${technicalFields(x)}`)}
|
||||
function renderTraining(){const stages=[...DATA.training].sort((a,b)=>Number(a.stage_order)-Number(b.stage_order));$('#page-training').innerHTML=`<div class="page-head"><div><h2>训练与保障</h2><p>结构化卡片负责概览,点击后进入中文业务详情并可继续阅读训练、模拟器、维修和航材Markdown全文。</p></div></div><div class="panel"><div class="panel-head"><div><h3>飞行训练资格生成链</h3><p>点击任一阶段查看输入、学科、模拟器、实飞、输出和来源</p></div></div><div class="flow">${stages.slice(0,9).map((x,i)=>`<div class="flow-step" data-action="record-detail" data-type="training" data-index="${DATA.training.indexOf(x)}"><div class="no">${i+1}</div><h4>${esc(x.stage_name)}</h4><p>${esc(x.responsible_entity)}</p></div>`).join('')}</div></div><div class="section-title"><h3>模拟训练体系</h3><span>业务字段分组 + 关联Markdown</span></div><div class="grid cols3">${DATA.simulators.map((x,i)=>`<article class="unit-card" data-action="record-detail" data-type="simulator" data-index="${i}"><div class="top"><h4>${esc(x.platform_or_role)}</h4>${badge(x.delivery_status)}</div><div>${chips([x.category],3)}</div><p>${esc(x.evidence)}</p><div class="foot"><span>${esc(x.organization)}</span><button class="btn light sm">查看丰富详情</button></div></article>`).join('')}</div><div class="section-title"><h3>维修层级与保障能力</h3><span>点击查看责任主体、质量关口、技术依赖和全文专题</span></div><div class="grid cols2">${DATA.maintenance.map((x,i)=>`<div class="panel" data-action="record-detail" data-type="maintenance" data-index="${i}"><div class="panel-head"><div><h3>${esc(x.platform_family)}</h3><p>${esc(x.level)} · ${esc(x.task_family)}</p></div>${badge(x.status)}</div><p class="rich">${esc(x.key_outputs)}</p><div>${chips([x.responsible_entity,x.quality_gate],4)}</div></div>`).join('')}</div>`}
|
||||
function renderIndustry(){$('#page-industry').innerHTML=`<div class="page-head"><div><h2>工业链与外部依赖</h2><p>产业节点和依赖矩阵均使用中文详情分组,并链接国产工业、供应链和外部依赖Markdown全文。</p></div></div><div class="industry-stack">${[['政策与军种需求','需求、预算、采购和产业政策'],['总体设计与系统整合','汉翔、中科院及项目主承包'],['专业系统与供应商','发动机、航电、雷达、结构、材料和特殊制程'],['维修与全寿期支援','军方厂库、国内MRO、原厂/FMS和技术资料'],['外部技术与认证','设计权、软件、专用工具、出口管制和适航认证']].map((x,i)=>`<div class="industry-layer"><div><span class="badge red">产业层级 ${i+1}</span><h3 class="mt">${x[0]}</h3></div><p class="rich">${x[1]}</p></div>`).join('')}</div><div class="section-title"><h3>国内产业节点</h3><span>点击查看能力范围、平台、成熟度与关联正文</span></div><div class="grid cols3">${DATA.industry.map((x,i)=>`<article class="unit-card" data-action="record-detail" data-type="industry" data-index="${i}"><div class="top"><h4>${esc(x.organization)}</h4>${badge(x.status)}</div><div>${chips([x.node_type,x.maturity],4)}</div><p>${esc(clip(x.capabilities,150))}</p><div class="foot"><span>${esc(x.foreign_interface)}</span><button class="btn light sm">丰富详情</button></div></article>`).join('')}</div><div class="section-title"><h3>平台级外部依赖矩阵</h3><span>默认不显示原始JSON</span></div><div class="table-wrap"><table><thead><tr><th>平台或系统</th><th>依赖维度</th><th>国内能力</th><th>外部依赖</th><th>等级</th><th>详情</th></tr></thead><tbody>${DATA.externalDependencies.map((x,i)=>`<tr><td><strong>${esc(x.platform_or_system)}</strong></td><td>${esc(x.dimension)}</td><td>${esc(clip(x.domestic_capability,75))}</td><td>${esc(clip(x.foreign_dependency,75))}</td><td><span class="badge red">${esc(x.level)}</span></td><td><button class="btn light sm" data-action="record-detail" data-type="dependency" data-index="${i}">展开</button></td></tr>`).join('')}</tbody></table></div>`}
|
||||
function renderSafety(){$('#page-safety').innerHTML=`<div class="page-head"><div><h2>飞安、事故与风险治理</h2><p>风险和治理环节采用语义详情页面,并连接事故调查、人因、适航、环境和搜救Markdown专题。</p></div></div><div class="grid cols4">${DATA.safetyRisks.slice(0,11).map((x,i)=>`<article class="risk-card" data-action="record-detail" data-type="risk" data-index="${i}"><h4>${esc(x.domain)}</h4><p class="rich">${esc(x.risk)}</p><div>${chips(arr(x.controls),4)}</div></article>`).join('')}</div><div class="section-title"><h3>飞安治理闭环</h3><span>点击阶段查看输入、输出、责任主体与制度正文</span></div><div class="panel"><div class="flow">${DATA.safetyProcess.map((x,i)=>`<div class="flow-step" data-action="record-detail" data-type="process" data-index="${i}"><div class="no">${i+1}</div><h4>${esc(x.stage)}</h4><p>${esc(x.owner)}</p></div>`).join('')}</div></div><div class="section-title"><h3>公开重大飞安事件</h3><span>右侧抽屉提供业务字段和完整专题入口</span></div><div class="timeline">${DATA.safetyEvents.map((x,i)=>`<article class="event" data-action="open-event" data-index="${i}"><span class="date">${esc(x.date)}</span> <span class="badge red">${esc(labels.category[x.category]||x.category)}</span><h4>${esc(x.platform)} · ${esc(x.summary)}</h4><p>${esc(x.outcome)};${esc(x.cause_status)}</p></article>`).join('')}</div>`}
|
||||
function openEvent(i){const x=DATA.safetyEvents[Number(i)];if(!x)return;const ss=arr(x.source_ids).map(id=>sourceMap[id]).filter(Boolean);openDrawer(`${x.date} · ${x.platform}`,`<div class="record-hero"><h2>${esc(x.summary)}</h2><p>事件事实、处置、复飞和原因状态分层展示。</p></div>${infoGroup('事件概览',['date','service','platform','category','severity','outcome'],x)}${infoGroup('停飞、检查与恢复',['grounding','return_to_flight'],x)}${infoGroup('调查与原因状态',['cause_status','confidence','source_ids'],x)}<section class="detail-section"><h3>公开来源</h3>${ss.map(s=>`<div class="source-card" data-action="open-source" data-id="${esc(s.source_id)}"><strong>${esc(s.title)}</strong><p>${esc(s.usage)}</p></div>`).join('')||'<p>来源编号已记录。</p>'}</section><section class="detail-section"><h3>关联知识正文</h3>${relatedDocs(RELATED.safety)}</section><div class="notice">初始通报、监督调查和最终原因属于不同证据层级,不应混写。</div>`)}
|
||||
function renderTimeline(){const sources=DATA.sources.filter(x=>!state.sourceQ||JSON.stringify(x).toLowerCase().includes(state.sourceQ.toLowerCase())).slice(0,70);$('#page-timeline').innerHTML=`<div class="page-head"><div><h2>事件时间线与来源</h2><p>时间线与官方来源卡保持可检索,同时来源索引Markdown也可在知识专题库阅读全文。</p></div></div><div class="source-layout"><div class="panel"><div class="panel-head"><div><h3>重大事件时间线</h3><p>按公开日期倒序</p></div></div><div class="timeline">${DATA.timeline.map(x=>`<article class="event"><span class="date">${esc(x.date)}</span> <span class="badge red">${esc(x.type)}</span><h4>${esc(x.title)}</h4><p>${esc(x.detail||'公开资料未提供更多摘要')}</p></article>`).join('')}</div></div><div><div class="panel mb"><div class="panel-head"><div><h3>官方来源查询</h3><p>共 ${DATA.sources.length} 项来源</p></div></div><input id="sourceQ" class="input" value="${esc(state.sourceQ)}" placeholder="查询来源名称、用途或编号"><button class="btn line mt" data-action="open-knowledge" data-path="sources/官方来源索引_v7.md">阅读来源索引Markdown</button></div>${sources.map(s=>`<article class="source-card" data-action="open-source" data-id="${esc(s.source_id)}"><h4>${esc(s.title)}</h4><p>${esc(s.usage)}</p><div class="mt">${badge(s.confidence,'confidence')} <span class="badge gray">${esc(s.verified)}</span></div></article>`).join('')}</div></div>`;$('#sourceQ').addEventListener('input',e=>{state.sourceQ=e.target.value;renderTimeline()})}
|
||||
function openSource(id){const s=sourceMap[id];if(!s)return;const local=sourceLocalMap[id]||{},contexts=local.citation_contexts||[],mentions=local.structured_mentions||[];
|
||||
const original=local.has_original_content&&local.original_content?`<section class="offline-source-panel"><h3>本地收录的原始内容</h3><div class="md-body">${enrichKnowledgeHtml(local.original_content)}</div></section>`:'';
|
||||
const contextHtml=contexts.length?`<section class="offline-source-panel"><h3>知识库引用上下文</h3><p class="rich">以下内容来自本地Markdown中引用该来源的章节,用于离线核对来源支撑范围;它不是外部网页的完整原文。</p>${contexts.map(c=>`<article class="citation-context" data-action="open-knowledge" data-path="${esc(c.path)}"><h4>${esc(c.title)}</h4><p><strong>${esc(c.section||'相关章节')}</strong>:${esc(c.snippet)}</p></article>`).join('')}</section>`:'';
|
||||
const mentionHtml=mentions.length?`<section class="offline-source-panel"><h3>结构化数据中的使用位置</h3>${mentions.map(m=>`<article class="structured-mention"><span class="dataset">${esc(m.dataset)}</span><div><strong>${esc(m.title)}</strong><p>${esc(m.summary||'该记录引用此来源。')}</p></div></article>`).join('')}</section>`:'';
|
||||
const noOriginal=!local.has_original_content?`<div class="notice mt">本地知识库未保存该官方页面或PDF的完整原文。当前为离线部署版本,因此不显示网址,也不提供外网跳转。</div>`:'';
|
||||
openModal(`<div class="record-hero"><h2>${esc(s.title)}</h2><p>${esc(s.usage)}</p></div>${infoGroup('来源信息',['source_id','verified','confidence'],s)}<section class="offline-source-panel"><h3>离线收录状态</h3><span class="offline-status ${local.has_original_content?'available':(contexts.length||mentions.length?'context':'')}">${esc(local.local_status||'仅收录来源元数据')}</span><p class="offline-reference-note">来源用途摘要:${esc(s.usage||'未提供')}</p></section>${original}${contextHtml}${mentionHtml}${noOriginal}<div class="notice">来源只能支撑其明确记载的字段,不能由单一来源推断完整编制、实时状态或单位级兵力。</div>`)}
|
||||
function knowledgeFiltered(){return KNOWLEDGE.filter(d=>(state.knowledgeCategory==='全部'||d.category===state.knowledgeCategory)&&(!state.knowledgeQ||(d.title+' '+d.summary+' '+d.text+' '+d.path).toLowerCase().includes(state.knowledgeQ.toLowerCase())))}
|
||||
function renderKnowledge(){const cats=['全部',...uniq(KNOWLEDGE.map(x=>x.category))],list=knowledgeFiltered(),pages=Math.max(1,Math.ceil(list.length/state.knowledgeSize));state.knowledgePage=Math.min(state.knowledgePage,pages);const show=list.slice((state.knowledgePage-1)*state.knowledgeSize,state.knowledgePage*state.knowledgeSize),counts=CounterBy(KNOWLEDGE,'category');$('#page-knowledge').innerHTML=`<div class="page-head"><div><h2>知识专题库</h2><p>共 ${KNOWLEDGE.length} 篇非重复Markdown知识文件。可按主题分类、标题和正文全文检索。</p></div><div class="page-actions"><input id="knowledgeQ" class="input" style="width:330px" value="${esc(state.knowledgeQ)}" placeholder="查询标题、摘要、正文或路径"></div></div><div class="knowledge-layout"><aside class="knowledge-side"><h3 style="margin:5px 8px 12px">专题分类</h3>${cats.map(c=>`<button class="${state.knowledgeCategory===c?'active':''}" data-action="knowledge-cat" data-cat="${esc(c)}"><span>${esc(c)}</span><span>${c==='全部'?KNOWLEDGE.length:(counts[c]||0)}</span></button>`).join('')}</aside><div><div class="grid cols3">${show.map(d=>`<article class="knowledge-card" data-action="open-knowledge" data-path="${esc(d.path)}"><h4>${esc(d.title)}</h4><div class="knowledge-meta"><span class="badge red">${esc(d.category)}</span><span class="badge gray">${esc(d.type)}</span></div><p>${esc(clip(d.summary||d.when,155))}</p><div class="knowledge-path">${esc(d.path)}</div><div class="foot mt"><span>${d.sections.length} 个章节</span><button class="btn light sm">阅读全文</button></div></article>`).join('')||'<div class="empty">没有匹配的Markdown专题</div>'}</div><div class="pagination"><button class="btn line sm" data-action="knowledge-page" data-page="${state.knowledgePage-1}" ${state.knowledgePage<=1?'disabled':''}>上一页</button><span>第 ${state.knowledgePage} / ${pages} 页,共 ${list.length} 篇</span><button class="btn line sm" data-action="knowledge-page" data-page="${state.knowledgePage+1}" ${state.knowledgePage>=pages?'disabled':''}>下一页</button></div></div></div>`;$('#knowledgeQ').addEventListener('input',e=>{state.knowledgeQ=e.target.value;state.knowledgePage=1;renderKnowledge()})}
|
||||
function CounterBy(items,key){return items.reduce((a,x)=>(a[x[key]]=(a[x[key]]||0)+1,a),{})}
|
||||
const datasets={units:['单位档案',DATA.units,'unit'],organizations:['组织机构',DATA.organizations,'organization'],equipment:['装备平台',DATA.equipment,'equipment'],training:['训练阶段',DATA.training,'training'],simulators:['模拟器',DATA.simulators,'simulator'],maintenance:['维修能力',DATA.maintenance,'maintenance'],industry:['产业节点',DATA.industry,'industry'],dependencies:['外部依赖',DATA.externalDependencies,'dependency'],safety:['飞安事件',DATA.safetyEvents,'safety'],sources:['官方来源',DATA.sources,'source'],knowledge:['知识专题',KNOWLEDGE,'knowledge']};
|
||||
function openDatasetRecord(key,x){const type=datasets[key][2];if(type==='unit')openUnit(x.organization_id);else if(type==='organization')openOrg(x.organization_id);else if(type==='equipment')openEquip(x.platform_id);else if(type==='source')openSource(x.source_id);else if(type==='knowledge')openKnowledge(x.path);else openRecord(type,x)}
|
||||
function openQuery(){$('#queryPanel').classList.remove('hidden');document.body.style.overflow='hidden';$('#queryForm').innerHTML=`<h2>交互式数据查询</h2><p class="rich">结构化字段用于筛选;结果点击后打开中文业务详情或Markdown全文。</p><label>数据集</label><select id="qDataset" class="select mb">${Object.entries(datasets).map(([k,v])=>`<option value="${k}">${v[0]}</option>`).join('')}</select><label>查询字段</label><select id="qField" class="select mb"></select><label>条件</label><select id="qOp" class="select mb"><option value="contains">包含</option><option value="equals">等于</option></select><label>查询值</label><input id="qValue" class="input mb" placeholder="输入关键词"><button class="btn primary" id="qRun">执行查询</button><button class="btn light" id="qClear">清空</button><div class="notice mt">查询结果默认不显示原始JSON。</div>`;const fields=()=>{const d=datasets[$('#qDataset').value][1],ks=uniq(d.slice(0,50).flatMap(x=>Object.keys(x))).sort();$('#qField').innerHTML='<option value="__all">全部字段</option>'+ks.map(k=>`<option value="${esc(k)}">${esc(FIELD_LABELS[k]||k)}</option>`).join('')};const run=()=>{const key=$('#qDataset').value,d=datasets[key][1],f=$('#qField').value,op=$('#qOp').value,q=$('#qValue').value.trim().toLowerCase(),r=d.filter(x=>{const v=f==='__all'?JSON.stringify(x):JSON.stringify(x[f]??'');return!q||(op==='equals'?v.replace(/^"|"$/g,'').toLowerCase()===q:v.toLowerCase().includes(q))}).slice(0,100);$('#queryResult').innerHTML=`<div class="page-head"><div><h2>查询结果</h2><p>匹配 ${r.length} 条,点击查看业务详情</p></div></div>${r.map((x,i)=>`<div class="query-row" data-action="query-record" data-dataset="${key}" data-index="${d.indexOf(x)}"><strong>${esc(recordTitle(datasets[key][2],x))}</strong><p style="margin:5px 0;color:#667085">${esc(clip(x.summary||x.usage||x.evidence||x.text||JSON.stringify(x),170))}</p></div>`).join('')||'<div class="empty">没有匹配结果</div>'}`};$('#qDataset').addEventListener('change',()=>{fields();run()});$('#qField').addEventListener('change',run);$('#qOp').addEventListener('change',run);$('#qValue').addEventListener('input',run);$('#qRun').onclick=run;$('#qClear').onclick=()=>{$('#qValue').value='';run()};fields();run()}
|
||||
function renderAll(){renderOverview();renderOrganization();renderUnits();renderEquipment();renderTraining();renderIndustry();renderSafety();renderTimeline();renderKnowledge()}
|
||||
document.addEventListener('click',e=>{const el=e.target.closest('[data-action]');if(!el)return;const a=el.dataset.action;if(a==='goto-tab')setTab(el.dataset.tab);if(a==='open-unit')openUnit(el.dataset.id);if(a==='open-org')openOrg(el.dataset.id);if(a==='open-equip')openEquip(el.dataset.id);if(a==='open-event')openEvent(el.dataset.index);if(a==='open-source')openSource(el.dataset.id);if(a==='missing-source')openModal(`<div class="record-hero"><h2>来源待补充</h2><p>当前来源索引中未匹配到该编号。</p></div>${kv('来源编号',esc(el.dataset.id))}<div class="notice mt">该编号已在Markdown正文中出现,但尚未与来源索引建立映射。后续可在离线来源表中补充标题、用途、核验日期、可信度及本地原文或摘录;本页面不展示外部网址。</div>`);if(a==='open-knowledge')openKnowledge(el.dataset.path);if(a==='record-detail'){const map={training:DATA.training,simulator:DATA.simulators,maintenance:DATA.maintenance,industry:DATA.industry,dependency:DATA.externalDependencies,risk:DATA.safetyRisks,process:DATA.safetyProcess};openRecord(el.dataset.type,map[el.dataset.type][Number(el.dataset.index)])}if(a==='query-record'){const key=el.dataset.dataset;openDatasetRecord(key,datasets[key][1][Number(el.dataset.index)])}if(a==='close-modal')closeModal();if(a==='close-drawer')closeDrawer();if(a==='close-detail')closeDetail();if(a==='open-query')openQuery();if(a==='close-query')closeQuery();if(a==='org-service'){state.orgService=el.dataset.service;state.orgZoom=1;renderOrganization()}if(a==='zoom-in'){state.orgZoom=Math.min(1.45,state.orgZoom+.1);renderOrganization()}if(a==='zoom-out'){state.orgZoom=Math.max(.6,state.orgZoom-.1);renderOrganization()}if(a==='zoom-reset'){state.orgZoom=1;renderOrganization()}if(a==='unit-view'){state.unitView=el.dataset.view;renderUnits()}if(a==='unit-page'){state.unitPage=Number(el.dataset.page);renderUnits()}if(a==='clear-units'){state.unitFilters={q:'',service:'全部',level:'全部',location:'全部',status:'全部'};state.unitPage=1;renderUnits()}if(a==='equip-cat'){state.equipCat=el.dataset.cat;renderEquipment()}if(a==='knowledge-cat'){state.knowledgeCategory=el.dataset.cat;state.knowledgePage=1;renderKnowledge()}if(a==='knowledge-page'){state.knowledgePage=Number(el.dataset.page);renderKnowledge()}if(a==='reader-scroll'){const t=document.getElementById(el.dataset.target);if(t)t.scrollIntoView({behavior:'smooth',block:'start'});$$('.reader-toc button').forEach(b=>b.classList.toggle('active',b===el))}if(a==='reset'){state.unitFilters={q:'',service:'全部',level:'全部',location:'全部',status:'全部'};state.unitPage=1;state.equipCat='全部';state.orgService='air_force';state.sourceQ='';state.knowledgeCategory='全部';state.knowledgeQ='';renderAll();setTab('overview')}});
|
||||
$$('.tab').forEach(t=>t.addEventListener('click',()=>setTab(t.dataset.tab)));
|
||||
const gs=$('#globalSearch');function globalResults(q){q=q.trim().toLowerCase();if(!q)return[];const r=[];DATA.units.forEach(x=>{if(JSON.stringify(x).toLowerCase().includes(q))r.push({kind:'单位',title:x.name,desc:x.summary,action:'open-unit',id:x.organization_id})});DATA.equipment.forEach(x=>{if(JSON.stringify(x).toLowerCase().includes(q))r.push({kind:'装备',title:equipName(x),desc:`${equipCat(x)} · ${status(x.status)}`,action:'open-equip',id:x.platform_id})});KNOWLEDGE.forEach(x=>{if((x.title+' '+x.summary+' '+x.text).toLowerCase().includes(q))r.push({kind:'知识正文',title:x.title,desc:x.summary||x.path,action:'open-knowledge',id:x.path})});DATA.safetyEvents.forEach((x,i)=>{if(JSON.stringify(x).toLowerCase().includes(q))r.push({kind:'飞安事件',title:`${x.date} ${x.platform}`,desc:x.summary,action:'open-event',id:i})});DATA.sources.forEach(x=>{if(JSON.stringify(x).toLowerCase().includes(q))r.push({kind:'来源',title:x.title,desc:x.usage,action:'open-source',id:x.source_id})});return r.slice(0,25)}
|
||||
gs.addEventListener('input',()=>{const r=globalResults(gs.value),p=$('#searchPop');if(!gs.value.trim()){p.classList.add('hidden');return}p.innerHTML=r.length?r.map(x=>`<div class="search-item" data-search-action="${x.action}" data-search-id="${esc(x.id)}"><span class="search-kind">${x.kind}</span><div><strong>${esc(x.title)}</strong><small>${esc(clip(x.desc,110))}</small></div></div>`).join(''):'<div class="empty">没有匹配结果</div>';p.classList.remove('hidden')});$('#searchPop').addEventListener('click',e=>{const x=e.target.closest('[data-search-action]');if(!x)return;$('#searchPop').classList.add('hidden');gs.value='';if(x.dataset.searchAction==='open-unit')openUnit(x.dataset.searchId);if(x.dataset.searchAction==='open-equip')openEquip(x.dataset.searchId);if(x.dataset.searchAction==='open-event')openEvent(x.dataset.searchId);if(x.dataset.searchAction==='open-source')openSource(x.dataset.searchId);if(x.dataset.searchAction==='open-knowledge')openKnowledge(x.dataset.searchId)});document.addEventListener('click',e=>{if(!e.target.closest('.search'))$('#searchPop').classList.add('hidden')});/* ── 页头同步(MANIFEST.系统 → title/h1/版本) ── */
|
||||
function syncHeader(){
|
||||
var sys=(MANIFEST||{})["系统"]||{};
|
||||
if(sys["名称"]){document.title=String(sys["名称"]);var h1=document.querySelector(".header h1");if(h1)h1.textContent=String(sys["名称"])}
|
||||
var p=document.querySelector(".header .brand p");
|
||||
if(p&&sys["版本"])p.textContent="结构化数据版 "+String(sys["版本"]);
|
||||
}
|
||||
|
||||
/* ── 自定义模块(MANIFEST.自定义模块 挂到对应页面底部) ── */
|
||||
function renderCustomModules(){
|
||||
var list=arr((MANIFEST||{})["自定义模块"]).filter(function(m){return m&&m["页面"]&&m.html});
|
||||
if(!list.length)return;
|
||||
list.forEach(function(m){
|
||||
var host=document.getElementById("page-"+m["页面"]);
|
||||
if(!host)return;
|
||||
var wrap=document.createElement("section");
|
||||
wrap.className="record-group custom-module";
|
||||
wrap.style.margin="18px 0";
|
||||
wrap.innerHTML="<h3>"+esc(m["标题"]||"自定义模块")+"</h3>"+m.html;
|
||||
host.appendChild(wrap);
|
||||
});
|
||||
}
|
||||
|
||||
/* ── 页面 JSON 编辑器(模块=DATA 顶层键 + 系统设置) ── */
|
||||
(function(){
|
||||
"use strict";
|
||||
function clone(v){return JSON.parse(JSON.stringify(v))}
|
||||
function draftsToData(d){var o={};Object.keys(d).forEach(function(k){if(k!=="__manifest__")o[k]=d[k]});return o}
|
||||
function replaceInPlace(t,s){Object.keys(t).forEach(function(k){delete t[k]});Object.keys(s).forEach(function(k){t[k]=s[k]})}
|
||||
function buildDrafts(data,manifest){var o={__manifest__:clone(manifest)};Object.keys(data).forEach(function(k){o[k]=clone(data[k])});return o}
|
||||
|
||||
var initialData=clone(DATA),initialManifest=clone(MANIFEST);
|
||||
var labels={};arr(MANIFEST["页面"]).forEach(function(p){if(p&&p["编号"])labels[p["编号"]]=p["名称"]||p["编号"]});
|
||||
var fingerprint=(function(){var h=2166136261,s=JSON.stringify(initialData)+"|"+JSON.stringify(initialManifest);for(var i=0;i<s.length;i++){h^=s.charCodeAt(i);h=Math.imul(h,16777619)}return (h>>>0).toString(36)})();
|
||||
var storageKey="structured-page-data-v1:"+fingerprint;
|
||||
function readLS(k){try{return window.localStorage?window.localStorage.getItem(k):null}catch(x){return null}}
|
||||
function writeLS(k,v){try{if(window.localStorage)window.localStorage.setItem(k,v)}catch(x){}}
|
||||
function removeLS(k){try{if(window.localStorage)window.localStorage.removeItem(k)}catch(x){}}
|
||||
|
||||
// 启动恢复:有合法缓存则应用(在首帧渲染前)。
|
||||
(function(){
|
||||
var cached=readLS(storageKey);if(!cached)return;
|
||||
try{
|
||||
var parsed=JSON.parse(cached);
|
||||
if(parsed&&typeof parsed==="object"&&parsed.data&&typeof parsed.data==="object"){
|
||||
replaceInPlace(DATA,parsed.data);
|
||||
if(parsed.manifest&&typeof parsed.manifest==="object")replaceInPlace(MANIFEST,parsed.manifest);
|
||||
}
|
||||
}catch(x){}
|
||||
})();
|
||||
|
||||
var modules=Object.keys(DATA).concat(["__manifest__"]);
|
||||
var active=modules[0]||"__manifest__";
|
||||
var drafts=buildDrafts(DATA,MANIFEST);
|
||||
function moduleTitle(k){return k==="__manifest__"?"系统设置(MANIFEST)":(labels[k]||k)}
|
||||
|
||||
var overlay=document.getElementById("editorOverlay");
|
||||
if(!overlay)return;
|
||||
var tabsEl=document.getElementById("editorTabs"),editor=document.getElementById("jsonEditor"),statusEl=document.getElementById("jsonStatus"),titleEl=document.getElementById("editorModuleTitle");
|
||||
|
||||
function setStatus(ok,msg){statusEl.textContent=msg;statusEl.className="json-status "+(ok?"valid":"invalid")}
|
||||
function readEditor(){
|
||||
try{
|
||||
var p=JSON.parse(editor.value);
|
||||
if(!p||typeof p!=="object")throw new Error("模块必须是 JSON 对象或数组");
|
||||
setStatus(true,"JSON 有效");return p
|
||||
}catch(x){setStatus(false,"JSON 无效:"+x.message);return null}
|
||||
}
|
||||
function saveActiveDraft(){var p=readEditor();if(!p)return false;drafts[active]=p;return true}
|
||||
function loadEditor(){titleEl.textContent=moduleTitle(active);editor.value=JSON.stringify(drafts[active],null,2);setStatus(true,"JSON 有效")}
|
||||
function renderTabs(){
|
||||
tabsEl.innerHTML="";
|
||||
modules.forEach(function(key){
|
||||
var b=document.createElement("button");b.type="button";
|
||||
b.className="editor-tab"+(key===active?" active":"");
|
||||
b.innerHTML="<b>"+esc(moduleTitle(key))+"</b><small>"+(key==="__manifest__"?"manifest.json":key)+"</small>";
|
||||
b.onclick=function(){if(key===active||!saveActiveDraft())return;active=key;renderTabs();loadEditor()};
|
||||
tabsEl.appendChild(b)
|
||||
})
|
||||
}
|
||||
function closeEditor(){overlay.classList.add("hidden")}
|
||||
function applyToPage(){
|
||||
if(!saveActiveDraft()){setStatus(false,"存在无效模块");return}
|
||||
replaceInPlace(DATA,draftsToData(drafts));
|
||||
replaceInPlace(MANIFEST,drafts.__manifest__);
|
||||
state.tab="overview";state.unitView="cards";state.unitPage=1;
|
||||
state.unitFilters={q:"",service:"全部",level:"全部",location:"全部",status:"全部"};
|
||||
closeEditor();syncHeader();renderAll();renderCustomModules();
|
||||
writeLS(storageKey,JSON.stringify({data:DATA,manifest:MANIFEST}))
|
||||
}
|
||||
function legacyCopy(text){var t=document.createElement("textarea");t.value=text;document.body.appendChild(t);t.select();try{document.execCommand("copy")}catch(x){}t.remove()}
|
||||
|
||||
document.getElementById("openEditor").onclick=function(){
|
||||
drafts=buildDrafts(DATA,MANIFEST);
|
||||
active=modules[0]||"__manifest__";
|
||||
renderTabs();loadEditor();
|
||||
overlay.classList.remove("hidden");
|
||||
setTimeout(function(){editor.focus()},40)
|
||||
};
|
||||
document.getElementById("closeEditor").onclick=closeEditor;
|
||||
var backdrop=overlay.querySelector(".backdrop");
|
||||
if(backdrop)backdrop.addEventListener("click",closeEditor);
|
||||
document.addEventListener("keydown",function(ev){if(ev.key==="Escape"&&!overlay.classList.contains("hidden"))closeEditor()});
|
||||
document.getElementById("applyJson").onclick=applyToPage;
|
||||
document.getElementById("resetJson").onclick=function(){
|
||||
drafts=buildDrafts(initialData,initialManifest);
|
||||
active=modules[0]||"__manifest__";
|
||||
removeLS(storageKey);
|
||||
renderTabs();loadEditor();
|
||||
setStatus(true,"已恢复默认数据,点击「应用到页面」生效")
|
||||
};
|
||||
document.getElementById("copyJson").onclick=function(){
|
||||
if(!saveActiveDraft())return;
|
||||
var text=JSON.stringify({data:draftsToData(drafts),manifest:drafts.__manifest__},null,2);
|
||||
if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(text).catch(function(){legacyCopy(text)});
|
||||
else legacyCopy(text)
|
||||
};
|
||||
document.getElementById("downloadJson").onclick=function(){
|
||||
if(!saveActiveDraft())return;
|
||||
var blob=new Blob([JSON.stringify({data:draftsToData(drafts),manifest:drafts.__manifest__},null,2)],{type:"application/json;charset=utf-8"});
|
||||
var link=document.createElement("a");link.href=URL.createObjectURL(blob);link.download="page-data.json";link.click();
|
||||
setTimeout(function(){URL.revokeObjectURL(link.href)},1000)
|
||||
};
|
||||
})();
|
||||
syncHeader();
|
||||
applyPageVisibility();
|
||||
renderAll();
|
||||
renderCustomModules();
|
||||
})();
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"AF-ORG": {"has_original_content": false, "original_content": "", "citation_contexts": [{"path": "entities/organizations/air_force_headquarters_and_four_commands.md", "title": "空军司令部与四大指挥部组织", "section": "一、空军司令部", "snippet": "空军官网2026年说明,司令部本部设置各室、处,另辖作战、防空暨飞弹、教育训练暨准则发展、保修四个指挥部以及作战联队、基地指挥部、学校和科研单位。 [AF-ORG-2026] 1. 本部幕僚功能 公开资料能够确认的功能包括: 政治作战; 督察; 人事军务; 战备训练; 后勤; 计划; 通信资讯; 军事情报; 主计; 司令部勤务和公文管理。 这些功能不等于所有单位名称在每年均不变。v3把它们建模为 staff_function ,而非硬编码完整法定编制。 2. 司令部直属勤务 2024公开聘雇资料出现: 空军司令部勤务队; 文书管理分队。 二者用于说明司令部本部也有行政和勤务支援组织,"}, {"path": "entities/organizations/command_structure_overview.md", "title": "组织指挥体系", "section": "二、空军现行主干组织", "snippet": "─ 第七战术战斗机联队 ├── 空军军官学校 ├── 飞行训练指挥部 ├── 航空技术学院 └── 航空科技研究发展中心等其他单位 官方服务单位名录还确认了战术管制联队、通信航管资讯联队、气象联队及气象中心、第一和第三后勤指挥部、马公基地勤务队等现行单位。 [AF-ORG-2026] [AF-CONTACT-2026]"}], "structured_mentions": [{"dataset": "组织机构", "title": "空军司令部", "summary": "", "unit_id": "ORG-AF-HQ", "platform_id": "", "knowledge_path": ""}, {"dataset": "组织机构", "title": "空军防空暨飞弹指挥部", "summary": "", "unit_id": "ORG-AF-ADMC", "platform_id": "", "knowledge_path": ""}, {"dataset": "组织机构", "title": "空军教育训练暨准则发展指挥部", "summary": "", "unit_id": "ORG-AF-ETD-CMD", "platform_id": "", "knowledge_path": ""}, {"dataset": "组织机构", "title": "空军军官学校", "summary": "", "unit_id": "ORG-AF-ACADEMY", "platform_id": "", "knowledge_path": ""}, {"dataset": "组织机构", "title": "空军飞行训练指挥部", "summary": "", "unit_id": "ORG-AF-FLIGHT-TRAIN-CMD", "platform_id": "", "knowledge_path": ""}, {"dataset": "组织机构", "title": "空军航空技术学院", "summary": "", "unit_id": "ORG-AF-TECH-COLLEGE", "platform_id": "", "knowledge_path": ""}, {"dataset": "组织机构", "title": "空军松山基地指挥部", "summary": "", "unit_id": "ORG-AF-SONGSHAN", "platform_id": "", "knowledge_path": ""}, {"dataset": "组织机构", "title": "空军第一战术战斗机联队", "summary": "", "unit_id": "ORG-AF-W1", "platform_id": "", "knowledge_path": ""}], "related_docs": ["entities/organizations/air_force_headquarters_and_four_commands.md", "entities/organizations/command_structure_overview.md"], "local_status": "已收录知识库引用上下文"}, "AF-W1": {"has_original_content": false, "original_content": "", "citation_contexts": [{"path": "entities/organizations/air_force_wings_1_to_7.md", "title": "空军第一至第七联队内部编制", "section": "二、第一战术战斗机联队", "snippet": "队是F-CK-1经国号体系之一。飞行作战队、修护补给大队、基地勤务大队共同构成: 飞行作战 → 航线/定检修护 → 航电、军械和补给 → 基地航管、消防、设施与医务 马公基地勤务队是公开存在的基地支援单位,但不能据此推断某型飞机长期固定部署数量或值班规律。 [AF-W1] [AF-HR-2024] [AF-CONTACT-2026]"}, {"path": "entities/units/air_force/1st_tactical_fighter_wing.md", "title": "空军第一战术战斗机联队", "section": "单位身份卡", "snippet": "字段 内容 档案ID UFP-003 组织ID ORG-AF-W1 军种/系统 空军 单位层级 联队级 上级单位 空军司令部 公开驻地层级 台南地区(公开联队驻地层级) 当前状态 CURRENT_CONFIRMED 证据可信度 A 单位人员数量 NOT_PUBLIC 单位飞机数量 NOT_PUBLIC_OR_NOT_STABLE 最后核验 2026-06-23 “兵力档案”在本库中指单位层级、飞行要素、平台族、人员专业和保障链。除官方明确公布的历史或机构总量外,不用采购总数、联队总量或媒体估"}, {"path": "entities/units/air_force/1st_tactical_fighter_wing.md", "title": "空军第一战术战斗机联队", "section": "一、组织隶属与兵力结构", "snippet": "公开兵力结构 : 联队级;公开下辖/关联飞行单位包括第一、第三、第九作战队,另有第一修护补给大队、第一基地勤务大队和马公基地勤务队。 组织关系 : 关联单位 组织ID 关系说明 第一联队第一作战队 ORG-AF-W1-OPS-1 关联组织/支援或下级单位 第一联队第三作战队 ORG-AF-W1-OPS-3 关联组织/支援或下级单位 第一联队第九作战队 ORG-AF-W1-OLine truncated
|
||||
+276
@@ -0,0 +1,276 @@
|
||||
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>台湾飞行部队知识数据展示平台 v3</title><style>
|
||||
:root{
|
||||
--red:#b4232d;--red2:#d94a54;--red3:#fff1f2;--red4:#7e1620;
|
||||
--bg:#f4f6f8;--white:#fff;--text:#1e2329;--muted:#667085;
|
||||
--line:#e5e7eb;--soft:#f8fafc;--green:#14804a;--amber:#b4690e;
|
||||
--shadow:0 12px 36px rgba(31,41,55,.09);
|
||||
}
|
||||
*{box-sizing:border-box}
|
||||
html,body{margin:0;min-height:100%;font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",Arial,sans-serif;color:var(--text);background:var(--bg)}
|
||||
button,input,select{font:inherit}
|
||||
button{cursor:pointer}
|
||||
a{color:var(--red);text-decoration:none}
|
||||
.hidden{display:none!important}
|
||||
.app{min-height:100vh;display:flex;flex-direction:column}
|
||||
.header{height:76px;background:linear-gradient(120deg,var(--red4),var(--red));color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;box-shadow:0 5px 18px rgba(126,22,32,.22);position:sticky;top:0;z-index:50}
|
||||
.brand{display:flex;align-items:center;gap:14px}
|
||||
.brand-mark{width:45px;height:45px;border:2px solid rgba(255,255,255,.72);border-radius:13px;display:grid;place-items:center;font-weight:800;font-size:21px;background:rgba(255,255,255,.1)}
|
||||
.brand h1{font-size:21px;margin:0 0 4px;letter-spacing:.5px}
|
||||
.brand p{font-size:12px;margin:0;color:rgba(255,255,255,.78)}
|
||||
.header-actions{display:flex;align-items:center;gap:10px}
|
||||
.search{position:relative}
|
||||
.search input{width:330px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.13);color:#fff;border-radius:10px;padding:11px 42px 11px 14px;outline:none}
|
||||
.search input::placeholder{color:rgba(255,255,255,.72)}
|
||||
.search .icon{position:absolute;right:13px;top:10px;font-size:18px}
|
||||
.search-pop{position:absolute;right:0;top:48px;width:460px;max-height:460px;overflow:auto;background:#fff;color:var(--text);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:7px;z-index:120}
|
||||
.search-item{display:flex;gap:10px;padding:11px;border-radius:9px;border-bottom:1px dashed #eee}
|
||||
.search-item:hover{background:var(--red3)}
|
||||
.search-kind{min-width:58px;color:var(--red);font-size:12px;font-weight:700}
|
||||
.search-item strong{display:block;font-size:14px;margin-bottom:4px}
|
||||
.search-item small{color:var(--muted);line-height:1.45}
|
||||
.btn{border:0;border-radius:9px;padding:10px 15px;font-weight:700;transition:.18s}
|
||||
.btn.primary{background:var(--red);color:#fff}
|
||||
.btn.primary:hover{background:var(--red4)}
|
||||
.btn.white{background:#fff;color:var(--red)}
|
||||
.btn.ghost{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.25)}
|
||||
.btn.light{background:var(--red3);color:var(--red)}
|
||||
.btn.line{background:#fff;color:var(--red);border:1px solid #efb7bc}
|
||||
.btn.sm{padding:7px 11px;font-size:12px}
|
||||
.tabs{height:56px;background:#fff;display:flex;align-items:end;gap:2px;padding:0 24px;border-bottom:1px solid var(--line);position:sticky;top:76px;z-index:40;overflow-x:auto}
|
||||
.tab{border:0;background:transparent;color:#4b5563;font-weight:700;padding:17px 18px 14px;white-space:nowrap;border-bottom:3px solid transparent}
|
||||
.tab:hover{color:var(--red)}
|
||||
.tab.active{color:var(--red);border-bottom-color:var(--red)}
|
||||
.main{width:min(1540px,100%);margin:auto;padding:24px 28px 54px;flex:1}
|
||||
.page{display:none}
|
||||
.page.active{display:block}
|
||||
.page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:20px}
|
||||
.page-head h2{margin:0 0 7px;font-size:25px}
|
||||
.page-head p{margin:0;color:var(--muted);line-height:1.65}
|
||||
.page-actions{display:flex;gap:9px;flex-wrap:wrap}
|
||||
.stats{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
|
||||
.stat{background:#fff;border:1px solid var(--line);border-top:4px solid var(--red);border-radius:13px;padding:17px;box-shadow:0 5px 17px rgba(31,41,55,.04)}
|
||||
.stat .label{color:var(--muted);font-size:13px}
|
||||
.stat .num{font-size:29px;font-weight:850;margin:9px 0 3px}
|
||||
.stat .hint{font-size:12px;color:#98a2b3}
|
||||
.grid{display:grid;gap:15px}
|
||||
.grid.cols2{grid-template-columns:repeat(2,minmax(0,1fr))}
|
||||
.grid.cols3{grid-template-columns:repeat(3,minmax(0,1fr))}
|
||||
.grid.cols4{grid-template-columns:repeat(4,minmax(0,1fr))}
|
||||
.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 6px 22px rgba(31,41,55,.045);padding:18px}
|
||||
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
|
||||
.panel h3,.panel h4{margin:0}
|
||||
.panel-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
|
||||
.section-title{display:flex;justify-content:space-between;align-items:end;margin:25px 0 13px}
|
||||
.section-title h3{font-size:18px;margin:0}
|
||||
.section-title span{color:var(--muted);font-size:12px}
|
||||
.entry{background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px;min-height:150px;position:relative;overflow:hidden;box-shadow:0 5px 18px rgba(31,41,55,.045)}
|
||||
.entry:before{content:"";position:absolute;right:-25px;top:-35px;width:110px;height:110px;border-radius:50%;background:var(--red3)}
|
||||
.entry .letter{position:relative;width:39px;height:39px;border-radius:10px;background:var(--red);color:#fff;display:grid;place-items:center;font-weight:800;margin-bottom:16px}
|
||||
.entry strong{font-size:16px}
|
||||
.entry p{color:var(--muted);line-height:1.65;font-size:13px}
|
||||
.entry:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#efb7bc}
|
||||
.notice{background:linear-gradient(120deg,#fff8f8,#fff);border:1px solid #f2c6ca;border-left:4px solid var(--red);border-radius:10px;padding:14px;line-height:1.7;color:#5e3034}
|
||||
.badge,.chip{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700;margin:2px 4px 2px 0}
|
||||
.badge.red,.chip.red{background:var(--red3);color:var(--red)}
|
||||
.badge.green{background:#e9f8ef;color:var(--green)}
|
||||
.badge.amber{background:#fff5e6;color:var(--amber)}
|
||||
.badge.gray{background:#f1f3f5;color:#667085}
|
||||
.bar-row{display:grid;grid-template-columns:90px 1fr 35px;align-items:center;gap:10px;margin:14px 0;font-size:13px}
|
||||
.bar-track{height:9px;border-radius:8px;background:#f0f1f3;overflow:hidden}
|
||||
.bar-fill{height:100%;background:linear-gradient(90deg,var(--red),var(--red2));border-radius:8px}
|
||||
.unit-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px;display:flex;flex-direction:column;min-height:245px;box-shadow:0 5px 18px rgba(31,41,55,.04)}
|
||||
.unit-card:hover{border-color:#e8a2a8;box-shadow:var(--shadow);transform:translateY(-2px)}
|
||||
.unit-card .top{display:flex;justify-content:space-between;gap:12px}
|
||||
.unit-card h4{font-size:16px;margin:0 0 5px}
|
||||
.unit-card .sub{color:var(--muted);font-size:12px}
|
||||
.unit-card p{color:#555f6d;line-height:1.65;font-size:13px;flex:1}
|
||||
.unit-card .foot{display:flex;justify-content:space-between;align-items:center;margin-top:13px}
|
||||
.filters{display:grid;grid-template-columns:1.4fr repeat(4,1fr) auto;gap:10px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;margin-bottom:15px}
|
||||
.input,.select{width:100%;border:1px solid #d8dde4;border-radius:9px;padding:10px 11px;background:#fff;outline:none}
|
||||
.input:focus,.select:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(180,35,45,.08)}
|
||||
.view-switch{display:flex;gap:5px;background:#f5f6f8;padding:4px;border-radius:9px}
|
||||
.view-switch button{border:0;background:transparent;padding:7px 10px;border-radius:7px;color:#667085}
|
||||
.view-switch button.active{background:#fff;color:var(--red);box-shadow:0 2px 8px rgba(0,0,0,.07)}
|
||||
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
|
||||
table{width:100%;border-collapse:collapse;min-width:900px}
|
||||
th{position:sticky;top:0;background:#fff5f5;color:#6e1e24;text-align:left;font-size:13px;padding:12px;border-bottom:1px solid #f1c8cc;z-index:2}
|
||||
td{font-size:13px;padding:12px;border-bottom:1px solid #edf0f2;vertical-align:top;line-height:1.55}
|
||||
tr:hover td{background:#fffafa}
|
||||
.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:16px}
|
||||
.org-layout{display:grid;grid-template-columns:230px minmax(0,1fr) 305px;gap:15px}
|
||||
.side-nav,.side-info{background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px;height:max-content;position:sticky;top:151px}
|
||||
.side-nav button{width:100%;border:0;background:#fff;text-align:left;padding:11px;border-radius:8px;color:#475467;font-weight:700}
|
||||
.side-nav button.active,.side-nav button:hover{background:var(--red3);color:var(--red)}
|
||||
.org-canvas{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:auto;min-height:610px;padding:22px}
|
||||
.org-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:18px}
|
||||
.zoom{display:flex;gap:5px}
|
||||
.tree{--scale:1;transform:scale(var(--scale));transform-origin:top center;min-width:980px;padding:10px 35px 50px}
|
||||
.tree ul{padding-top:24px;position:relative;display:flex;justify-content:center}
|
||||
.tree li{list-style:none;text-align:center;position:relative;padding:24px 7px 0}
|
||||
.tree li:before,.tree li:after{content:"";position:absolute;top:0;width:50%;height:24px;border-top:1px solid #d8a5a9}
|
||||
.tree li:before{right:50%;border-right:1px solid #d8a5a9}
|
||||
.tree li:after{left:50%;border-left:1px solid #d8a5a9}
|
||||
.tree li:only-child:before,.tree li:only-child:after{display:none}
|
||||
.tree li:first-child:before,.tree li:last-child:after{border:0}
|
||||
.tree li:last-child:before{border-radius:0 7px 0 0}
|
||||
.tree li:first-child:after{border-radius:7px 0 0 0}
|
||||
.tree ul ul:before{content:"";position:absolute;top:0;left:50%;height:24px;border-left:1px solid #d8a5a9}
|
||||
.org-node{width:155px;min-height:62px;padding:10px 8px;border:1px solid #e4aab0;background:#fff;border-radius:10px;display:inline-flex;flex-direction:column;justify-content:center;box-shadow:0 4px 12px rgba(31,41,55,.055)}
|
||||
.org-node.root{background:var(--red);color:#fff;border-color:var(--red)}
|
||||
.org-node.branch{background:#fff2f3;color:var(--red4);font-weight:800}
|
||||
.org-node:hover{box-shadow:0 9px 23px rgba(180,35,45,.15);transform:translateY(-2px)}
|
||||
.org-node small{font-size:10px;margin-top:5px;color:#8b8f99}
|
||||
.org-node.root small{color:rgba(255,255,255,.75)}
|
||||
.kv{display:grid;grid-template-columns:86px 1fr;gap:9px;padding:10px 0;border-bottom:1px dashed #e7e8eb;font-size:13px}
|
||||
.kv .k{color:var(--muted)}
|
||||
.kv .v{font-weight:650;line-height:1.55}
|
||||
.equipment-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:15px}
|
||||
.category-list button{width:100%;display:flex;justify-content:space-between;border:0;background:#fff;padding:11px;border-radius:8px;margin:3px 0;color:#475467}
|
||||
.category-list button.active,.category-list button:hover{background:var(--red3);color:var(--red);font-weight:700}
|
||||
.equip-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px;min-height:190px;display:flex;flex-direction:column}
|
||||
.equip-card h4{margin:0 0 5px}
|
||||
.equip-card p{font-size:13px;color:var(--muted);line-height:1.6;flex:1}
|
||||
.flow{display:flex;align-items:stretch;gap:9px;overflow:auto;padding:5px 0 15px}
|
||||
.flow-step{min-width:150px;background:#fff;border:1px solid #efb9be;border-radius:12px;padding:14px;position:relative}
|
||||
.flow-step:not(:last-child):after{content:"›";position:absolute;right:-10px;top:40%;font-size:25px;color:var(--red)}
|
||||
.flow-step .no{width:26px;height:26px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800}
|
||||
.flow-step h4{margin:10px 0 5px}
|
||||
.flow-step p{font-size:12px;color:var(--muted);line-height:1.55}
|
||||
.lane{display:grid;grid-template-columns:140px 1fr;gap:12px;align-items:start;margin-bottom:12px}
|
||||
.lane-title{background:var(--red);color:#fff;border-radius:10px;padding:14px;font-weight:800}
|
||||
.lane-items{display:flex;gap:9px;flex-wrap:wrap}
|
||||
.lane-item{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;min-width:150px;flex:1}
|
||||
.industry-stack{display:grid;gap:12px}
|
||||
.industry-layer{background:#fff;border:1px solid var(--line);border-left:5px solid var(--red);border-radius:12px;padding:15px;display:grid;grid-template-columns:190px 1fr;gap:14px}
|
||||
.risk-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px}
|
||||
.risk-card h4{margin:0 0 8px;color:var(--red4)}
|
||||
.timeline{position:relative;padding-left:27px}
|
||||
.timeline:before{content:"";position:absolute;left:8px;top:7px;bottom:5px;width:2px;background:#e6b3b8}
|
||||
.event{position:relative;background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px;margin-bottom:12px}
|
||||
.event:before{content:"";position:absolute;left:-25px;top:17px;width:12px;height:12px;border-radius:50%;background:var(--red);border:3px solid #ffd8dc}
|
||||
.event .date{font-size:12px;color:var(--red);font-weight:800}
|
||||
.event h4{margin:5px 0}
|
||||
.event p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
|
||||
.source-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:15px}
|
||||
.source-card{border:1px solid var(--line);background:#fff;border-radius:11px;padding:14px;margin-bottom:10px}
|
||||
.source-card:hover{border-color:#e5a4aa;background:#fffafa}
|
||||
.source-card h4{margin:0 0 7px}
|
||||
.source-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
|
||||
.empty{padding:40px;text-align:center;color:var(--muted)}
|
||||
.modal,.drawer,.detail,.query-panel{position:fixed;inset:0}.detail{z-index:200}.drawer{z-index:320}.modal{z-index:420}.query-panel{z-index:500}
|
||||
.backdrop{position:absolute;inset:0;background:rgba(20,24,31,.52);backdrop-filter:blur(2px)}
|
||||
.modal-card{position:relative;width:min(820px,calc(100% - 34px));max-height:86vh;overflow:auto;margin:7vh auto;background:#fff;border-radius:16px;box-shadow:0 24px 80px rgba(0,0,0,.24);padding:26px}
|
||||
.close{position:absolute;right:15px;top:14px;border:0;width:34px;height:34px;border-radius:9px;background:#f2f4f7;font-size:21px;color:#667085}
|
||||
.drawer-card{position:absolute;right:0;top:0;height:100%;width:min(650px,92vw);background:#fff;box-shadow:-12px 0 45px rgba(0,0,0,.2);overflow:auto;padding:68px 25px 30px}
|
||||
.drawer-head{position:absolute;right:0;top:0;width:min(650px,92vw);height:58px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 20px;z-index:3}
|
||||
.detail{background:#f4f6f8;overflow:auto}
|
||||
.detail-top{height:72px;background:var(--red4);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 25px;position:sticky;top:0;z-index:3}
|
||||
.detail-body{width:min(1320px,100%);margin:auto;padding:24px}
|
||||
.detail-hero{background:linear-gradient(120deg,var(--red),#d84955);color:#fff;border-radius:16px;padding:25px;display:grid;grid-template-columns:1fr 330px;gap:20px;box-shadow:var(--shadow)}
|
||||
.detail-hero h2{font-size:27px;margin:0 0 9px}
|
||||
.detail-hero p{line-height:1.7;color:rgba(255,255,255,.86)}
|
||||
.detail-summary{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);border-radius:12px;padding:13px}
|
||||
.detail-nav{display:flex;gap:4px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px;margin:15px 0;position:sticky;top:84px;z-index:2;overflow:auto}
|
||||
.detail-nav button{border:0;background:transparent;padding:10px 14px;border-radius:8px;font-weight:700;color:#667085;white-space:nowrap}
|
||||
.detail-nav button.active{background:var(--red3);color:var(--red)}
|
||||
.detail-section{scroll-margin-top:150px;margin-bottom:15px}
|
||||
.detail-section h3{border-left:4px solid var(--red);padding-left:10px}
|
||||
.rich{line-height:1.82;color:#475467}
|
||||
.query-card{position:relative;width:min(1180px,calc(100% - 30px));height:88vh;margin:6vh auto;background:#fff;border-radius:16px;box-shadow:0 24px 80px rgba(0,0,0,.24);display:grid;grid-template-columns:310px 1fr;overflow:hidden}
|
||||
.query-form{background:#fff8f8;border-right:1px solid #f2c9cd;padding:25px}
|
||||
.query-result{padding:25px;overflow:auto}
|
||||
.query-row{border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:9px}
|
||||
.query-row:hover{border-color:#e4a3aa;background:#fffafa}
|
||||
.json{white-space:pre-wrap;word-break:break-word;background:#1f242b;color:#f5f7fa;padding:16px;border-radius:10px;font:12px/1.65 Consolas,monospace}
|
||||
.footer{background:#fff;border-top:1px solid var(--line);color:#777f8b;padding:16px 28px;display:flex;justify-content:space-between;font-size:12px}
|
||||
.mt{margin-top:15px}.mb{margin-bottom:15px}
|
||||
@media(max-width:1180px){.stats{grid-template-columns:repeat(3,1fr)}.org-layout{grid-template-columns:200px 1fr}.side-info{display:none}.grid.cols4{grid-template-columns:repeat(2,1fr)}}
|
||||
@media(max-width:820px){.header{height:auto;padding:13px 16px;align-items:flex-start}.brand p{display:none}.header-actions{display:none}.tabs{top:69px;padding-left:8px}.main{padding:17px 12px 45px}.stats{grid-template-columns:repeat(2,1fr)}.grid.cols2,.grid.cols3,.grid.cols4{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr}.org-layout,.equipment-layout,.source-layout{grid-template-columns:1fr}.side-nav{position:static}.org-canvas{min-height:500px}.detail-hero{grid-template-columns:1fr}.query-card{grid-template-columns:1fr;height:94vh;margin:3vh auto}.query-form{border-right:0;border-bottom:1px solid #f2c9cd}.footer{display:block;line-height:1.8}}
|
||||
|
||||
.knowledge-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:16px}
|
||||
.knowledge-side{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;height:max-content;position:sticky;top:151px}
|
||||
.knowledge-side button{width:100%;border:0;background:#fff;text-align:left;padding:10px 11px;border-radius:8px;color:#475467;display:flex;justify-content:space-between;gap:8px}
|
||||
.knowledge-side button:hover,.knowledge-side button.active{background:var(--red3);color:var(--red);font-weight:750}
|
||||
.knowledge-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;flex-direction:column;min-height:220px;box-shadow:0 5px 18px rgba(31,41,55,.04)}
|
||||
.knowledge-card:hover{border-color:#e5a3a9;box-shadow:var(--shadow);transform:translateY(-2px)}
|
||||
.knowledge-card h4{margin:0 0 8px;font-size:16px}.knowledge-card p{color:var(--muted);line-height:1.7;font-size:13px;flex:1}
|
||||
.knowledge-meta{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.knowledge-path{font:11px Consolas,monospace;color:#8b929d;word-break:break-all;margin-top:8px}
|
||||
.reader-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:17px;align-items:start}
|
||||
.reader-toc{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;position:sticky;top:95px;max-height:calc(100vh - 120px);overflow:auto}
|
||||
.reader-toc h4{margin:4px 8px 10px}.reader-toc button{width:100%;border:0;background:#fff;text-align:left;padding:9px 10px;border-radius:7px;color:#596273;font-size:13px;line-height:1.45}
|
||||
.reader-toc button:hover,.reader-toc button.active{background:var(--red3);color:var(--red);font-weight:750}
|
||||
.reader-main{min-width:0}.md-section{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px 25px;margin-bottom:15px;scroll-margin-top:95px;box-shadow:0 4px 16px rgba(31,41,55,.035)}
|
||||
.md-section>h2{margin:0 -25px 19px;padding:0 25px 14px;border-bottom:1px solid #eee;font-size:20px;color:#6f1820}
|
||||
.md-body{font-size:14px;line-height:1.92;color:#394150}.md-body h1,.md-body h2{color:#741923}.md-body h3{margin-top:25px;color:#8f2029;font-size:17px}.md-body h4{color:#333b46}
|
||||
.md-body p{margin:10px 0}.md-body ul,.md-body ol{padding-left:25px}.md-body li{margin:5px 0}.md-body blockquote{margin:14px 0;padding:12px 15px;border-left:4px solid var(--red);background:#fff6f7;color:#5c3437;border-radius:0 8px 8px 0}
|
||||
.md-body table{min-width:0;width:100%;display:table;margin:15px 0;border:1px solid var(--line);border-radius:9px;overflow:hidden}.md-body th{position:static;background:#fff1f2;color:#701920}.md-body td,.md-body th{border:1px solid #eceff2;padding:9px 11px}
|
||||
.md-body pre{background:#20252c;color:#f5f6f7;border-radius:10px;padding:15px;overflow:auto;line-height:1.65}.md-body code{background:#f1f2f4;border-radius:5px;padding:2px 5px;font-family:Consolas,monospace;color:#8d2630}.md-body pre code{background:transparent;color:inherit;padding:0}
|
||||
.md-body hr{border:0;border-top:1px solid #eceef1;margin:22px 0}.md-body strong{color:#252a31}.inline-ref,.inline-doc{border:0;border-radius:5px;background:#fff0f1;color:var(--red);padding:2px 6px;font:inherit;cursor:pointer}.inline-doc{font-family:Consolas,monospace;word-break:break-all}
|
||||
.record-hero{background:linear-gradient(120deg,#fff5f6,#fff);border:1px solid #efc5c9;border-left:5px solid var(--red);border-radius:13px;padding:18px;margin:12px 0 17px}.record-hero h2{margin:0 0 8px}.record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.record-group{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px}.record-group h3{margin:0 0 12px;color:#751b23}.record-field{display:grid;grid-template-columns:125px 1fr;gap:10px;padding:10px 0;border-bottom:1px dashed #e7e9ed;font-size:13px;line-height:1.65}.record-field:last-child{border-bottom:0}.record-field .label{color:#737b88}.record-field .value{font-weight:600;word-break:break-word}
|
||||
.related-docs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.related-doc{border:1px solid #ecd1d4;background:#fffafa;border-radius:10px;padding:12px;cursor:pointer}.related-doc:hover{border-color:var(--red)}.related-doc strong{display:block;margin-bottom:6px;color:#741b23}.related-doc p{margin:0;color:#69717e;font-size:12px;line-height:1.55}
|
||||
.field-list{display:grid;gap:9px}.field-item{border:1px solid var(--line);border-radius:10px;padding:11px;background:#fff}.field-item strong{display:block;color:#7a1e26;margin-bottom:5px}.human-table{width:100%;min-width:0}.human-table th{position:static;width:170px}.technical-details{margin-top:15px;border:1px solid #e1e4e8;border-radius:10px;background:#fafbfc;padding:10px 13px}.technical-details summary{cursor:pointer;color:#666f7c;font-weight:700}.technical-details table{margin-top:10px}
|
||||
.knowledge-preview{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px;margin-top:14px}.knowledge-preview h3{margin-top:0}.knowledge-preview .md-body{max-height:470px;overflow:auto;padding-right:6px}
|
||||
.source-ref-btn{display:inline-flex;align-items:center;gap:5px;border:1px solid #e6aeb3;border-radius:7px;background:#fff4f5;color:var(--red);padding:3px 8px;margin:1px 3px;font:inherit;font-size:12px;font-weight:700;vertical-align:middle}.source-ref-btn:hover{background:var(--red);color:#fff}.source-ref-btn:before{content:"源";display:grid;place-items:center;width:18px;height:18px;border-radius:5px;background:rgba(180,35,45,.12);font-size:10px}.source-ref-btn:hover:before{background:rgba(255,255,255,.2)}
|
||||
.missing-source{border-style:dashed;color:#9a6700;background:#fff8e6}.missing-source:before{content:"待";background:#fff0c2}
|
||||
.org-ref-btn{display:inline-flex;align-items:center;border:1px solid #d7dce2;border-radius:7px;background:#f7f8fa;color:#344054;padding:3px 8px;margin:1px 3px;font:inherit;font-size:12px;font-weight:700}.org-ref-btn:hover{border-color:var(--red);color:var(--red);background:#fff5f6}
|
||||
.unit-ref-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:5px}.unit-ref-card{border:1px solid #ead0d3;border-radius:10px;background:#fffafa;padding:10px 11px;text-align:left;color:#303640;min-width:0}.unit-ref-card:hover{border-color:var(--red);box-shadow:0 5px 15px rgba(180,35,45,.1)}.unit-ref-card strong{display:block;color:#771b24;margin-bottom:4px;white-space:normal}.unit-ref-card small{display:block;color:#747c89;line-height:1.45;white-space:normal}.unit-ref-card.static{cursor:default}.unit-ref-card.static:hover{box-shadow:none;border-color:#ead0d3}
|
||||
.object-value-list{display:grid;gap:7px}.object-value-item{border:1px solid #e2e5e9;border-radius:8px;background:#fafbfc;padding:8px 10px}.object-value-item strong{display:block;color:#771b24;margin-bottom:3px}.object-value-item span{display:block;color:#69717e;font-size:12px;line-height:1.5}
|
||||
@media(max-width:760px){.unit-ref-grid{grid-template-columns:1fr}}
|
||||
@media(max-width:900px){.knowledge-layout,.reader-layout{grid-template-columns:1fr}.knowledge-side,.reader-toc{position:static;max-height:none}.record-grid,.related-docs{grid-template-columns:1fr}.md-section{padding:17px}.md-section>h2{margin-left:-17px;margin-right:-17px;padding-left:17px;padding-right:17px}}
|
||||
|
||||
.offline-source-panel{border:1px solid #efc1c5;background:#fffafa;border-radius:13px;padding:16px;margin:14px 0}
|
||||
.offline-source-panel h3{margin:0 0 10px;color:var(--red4)}
|
||||
.offline-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 10px;background:#f2f4f7;color:#475467;font-size:12px;font-weight:700}
|
||||
.offline-status.available{background:#e9f8ef;color:#14804a}.offline-status.context{background:#fff3e8;color:#a55a08}
|
||||
.citation-context{border:1px solid var(--line);border-left:4px solid var(--red);background:#fff;border-radius:10px;padding:13px;margin:10px 0;cursor:pointer}
|
||||
.citation-context:hover{border-color:#dfa0a6;background:#fff8f8}.citation-context h4{margin:0 0 5px}.citation-context p{margin:0;color:#667085;line-height:1.7;font-size:13px}
|
||||
.offline-link-disabled{color:#667085;border-bottom:1px dotted #98a2b3;cursor:default}.offline-reference-note{font-size:12px;color:#667085;margin-top:6px}
|
||||
.structured-mention{display:grid;grid-template-columns:92px 1fr;gap:10px;border:1px solid var(--line);border-radius:10px;padding:12px;margin:9px 0;background:#fff}
|
||||
.structured-mention .dataset{color:var(--red);font-weight:800;font-size:12px}.structured-mention strong{display:block;margin-bottom:4px}.structured-mention p{margin:0;color:#667085;font-size:13px;line-height:1.55}
|
||||
|
||||
/* ── 页面 JSON 编辑器 ── */
|
||||
.editor-fab{position:fixed;right:18px;bottom:26px;z-index:60;background:var(--red);color:#fff;border:0;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(126,22,32,.35)}.editor-fab:hover{background:var(--red4);transform:rotate(30deg)}.editor-fab svg{width:22px;height:22px;display:block}
|
||||
.editor-overlay{z-index:80;background:rgba(16,24,40,.5)}
|
||||
.editor-modal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1080px,94vw);height:min(680px,88vh);background:var(--white);border-radius:14px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 60px rgba(16,24,40,.35)}
|
||||
.editor-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}.editor-head h2{margin:0;font-size:16px;flex:1}.editor-head .editor-note{font-size:12px;color:var(--muted);margin-right:8px}
|
||||
.editor-body{display:flex;flex:1;min-height:0}
|
||||
.editor-tabs{width:210px;border-right:1px solid var(--line);overflow:auto;padding:10px 8px;display:flex;flex-direction:column;gap:4px}
|
||||
.editor-tab{border:0;background:transparent;text-align:left;padding:9px 11px;border-radius:8px;cursor:pointer;color:var(--muted)}.editor-tab b{display:block;font-size:13px;color:var(--text)}.editor-tab small{font-size:10px;opacity:.75}.editor-tab:hover{background:var(--red3)}.editor-tab.active{background:var(--red3)}.editor-tab.active b{color:var(--red)}
|
||||
.editor-pane{flex:1;display:flex;flex-direction:column;min-width:0;padding:14px 16px;gap:10px}
|
||||
.editor-title-row{display:flex;align-items:center;justify-content:space-between}.editor-title-row b{font-size:14px}
|
||||
.json-status{font-size:12px;padding:3px 10px;border-radius:999px}.json-status.valid{background:#e8f5ef;color:var(--green)}.json-status.invalid{background:var(--red3);color:var(--red)}
|
||||
.json-editor{flex:1;width:100%;resize:none;border:1px solid var(--line);border-radius:10px;padding:13px;font:13px/1.6 ui-monospace,Consolas,"Courier New",monospace;color:var(--text);background:var(--soft);outline:0;tab-size:2}.json-editor:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(180,35,45,.1)}
|
||||
.editor-actions{display:flex;gap:8px;flex-wrap:wrap}
|
||||
.editor-hint{margin:0;font-size:11px;color:var(--muted)}
|
||||
@media(max-width:720px){.editor-modal{width:96vw;height:92vh}.editor-body{flex-direction:column}.editor-tabs{width:auto;flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line)}.editor-tab{white-space:nowrap}}
|
||||
</style></head><body>
|
||||
<div class="app">
|
||||
<header class="header"><div class="brand"><div class="brand-mark">航</div><div><h1>台湾飞行部队知识数据展示平台</h1><p>结构化数据检索 + Markdown全文 + 可点击来源与单位关系</p></div></div><div class="header-actions"><div class="search"><input id="globalSearch" placeholder="查询单位、装备、专题正文或来源"><span class="icon">⌕</span><div id="searchPop" class="search-pop hidden"></div></div><button class="btn white" data-action="open-query">交互查询</button><button class="btn ghost" data-action="reset">重置</button></div></header>
|
||||
<nav class="tabs" id="tabs"><button class="tab active" data-tab="overview">总览</button><button class="tab" data-tab="organization">组织机构</button><button class="tab" data-tab="units">单位与兵力</button><button class="tab" data-tab="equipment">装备体系</button><button class="tab" data-tab="training">训练与保障</button><button class="tab" data-tab="industry">工业链与外部依赖</button><button class="tab" data-tab="safety">飞安与风险治理</button><button class="tab" data-tab="timeline">时间线与来源</button><button class="tab" data-tab="knowledge">知识专题库</button></nav>
|
||||
<main class="main"><section id="page-overview" class="page active"></section><section id="page-organization" class="page"></section><section id="page-units" class="page"></section><section id="page-equipment" class="page"></section><section id="page-training" class="page"></section><section id="page-industry" class="page"></section><section id="page-safety" class="page"></section><section id="page-timeline" class="page"></section><section id="page-knowledge" class="page"></section></main>
|
||||
<footer class="footer"><span>单文件离线原型 v3.1 · Markdown全文与来源链接修复版</span><span>公开资料边界:不展示实时战备、人员员额、可飞数量、弹药库存和内部设施</span></footer></div>
|
||||
<div id="modal" class="modal hidden"><div class="backdrop" data-action="close-modal"></div><div class="modal-card"><button class="close" data-action="close-modal">×</button><div id="modalBody"></div></div></div>
|
||||
<div id="drawer" class="drawer hidden"><div class="backdrop" data-action="close-drawer"></div><div class="drawer-head"><strong id="drawerTitle">详情</strong><button class="close" style="position:static" data-action="close-drawer">×</button></div><div class="drawer-card" id="drawerBody"></div></div>
|
||||
<div id="detail" class="detail hidden"></div>
|
||||
<div id="queryPanel" class="query-panel hidden"><div class="backdrop" data-action="close-query"></div><div class="query-card"><button class="close" data-action="close-query">×</button><div class="query-form" id="queryForm"></div><div class="query-result" id="queryResult"></div></div></div>
|
||||
<button type="button" id="openEditor" class="editor-fab" aria-label="JSON 编辑器" title="页面 JSON 编辑器"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg></button>
|
||||
<div id="editorOverlay" class="modal editor-overlay hidden"><div class="editor-modal">
|
||||
<header class="editor-head"><h2>页面 JSON 编辑器</h2><span class="editor-note">按模块编辑,应用后即时重渲染;修改保存在浏览器本地,不回写服务器</span><button type="button" class="close" id="closeEditor">关闭</button></header>
|
||||
<div class="editor-body">
|
||||
<nav id="editorTabs" class="editor-tabs"></nav>
|
||||
<div class="editor-pane">
|
||||
<div class="editor-title-row"><b id="editorModuleTitle"></b><span id="jsonStatus" class="json-status valid">JSON 有效</span></div>
|
||||
<textarea id="jsonEditor" class="json-editor" spellcheck="false" aria-label="当前模块 JSON"></textarea>
|
||||
<div class="editor-actions"><button type="button" class="btn primary" id="applyJson">应用到页面</button><button type="button" id="resetJson">恢复默认数据</button><button type="button" id="copyJson">复制完整 JSON</button><button type="button" id="downloadJson">下载 JSON</button></div>
|
||||
<p class="editor-hint">模块 = 页面数据(DATA)的顶层键,另附「系统设置」编辑 MANIFEST;沙箱预览无法使用本地缓存时,修改仅当次会话有效。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<script type="application/json" id="structured-data">__PAGE_DATA__</script>
|
||||
<script type="application/json" id="structured-knowledge">__PAGE_KNOWLEDGE__</script>
|
||||
<script type="application/json" id="structured-source-local">__PAGE_SOURCE_LOCAL__</script>
|
||||
<script type="application/json" id="structured-manifest">__PAGE_MANIFEST__</script>
|
||||
<script type="application/json" id="structured-fields">__PAGE_FIELDS__</script>
|
||||
<script>__PAGE_RUNTIME__</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user