风险检查表分析工具完成

This commit is contained in:
2026-08-26 16:34:10 +08:00
parent b51de262b3
commit 26192167f3
5 changed files with 119 additions and 6 deletions
+7 -3
View File
@@ -11,6 +11,7 @@ import Ed from "./modules/Ed.vue";
import Hazop from "./modules/hazop.vue";
import Jsa from "./modules/jsa.vue";
import Scl from "./modules/scl.vue";
import RiskCheck from "./modules/riskCheck.vue";
const themeStore = useThemeStore();
@@ -109,7 +110,7 @@ const formGen = ref<string>("idle");
const materialsText = ref("");
const updateDocs = ref<string[]>([]);
const disciplines = ref<string[]>([]);
const tools = ref<string[]>(["HAZOP","JSA", "SCL", "通用检查表"]);
const tools = ref<string[]>(["HAZOP","JSA", "SCL", "RISK_CHECK"]);
const genForm = () => {
if (formGen.value === "generating") return;
formGen.value = "generating";
@@ -294,7 +295,7 @@ const RISK_TOOLS_FORM = [
{ key: "HAZOP", label: "HAZOP" },
{ key: "JSA", label: "JSA" },
{ key: "SCL", label: "设备SCL" },
{ key: "通用检查表", label: "风险检查表" },
{ key: "RISK_CHECK", label: "风险检查表" },
];
const recommendTools = () => {
const lv = form.value?.level === "重要" ? "重要" : "一般";
@@ -394,7 +395,7 @@ const TOOL_CARDS = [
{ key: "HAZOP" as const, name: "HAZOP 分析", desc: "节点-偏离结构化分析:原因 / 后果 / LS 风险矩阵 / 安全措施" },
{ key: "JSA" as const, name: "JSA 分析", desc: "作业步骤分解:危害因素识别与 LS 风险分级管控" },
{ key: "SCL" as const, name: "设备 SCL", desc: "设备 / 管理检查项目对照标准逐项核查" },
{ key: "通用检查表" as const, name: "风险检查表", desc: "变更通用检查项:是 / 否 / 不涉及逐项判定,输出风险描述与管控措施" },
{ key: "RISK_CHECK" as const, name: "风险检查表", desc: "变更通用检查项:是 / 否 / 不涉及逐项判定,输出风险描述与管控措施" },
];
const pluginDone = ref<Record<string, number>>({});
const riskRecords = ref<any>([]);
@@ -1656,6 +1657,9 @@ const onBack = () => {
<template v-else-if="currentPlugin === 'SCL'">
<Scl @back="onBack" @export="exportAll" />
</template>
<template v-else-if="currentPlugin === 'RISK_CHECK'">
<RiskCheck @back="onBack" />
</template>
</NDrawerContent>
</NDrawer>
</NCard>