From 156d5357cd09b95e9c019c82ecbf0e081b54e8be Mon Sep 17 00:00:00 2001 From: yuance <182865460@qq.com> Date: Tue, 23 Dec 2025 10:29:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95-=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95=E5=88=97=E8=A1=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ai/aiHistory/model/index.ts | 3 +++ .../pwl/pwlProject/components/components/HistoryModal.vue | 6 +++++- src/views/pwl/pwlProject/components/data/tableCommon.ts | 2 +- src/views/pwl/pwlProject/components/reportContent.vue | 2 ++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/api/ai/aiHistory/model/index.ts b/src/api/ai/aiHistory/model/index.ts index f2a7ffe..aa0a30c 100644 --- a/src/api/ai/aiHistory/model/index.ts +++ b/src/api/ai/aiHistory/model/index.ts @@ -6,6 +6,8 @@ import type { PageParam } from '@/api'; export interface AiHistory { // 主键ID id?: number; + // 项目ID + projectId?: number; // 请求哈希值 requestHash?: string; // 接口名称 @@ -31,6 +33,7 @@ export interface AiHistory { */ export interface AiHistoryParam extends PageParam { id?: number; + projectId?: number; requestHash?: string; interfaceName?: string; userId?: number; diff --git a/src/views/pwl/pwlProject/components/components/HistoryModal.vue b/src/views/pwl/pwlProject/components/components/HistoryModal.vue index e786fea..f99028d 100644 --- a/src/views/pwl/pwlProject/components/components/HistoryModal.vue +++ b/src/views/pwl/pwlProject/components/components/HistoryModal.vue @@ -79,6 +79,7 @@ import type { AiHistoryParam } from '@/api/ai/aiHistory/model'; const props = defineProps<{ visible: boolean; interfaceName?: string; + projectId?: number; }>(); const emit = defineEmits<{ @@ -98,11 +99,14 @@ const datasource: DatasourceFunction = async ({ page, limit, orders }) => { if (orders) { Object.assign(params, orders); } - + console.log(props,'props'); // 使用传入的接口名称进行过滤 if (props.interfaceName) { params.interfaceName = props.interfaceName; } + if (props.projectId) { + params.projectId = props.projectId; + } try { const result = await pageAiHistory(params); diff --git a/src/views/pwl/pwlProject/components/data/tableCommon.ts b/src/views/pwl/pwlProject/components/data/tableCommon.ts index 5172e6d..b629e09 100644 --- a/src/views/pwl/pwlProject/components/data/tableCommon.ts +++ b/src/views/pwl/pwlProject/components/data/tableCommon.ts @@ -4,7 +4,7 @@ export const tableConfigs = { type: 'auditContent1', title: '贯彻决策部署情况', options: [ - { title: '贯彻决策部署', value: 'default1', columns: () => import('./table1Columns').then(m => m.default1Columns) }, + // { title: '贯彻决策部署', value: 'default1', columns: () => import('./table1Columns').then(m => m.default1Columns) }, { title: '领导班子名单', value: 'leaderList', columns: () => import('./table1Columns').then(m => m.leaderListColumns) }, { title: '决策支出表', value: 'expense', columns: () => import('./table1Columns').then(m => m.expenseColumns) }, { title: '八项规定', value: 'eightReg', columns: () => import('./table1Columns').then(m => m.eightRegColumns) } diff --git a/src/views/pwl/pwlProject/components/reportContent.vue b/src/views/pwl/pwlProject/components/reportContent.vue index c6bf4c5..092f211 100644 --- a/src/views/pwl/pwlProject/components/reportContent.vue +++ b/src/views/pwl/pwlProject/components/reportContent.vue @@ -387,6 +387,7 @@ @@ -559,6 +560,7 @@ const generateTableContent = async (sectionIndex: number) => { try { // 构建请求参数 const requestData = { + projectId: props.data?.id || '', kbIds: props.data?.kbId || '', libraryIds: props.data?.libraryIds || '', projectLibrary: props.data?.projectLibrary || '',