From 59d29e744484d1c922cf86f4190f6b6cb4f4549d Mon Sep 17 00:00:00 2001 From: empty Date: Thu, 8 Jan 2026 10:13:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=85=9A=E6=94=BF?= =?UTF-8?q?=E5=85=AC=E6=96=87=E7=B1=BB=E5=86=99=E4=BD=9C=E8=8C=83=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加'民主生活会对照检查'范式 - 添加'政府工作报告'范式 - 更新范式检测逻辑支持新类型 - 同步更新MainContent组件范式定义 --- src/components/AnalysisPanel.vue | 28 ++++++++++++++++++++++++++-- src/components/MainContent.vue | 18 ++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/src/components/AnalysisPanel.vue b/src/components/AnalysisPanel.vue index 85205dd..ee21d64 100644 --- a/src/components/AnalysisPanel.vue +++ b/src/components/AnalysisPanel.vue @@ -158,6 +158,26 @@ const paradigms = [ tagClass: 'bg-orange-900/30 text-orange-300', prompt: '请按照学术论文的范式写作,包含:1) 摘要 2) 引言 3) 文献综述 4) 研究方法论 5) 结果与讨论 6) 结论', constraints: ['引用权威来源', '严禁被动语态'] + }, + { + type: 'party-review', + name: '民主生活会对照检查', + icon: '🏛️', + description: '适用于党政机关民主生活会个人对照检查材料', + tags: ['开篇引言', '对照查摆', '根源剖析', '整改措施', '表态'], + tagClass: 'bg-red-900/30 text-red-300', + prompt: '请按照民主生活会对照检查材料的范式写作,包含:1) 开篇说明会议主题和学习依据 2) 对照查摆存在的主要问题(按要求逐条分析) 3) 问题产生的根源剖析 4) 下一步整改措施 5) 结尾总结表态。语言要规范使用政治术语,体现自我批评精神,问题剖析要深入,整改措施要具体可行。', + constraints: ['总分总结构', '引用权威来源'] + }, + { + type: 'gov-report', + name: '政府工作报告', + icon: '📋', + description: '适用于政府工作总结、述职报告', + tags: ['工作回顾', '成绩总结', '问题分析', '下步计划'], + tagClass: 'bg-cyan-900/30 text-cyan-300', + prompt: '请按照政府工作报告的范式写作,包含:1) 过去工作回顾 2) 主要成绩和亮点 3) 存在问题和不足 4) 下一步工作计划和目标。语言要严谨规范,数据要准确,措施要具体。', + constraints: ['Markdown格式', '数据支撑', '总分总结构'] } ] @@ -226,9 +246,13 @@ const analyzeArticle = async () => { const detectParadigm = (analysis) => { const text = analysis.toLowerCase() - if (text.includes('技术') || text.includes('代码') || text.includes('问题')) { + if (text.includes('民主生活会') || text.includes('对照检查') || text.includes('整改') || text.includes('党性')) { + return paradigms[4] // 民主生活会对照检查 + } else if (text.includes('政府') || text.includes('工作报告') || text.includes('述职')) { + return paradigms[5] // 政府工作报告 + } else if (text.includes('技术') || text.includes('代码') || text.includes('编程')) { return paradigms[0] // 技术博客 - } else if (text.includes('商业') || text.includes('市场') || text.includes('数据')) { + } else if (text.includes('商业') || text.includes('市场') || text.includes('数据分析')) { return paradigms[1] // 商业分析 } else if (text.includes('产品') || text.includes('营销') || text.includes('用户')) { return paradigms[2] // 产品文案 diff --git a/src/components/MainContent.vue b/src/components/MainContent.vue index b365fcc..cfaec5b 100644 --- a/src/components/MainContent.vue +++ b/src/components/MainContent.vue @@ -182,6 +182,24 @@ const paradigms = [ tagClass: 'bg-orange-900/30 text-orange-300', prompt: '请按照学术论文的范式写作,包含:1) 摘要 2) 引言 3) 文献综述 4) 研究方法论 5) 结果与讨论 6) 结论', constraints: ['引用权威来源', '严禁被动语态'] + }, + { + type: 'party-review', + name: '民主生活会对照检查', + description: '适用于党政机关民主生活会个人对照检查材料', + tags: ['开篇引言', '对照查摆', '根源剖析', '整改措施', '表态'], + tagClass: 'bg-red-900/30 text-red-300', + prompt: '请按照民主生活会对照检查材料的范式写作', + constraints: ['总分总结构', '引用权威来源'] + }, + { + type: 'gov-report', + name: '政府工作报告', + description: '适用于政府工作总结、述职报告', + tags: ['工作回顾', '成绩总结', '问题分析', '下步计划'], + tagClass: 'bg-cyan-900/30 text-cyan-300', + prompt: '请按照政府工作报告的范式写作', + constraints: ['Markdown格式', '数据支撑', '总分总结构'] } ]