fix:bug修复,任务执行几个界面添加csv文件预览弹窗

This commit is contained in:
2025-12-22 09:31:30 +08:00
parent d682c29cd9
commit 73263784f9
5 changed files with 20 additions and 13 deletions

View File

@@ -38,6 +38,12 @@
</BaseTable>
<FilePreview v-model="previewVisible" :fileId="currentRow?.fileId" />
<csvFileReview
v-if="showCsvFileDialog"
:file-id="currentRow?.fileId"
@close="showCsvFileDialog = false"
></csvFileReview>
</div>
<Teleport to="body">
@@ -262,6 +268,7 @@ import { ref, onMounted, nextTick, reactive } from 'vue';
import BaseTable from '@/components/common/table/baseTable.vue';
import { formatFileSize } from '@/utils/file';
import FilePreview from '@/components/common/filePreview/index.vue';
import csvFileReview from '@/views/data/analysis/components/csvFileReview.vue';
import Dialog from '@/components/common/dialog/index.vue';
import emitter from '@/utils/eventBus';
import {
@@ -317,9 +324,16 @@ const getfileType = (data: any) => {
};
const currentRow = ref();
const previewVisible = ref(false);
const showCsvFileDialog = ref(false);
const previewFileFun = (row: any) => {
currentRow.value = row;
previewVisible.value = true;
if (row.name.endsWith('.csv')) {
showCsvFileDialog.value = true;
} else {
previewVisible.value = true;
}
};
const tableData = ref<any>([]);

View File

@@ -469,9 +469,8 @@ const updatePerformanceFun = async (data: any) => {
const res: any = await editPerformanceApi(data);
if (res && res.code === 200) {
ElMessage.success('操作成功');
baseTableRef.value.resetFun();
}
await baseTableRef.value.resetFun();
};
onMounted(async () => {

View File

@@ -301,7 +301,7 @@ const delConfigParamFun = async (row: any) => {
const delConfigFun = async () => {
if (filterFormData.configName) {
ElMessageBox.confirm('proxy will permanently delete the file. Continue?', 'Warning', {
ElMessageBox.confirm('确认要删除配置吗?', '警告', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',

View File

@@ -1,13 +1,7 @@
<template>
<appConfigPage v-if="isAppInfo" :app-info="currentAppInfo" @back-up="backUpFun"></appConfigPage>
<div class="gl-page-content-full" v-else>
<BaseTable
tableName="APP_CENTER"
ref="baseTableRef"
hidePagination
fullHeight
:actionList="actionList"
>
<BaseTable tableName="APP_CENTER" ref="baseTableRef" fullHeight :actionList="actionList">
<template #leftOptions>
<div>
<el-form inline class="search-form">
@@ -290,7 +284,7 @@ const updateAppInfoFun = async (data: any) => {
appVendor: data.appVendor || '',
machineCode: localStorage.getItem('USER_UUID'),
comment: data.comment || '',
creator: getUserId() || '1980235559149838337',
creator: getUserId() || '',
};
const res: any = await addApplicationApi(param);

View File

@@ -301,7 +301,7 @@ const visible = ref(false);
const runInfo = ref<any>({});
const currentDirName = ref<any>();
const currentFileInfo = ref<any>({});
const showCsvFileDialog = ref();
const showCsvFileDialog = ref(false);
const diaPngVisible = ref(false);
const columnPngData = ref<number>(1);
const comparePngData = ref<any>([]);