fix: 谱系指标
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
</div>
|
||||
<div class="detail-wrapper">
|
||||
<PedigreeDetail
|
||||
:key="detailKey"
|
||||
:currentNode="currentNodeId"
|
||||
:runId="runId"
|
||||
:taskId="taskId"
|
||||
@@ -74,6 +75,7 @@ const visible = computed({
|
||||
const flowRef = ref();
|
||||
|
||||
const currentNodeId = ref('inputModel');
|
||||
const detailKey = ref(0);
|
||||
|
||||
const nodeLabelsKey: Record<string, string> = {
|
||||
inputModel: '数据谱系.3D模型',
|
||||
@@ -129,6 +131,7 @@ watch(
|
||||
() => props.modelValue,
|
||||
(newVal) => {
|
||||
if (newVal) {
|
||||
detailKey.value++;
|
||||
const defaultNodeId = getDefaultNodeIdFun();
|
||||
currentNodeId.value = defaultNodeId;
|
||||
nextTick(() => {
|
||||
|
||||
Reference in New Issue
Block a user