fix:审批界面的指标界面报错修复,文件新增预览下载按钮展示
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
endTime: '',
|
endTime: '',
|
||||||
}"
|
}"
|
||||||
:show-checkbox="true"
|
:show-checkbox="true"
|
||||||
:actionList="showLeftOptions ? actionList : []"
|
:actionList="actionList"
|
||||||
:full-height="true"
|
:full-height="true"
|
||||||
>
|
>
|
||||||
<template v-if="showLeftOptions" #leftOptions>
|
<template v-if="showLeftOptions" #leftOptions>
|
||||||
@@ -132,6 +132,9 @@ const actionList = ref([
|
|||||||
click: (row: any) => {
|
click: (row: any) => {
|
||||||
deleteFun(row);
|
deleteFun(row);
|
||||||
},
|
},
|
||||||
|
hide: () => {
|
||||||
|
return !props.showLeftOptions;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
startTime: '',
|
startTime: '',
|
||||||
endTime: '',
|
endTime: '',
|
||||||
}"
|
}"
|
||||||
:actionList="showLeftOptions ? actionList : []"
|
:actionList="actionList"
|
||||||
>
|
>
|
||||||
<template v-if="showLeftOptions" #leftOptions>
|
<template v-if="showLeftOptions" #leftOptions>
|
||||||
<!-- <div v-if="showFilter">
|
<!-- <div v-if="showFilter">
|
||||||
@@ -124,6 +124,9 @@ const actionList = ref([
|
|||||||
click: (row: any) => {
|
click: (row: any) => {
|
||||||
deleteFun(row);
|
deleteFun(row);
|
||||||
},
|
},
|
||||||
|
hide: () => {
|
||||||
|
return !props.showLeftOptions;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
}"
|
}"
|
||||||
:show-checkbox="true"
|
:show-checkbox="true"
|
||||||
:full-height="true"
|
:full-height="true"
|
||||||
:actionList="showLeftOptions ? actionList : []"
|
:actionList="actionList"
|
||||||
>
|
>
|
||||||
<template v-if="showLeftOptions" #leftOptions>
|
<template v-if="showLeftOptions" #leftOptions>
|
||||||
<el-upload :show-file-list="false" :accept="accept" :before-upload="beforeUploadFun">
|
<el-upload :show-file-list="false" :accept="accept" :before-upload="beforeUploadFun">
|
||||||
@@ -72,9 +72,7 @@ import { initEcharts } from '../common/echartCard/echartsOptions';
|
|||||||
import { FILE_TYPE } from '@/utils/enum/file';
|
import { FILE_TYPE } from '@/utils/enum/file';
|
||||||
import BaseTable from '@/components/common/table/baseTable.vue';
|
import BaseTable from '@/components/common/table/baseTable.vue';
|
||||||
import { downloadFileById, getFileUploadAcceptFun, queryFileIdByNodeIdFun } from '@/utils/file';
|
import { downloadFileById, getFileUploadAcceptFun, queryFileIdByNodeIdFun } from '@/utils/file';
|
||||||
import {
|
import { dataOverViewDeleteSimulationNodeFilesApi } from '@/api/data/dataOverView';
|
||||||
dataOverViewDeleteSimulationNodeFilesApi,
|
|
||||||
} from '@/api/data/dataOverView';
|
|
||||||
import FilePreview from '@/components/common/filePreview/index.vue';
|
import FilePreview from '@/components/common/filePreview/index.vue';
|
||||||
import emitter from '@/utils/eventBus';
|
import emitter from '@/utils/eventBus';
|
||||||
|
|
||||||
@@ -148,6 +146,9 @@ const actionList = ref([
|
|||||||
click: (row: any) => {
|
click: (row: any) => {
|
||||||
deleteFun(row);
|
deleteFun(row);
|
||||||
},
|
},
|
||||||
|
hide: () => {
|
||||||
|
return !props.showLeftOptions;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
startTime: '',
|
startTime: '',
|
||||||
endTime: '',
|
endTime: '',
|
||||||
}"
|
}"
|
||||||
:actionList="showLeftOptions ? actionList : []"
|
:actionList="actionList"
|
||||||
>
|
>
|
||||||
<template v-if="showLeftOptions" #leftOptions>
|
<template v-if="showLeftOptions" #leftOptions>
|
||||||
<!-- <div v-if="showFilter">
|
<!-- <div v-if="showFilter">
|
||||||
@@ -124,6 +124,9 @@ const actionList = ref([
|
|||||||
click: (row: any) => {
|
click: (row: any) => {
|
||||||
deleteFun(row);
|
deleteFun(row);
|
||||||
},
|
},
|
||||||
|
hide: () => {
|
||||||
|
return !props.showLeftOptions;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ const performanceData = ref<any>([]);
|
|||||||
const getTaskPerformanceDataFun = async () => {
|
const getTaskPerformanceDataFun = async () => {
|
||||||
const res: any =
|
const res: any =
|
||||||
props.paramType === 'task'
|
props.paramType === 'task'
|
||||||
? await getTaskPerformanceApi({ taskId: props.taskInfo?.id })
|
? await getTaskPerformanceApi({ taskId: props.taskInfo?.uuid })
|
||||||
: await getRunPerformanceApi({ runId: props.runInfo?.uuid });
|
: await getRunPerformanceApi({ runId: props.runInfo?.uuid });
|
||||||
if (res && res.code === 200) {
|
if (res && res.code === 200) {
|
||||||
performanceData.value = res.data.map((item: any) => {
|
performanceData.value = res.data.map((item: any) => {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
}"
|
}"
|
||||||
ref="baseTableRef"
|
ref="baseTableRef"
|
||||||
:showCheckbox="true"
|
:showCheckbox="true"
|
||||||
:actionList="showLeftOptions ? actionList : []"
|
:actionList="actionList"
|
||||||
>
|
>
|
||||||
<template v-if="showLeftOptions" #leftOptions>
|
<template v-if="showLeftOptions" #leftOptions>
|
||||||
<!-- <div v-if="showFilter">
|
<!-- <div v-if="showFilter">
|
||||||
@@ -134,6 +134,9 @@ const actionList = ref([
|
|||||||
click: (row: any) => {
|
click: (row: any) => {
|
||||||
deleteFun(row);
|
deleteFun(row);
|
||||||
},
|
},
|
||||||
|
hide: () => {
|
||||||
|
return !props.showLeftOptions;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user