feat:项目管理-历史记录-优化历史记录列表查询
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) }
|
||||
|
||||
@@ -387,6 +387,7 @@
|
||||
<HistoryModal
|
||||
v-model:visible="showHistory"
|
||||
:interface-name="currentInterfaceName"
|
||||
:project-id="props.data?.id"
|
||||
@select="handleHistorySelect"
|
||||
/>
|
||||
</a-drawer>
|
||||
@@ -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 || '',
|
||||
|
||||
Reference in New Issue
Block a user