From 4c334ee4daf99f147fd775b55d80c44fc96c1600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Wed, 17 Sep 2025 15:29:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(pwl):=20=E6=96=B0=E5=A2=9E=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=8A=A5=E5=91=8A=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加生成报告弹窗组件 - 实现报告内容的 AI 生成逻辑 - 优化用户界面,增加导航和快捷键功能 --- .../pwl/pwlProject/components/report.vue | 758 ++++++++++++++++++ src/views/pwl/pwlProject/index.vue | 16 +- 2 files changed, 771 insertions(+), 3 deletions(-) create mode 100644 src/views/pwl/pwlProject/components/report.vue diff --git a/src/views/pwl/pwlProject/components/report.vue b/src/views/pwl/pwlProject/components/report.vue new file mode 100644 index 0000000..5bbde65 --- /dev/null +++ b/src/views/pwl/pwlProject/components/report.vue @@ -0,0 +1,758 @@ + + + + + + + + diff --git a/src/views/pwl/pwlProject/index.vue b/src/views/pwl/pwlProject/index.vue index 610574d..d7ed378 100644 --- a/src/views/pwl/pwlProject/index.vue +++ b/src/views/pwl/pwlProject/index.vue @@ -69,7 +69,7 @@ @@ -100,7 +102,8 @@ import type { ColumnItem } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; -import PwlProjectEdit from './components/pwlProjectEdit.vue'; +import Edit from './components/pwlProjectEdit.vue'; +import Report from './components/report.vue'; import {pagePwlProject, removePwlProject, removeBatchPwlProject} from '@/api/pwl/pwlProject'; import type {PwlProject, PwlProjectParam} from '@/api/pwl/pwlProject/model'; import {getPageTitle} from "@/utils/common"; @@ -115,6 +118,8 @@ const selection = ref([]); const current = ref(null); // 是否显示编辑弹窗 const showEdit = ref(false); +// 是否显示报告弹窗 +const showReport = ref(false); // 是否显示批量移动弹窗 const showMove = ref(false); // const draftUser = ref([]); @@ -380,6 +385,11 @@ const openEdit = (row?: PwlProject) => { showEdit.value = true; }; +const openReport = (row?: PwlProject) => { + current.value = row ?? null; + showReport.value = true; +} + /* 打开批量移动弹窗 */ const openMove = () => { showMove.value = true;