update L910bug修改

This commit is contained in:
2026-02-05 15:07:59 +08:00
parent c9cc14e24b
commit 8899a017eb
2 changed files with 59 additions and 49 deletions

View File

@@ -5,6 +5,7 @@
<div class="dir-content">
<div class="table-box">
<BaseTable
v-if="tableShow"
showIndex
ref="baseTableRef"
:tableName="tableName"
@@ -19,16 +20,13 @@
:show-setting="false"
>
<template #leftOptions>
<el-button @click="ArchiveRunDataFun">归档</el-button>
<el-button @click="openFun">上传</el-button>
</template>
</BaseTable>
</div>
<!-- <div class="operate-box">
<el-button @click="openFun">上传</el-button>
<el-button @click="ArchiveRunDataFun">归档</el-button>
</div> -->
</div>
@@ -528,31 +526,37 @@ const reloadFun = () => {
}
};
const tableName = ref('RUN_RESULT_REPORT_TABLE');
const tableShow = ref(false);
const fileType = ref(FILE_TYPE.PNG_FILE);
const runResultDirChangeFun = () => {
const name = runDirNameList.value.find((item: any) => {
return item.id === currentDirName.value;
})?.name;
tableShow.value = false;
nextTick(() => {
const name = runDirNameList.value.find((item: any) => {
return item.id === currentDirName.value;
})?.name;
if (name === '图片结果') {
tableName.value = 'RUN_RESULT_IMAGE_TABLE';
keyResultType.value = '1';
accept.value = '.jpg,.jpeg,.png,.gif';
fileType.value = FILE_TYPE.PNG_FILE;
}
if (name === '曲线结果') {
tableName.value = 'RUN_RESULT_CANVAS_TABLE';
keyResultType.value = '2';
accept.value = '.csv';
fileType.value = FILE_TYPE.CANVAS_FILE;
}
if (name === '报告结果') {
tableName.value = 'RUN_RESULT_REPORT_TABLE';
keyResultType.value = '3';
accept.value = '.ppt(x),.pptx,.doc(x),.docx,.pdf';
fileType.value = FILE_TYPE.REPORT_FILE;
}
if (name === '图片结果') {
tableName.value = 'RUN_RESULT_IMAGE_TABLE';
keyResultType.value = '1';
accept.value = '.jpg,.jpeg,.png,.gif';
fileType.value = FILE_TYPE.PNG_FILE;
tableShow.value = true;
}
if (name === '曲线结果') {
tableName.value = 'RUN_RESULT_CANVAS_TABLE';
keyResultType.value = '2';
accept.value = '.csv';
fileType.value = FILE_TYPE.CANVAS_FILE;
tableShow.value = true;
}
if (name === '报告结果') {
tableName.value = 'RUN_RESULT_REPORT_TABLE';
keyResultType.value = '3';
accept.value = '.ppt(x),.pptx,.doc(x),.docx,.pdf';
fileType.value = FILE_TYPE.REPORT_FILE;
tableShow.value = true;
}
});
};
const accept = ref<any>('.ppt(x),.pptx,.doc(x),.docx,.pdf');

View File

@@ -19,9 +19,10 @@
:show-setting="false"
></taskPerformance>
</div>
<div class="dir-content" v-else-if="runDirNameList.length && currentDirName">
<div class="dir-content" v-else-if="runDirNameList.length && currentDirName != 'performance'">
<div class="table-box">
<BaseTable
v-if="tableShow"
showIndex
ref="baseTableRef"
:tableName="tableName"
@@ -555,31 +556,36 @@ const reloadFun = () => {
}
};
const tableName = ref('RUN_RESULT_IMAGE_TABLE');
const tableShow = ref(false);
const fileType = ref(FILE_TYPE.PNG_FILE);
const runResultDirChangeFun = () => {
const name = runDirNameList.value.find((item: any) => {
return item.id === currentDirName.value;
})?.name;
if (name === '图片结果') {
tableName.value = 'RUN_RESULT_IMAGE_TABLE';
apiParam.value.keyResultType = '1';
accept.value = '.jpg,.jpeg,.png,.gif';
fileType.value = FILE_TYPE.PNG_FILE;
}
if (name === '曲线结果') {
tableName.value = 'RUN_RESULT_CANVAS_TABLE';
apiParam.value.keyResultType = '2';
accept.value = '.csv';
fileType.value = FILE_TYPE.CANVAS_FILE;
}
if (name === '报告结果') {
tableName.value = 'RUN_RESULT_REPORT_TABLE';
apiParam.value.keyResultType = '3';
accept.value = '.ppt(x),.pptx,.doc(x),.docx,.pdf';
fileType.value = FILE_TYPE.REPORT_FILE;
}
tableShow.value = false;
nextTick(() => {
const name = runDirNameList.value.find((item: any) => {
return item.id === currentDirName.value;
})?.name;
if (name === '图片结果') {
tableName.value = 'RUN_RESULT_IMAGE_TABLE';
apiParam.value.keyResultType = '1';
accept.value = '.jpg,.jpeg,.png,.gif';
fileType.value = FILE_TYPE.PNG_FILE;
tableShow.value = true;
}
if (name === '曲线结果') {
tableName.value = 'RUN_RESULT_CANVAS_TABLE';
apiParam.value.keyResultType = '2';
accept.value = '.csv';
fileType.value = FILE_TYPE.CANVAS_FILE;
tableShow.value = true;
}
if (name === '报告结果') {
tableName.value = 'RUN_RESULT_REPORT_TABLE';
apiParam.value.keyResultType = '3';
accept.value = '.ppt(x),.pptx,.doc(x),.docx,.pdf';
fileType.value = FILE_TYPE.REPORT_FILE;
tableShow.value = true;
}
});
};
const accept = ref<any>('.jpg,.jpeg,.png,.gif');