fix: 谱系指标

This commit is contained in:
JiangSheng
2026-03-25 15:27:09 +08:00
parent 3da69a77aa
commit 7ddb777041
2 changed files with 14 additions and 35 deletions

View File

@@ -92,21 +92,18 @@
hideSearch
:actionList="curveActionList"
/>
<BaseTable
<TaskPerformance
v-else-if="keyResultType === '3'"
ref="performanceTableRef"
tableName="TASK_RUN_PERFORMANCE"
:data="performanceList"
:params="{ runId: runId }"
showIndex
:paramType="pedigreeType === 'task' ? 'task' : 'run'"
:taskInfo="pedigreeType === 'task' ? { uuid: taskId } : undefined"
:runInfo="pedigreeType === 'run' ? { uuid: runId } : undefined"
:fullHeight="true"
hideSearch
hidePagination
>
<template #unit="{ row }">
{{ PERFORMANCE_UNIT.O[row.unit] }}
</template>
</BaseTable>
:showLeftOptions="false"
:showSaveButton="false"
:showSetting="false"
:canUpdate="false"
:showCheckbox="false"
/>
<BaseTable
v-else-if="keyResultType === '4'"
ref="videoTableRef"
@@ -171,14 +168,13 @@
import { ref, watch } from 'vue';
import BaseTable from '@/components/common/table/baseTable.vue';
import { getSimulationTaskFileApi } from '@/api/data/dataAnalysis';
import { getRunPerformanceApi } from '@/api/task/taskpool';
import { FILE_TYPE } from '@/utils/enum/file';
import FlowNodeParamTable from '@/components/flow/flowNodeParamTable.vue';
import { listSimulationFlowNodeApi } from '@/api/project/run';
import { getRunListByRunIdListApi } from '@/api/project/node';
import { queryFlowTemplateDetailApi } from '@/api/capability/flow';
import { useDict } from '@/utils/useDict';
import FilePreview from '@/components/common/filePreview/index.vue';
import TaskPerformance from '@/components/taskDetail/taskPerformance.vue';
import { downloadFileById } from '@/utils/file';
import { cloneDeep } from 'lodash-es';
import { enableConfigByTenant, TENANT_ENUM } from '@/tenants/tenant';
@@ -203,7 +199,6 @@ const props = withDefaults(defineProps<Props>(), {
pedigreeType: 'run',
defaultKeyResultType: '1',
});
const { PERFORMANCE_UNIT } = useDict('PERFORMANCE_UNIT');
const previewVisible = ref(false);
const currentRow = ref<any>(null);
@@ -313,20 +308,6 @@ const fetchFlowNodesFun = async () => {
}
};
const performanceList = ref<any>([]);
const fetchPerformanceListFun = async () => {
if (!props.runId) {
performanceList.value = [];
return;
}
const res: any = await getRunPerformanceApi({ runId: props.runId });
if (res?.code === 200) {
performanceList.value = res.data || [];
} else {
performanceList.value = [];
}
};
const currentNodeParams = ref<any>([]);
const mergeUserParamsFun = (list: any[], userParams: any): any[] => {
@@ -393,19 +374,14 @@ const getKeyResultParamsFun = (fileType: number) => {
const cloudImageTableRef = ref();
const curveTableRef = ref();
const performanceTableRef = ref();
const videoTableRef = ref();
const refreshKeyResultTableFun = () => {
const tableRefMap: Record<string, any> = {
'1': cloudImageTableRef,
'2': curveTableRef,
'3': performanceTableRef,
'4': videoTableRef,
};
if (keyResultType.value === '3') {
fetchPerformanceListFun();
}
tableRefMap[keyResultType.value]?.value?.resetFun(true);
};