风险预分析和风险检查表插件完成

This commit is contained in:
2026-09-10 13:18:19 +08:00
parent a5cca53127
commit bb41d5a849
9 changed files with 643 additions and 162 deletions
+4 -1
View File
@@ -16,6 +16,8 @@ const uploadLoading = ref<boolean>(false);
const uploadFileRef = ref<any>(null);
const isUploaded = ref<boolean>(false);
const editing = ref<any>(null);
// 是否是ai生成
const isAiGenerated = ref<boolean>(false);
const aiFail = (e: any) => {
if (e instanceof AiError) window.$message?.warning(`AI 分析失败:${e.message},可手动填写`);
@@ -65,6 +67,7 @@ const onRegenerate = async () => {
})),
};
});
isAiGenerated.value = true;
window.$message?.success("PSSR 检查清单已由 AI 生成,点击条目可直接编辑");
} catch (e: any) {
aiFail(e);
@@ -118,7 +121,7 @@ defineExpose({list, onRegenerate})
<Icon icon="tabler:clipboard-check" class="size-16px text-violet-500" />
PSSR 投用前安全检查内容
</span>
<span class="inline-flex items-center gap-1 rounded-full border border-violet-200 bg-violet-100 px-2 py-0.5 text-xs font-medium text-violet-700">
<span v-if="isAiGenerated" class="inline-flex items-center gap-1 rounded-full border border-violet-200 bg-violet-100 px-2 py-0.5 text-xs font-medium text-violet-700">
AI 生成 · 需人工确认
</span>
<span class="flex items-center gap-2">