fix: 表格闪烁
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
ref="inputModelTableRef"
|
||||
tableName="DATA_SEARCH"
|
||||
:api="getFileListApiFun"
|
||||
:params="getParamsByTypeFun(FILE_TYPE.MODEL_3D_FILE)"
|
||||
:params="modelParams"
|
||||
showIndex
|
||||
:fullHeight="true"
|
||||
hideSearch
|
||||
@@ -39,7 +39,7 @@
|
||||
ref="calcModelTableRef"
|
||||
tableName="DATA_SEARCH"
|
||||
:api="getFileListApiFun"
|
||||
:params="getParamsByTypeFun(FILE_TYPE.CALCULATION_FILE)"
|
||||
:params="calcFileParams"
|
||||
showIndex
|
||||
:fullHeight="true"
|
||||
hideSearch
|
||||
@@ -52,7 +52,7 @@
|
||||
ref="calcResultTableRef"
|
||||
tableName="DATA_SEARCH"
|
||||
:api="getFileListApiFun"
|
||||
:params="getParamsByTypeFun(FILE_TYPE.CALCULATION_RESULT)"
|
||||
:params="calcResultParams"
|
||||
showIndex
|
||||
:fullHeight="true"
|
||||
hideSearch
|
||||
@@ -75,7 +75,7 @@
|
||||
ref="cloudImageTableRef"
|
||||
tableName="DATA_SEARCH"
|
||||
:api="getFileListApiFun"
|
||||
:params="getKeyResultParamsFun(FILE_TYPE.PNG_FILE)"
|
||||
:params="cloudImageParams"
|
||||
showIndex
|
||||
:fullHeight="true"
|
||||
hideSearch
|
||||
@@ -86,7 +86,7 @@
|
||||
ref="curveTableRef"
|
||||
tableName="DATA_SEARCH"
|
||||
:api="getFileListApiFun"
|
||||
:params="getKeyResultParamsFun(FILE_TYPE.CANVAS_FILE)"
|
||||
:params="curveParams"
|
||||
showIndex
|
||||
:fullHeight="true"
|
||||
hideSearch
|
||||
@@ -109,7 +109,7 @@
|
||||
ref="videoTableRef"
|
||||
tableName="DATA_SEARCH"
|
||||
:api="getFileListApiFun"
|
||||
:params="getKeyResultParamsFun(FILE_TYPE.VIDEO_FILE)"
|
||||
:params="videoParams"
|
||||
showIndex
|
||||
:fullHeight="true"
|
||||
hideSearch
|
||||
@@ -123,7 +123,7 @@
|
||||
ref="reportTableRef"
|
||||
tableName="DATA_SEARCH"
|
||||
:api="getFileListApiFun"
|
||||
:params="getParamsByTypeFun(FILE_TYPE.REPORT_FILE)"
|
||||
:params="reportParams"
|
||||
showIndex
|
||||
:fullHeight="true"
|
||||
hideSearch
|
||||
@@ -136,7 +136,7 @@
|
||||
ref="testDataTableRef"
|
||||
tableName="DATA_SEARCH"
|
||||
:api="getFileListApiFun"
|
||||
:params="getParamsByTypeFun(FILE_TYPE.TEST_DOCUMENT_FILE)"
|
||||
:params="testDataParams"
|
||||
showIndex
|
||||
:fullHeight="true"
|
||||
hideSearch
|
||||
@@ -152,7 +152,7 @@
|
||||
ref="reviewReportTableRef"
|
||||
tableName="DATA_SEARCH"
|
||||
:api="getFileListApiFun"
|
||||
:params="getParamsByTypeFun(FILE_TYPE.REVIEW_FILE)"
|
||||
:params="reviewFileParams"
|
||||
showIndex
|
||||
:fullHeight="true"
|
||||
hideSearch
|
||||
@@ -165,7 +165,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, watch } from 'vue';
|
||||
import { ref, watch, computed } from 'vue';
|
||||
import BaseTable from '@/components/common/table/baseTable.vue';
|
||||
import { getSimulationTaskFileApi } from '@/api/data/dataAnalysis';
|
||||
import { FILE_TYPE } from '@/utils/enum/file';
|
||||
@@ -343,7 +343,7 @@ const getFileListApiFun = async (params: any) => {
|
||||
}
|
||||
};
|
||||
|
||||
const getParamsByTypeFun = (fileType: number) => {
|
||||
const buildParamsFun = (fileType: number) => {
|
||||
if (props.pedigreeType === 'task') {
|
||||
return {
|
||||
uuid: props.taskId,
|
||||
@@ -368,9 +368,15 @@ const getParamsByTypeFun = (fileType: number) => {
|
||||
}
|
||||
};
|
||||
|
||||
const getKeyResultParamsFun = (fileType: number) => {
|
||||
return getParamsByTypeFun(fileType);
|
||||
};
|
||||
const modelParams = computed(() => buildParamsFun(FILE_TYPE.MODEL_3D_FILE));
|
||||
const calcFileParams = computed(() => buildParamsFun(FILE_TYPE.CALCULATION_FILE));
|
||||
const calcResultParams = computed(() => buildParamsFun(FILE_TYPE.CALCULATION_RESULT));
|
||||
const reportParams = computed(() => buildParamsFun(FILE_TYPE.REPORT_FILE));
|
||||
const testDataParams = computed(() => buildParamsFun(FILE_TYPE.TEST_DOCUMENT_FILE));
|
||||
const reviewFileParams = computed(() => buildParamsFun(FILE_TYPE.REVIEW_FILE));
|
||||
const cloudImageParams = computed(() => buildParamsFun(FILE_TYPE.PNG_FILE));
|
||||
const curveParams = computed(() => buildParamsFun(FILE_TYPE.CANVAS_FILE));
|
||||
const videoParams = computed(() => buildParamsFun(FILE_TYPE.VIDEO_FILE));
|
||||
|
||||
const cloudImageTableRef = ref();
|
||||
const curveTableRef = ref();
|
||||
|
||||
Reference in New Issue
Block a user