update:bug修复,任务详情界面优化

This commit is contained in:
2026-03-20 10:10:48 +08:00
parent 81a9c16888
commit cde291d3b6
9 changed files with 31 additions and 15 deletions

View File

@@ -37,4 +37,5 @@ VITE_API_PREFIX_PROJECT=/local7101/
VITE_API_PREFIX_SYSTEM=/local7103/
VITE_API_PREFIX_TASK=/local7102/
VITE_API_PREFIX_APPLICATION=/local18888/
VITE_API_PREFIX_FLOWABLE=/local7108/
VITE_API_PREFIX_FLOWABLE=/local7108/
VITE_API_PREFIX_JOB=/local7109/

View File

@@ -37,4 +37,5 @@ VITE_API_PREFIX_PROJECT=/project/
VITE_API_PREFIX_SYSTEM=/system/
VITE_API_PREFIX_TASK=/task/
VITE_API_PREFIX_APPLICATION=/application/
VITE_API_PREFIX_FLOWABLE=/flowable/
VITE_API_PREFIX_FLOWABLE=/flowable/
VITE_API_PREFIX_JOB=/downBigFile/

View File

@@ -37,4 +37,5 @@ VITE_API_PREFIX_PROJECT=/project/
VITE_API_PREFIX_SYSTEM=/system/
VITE_API_PREFIX_TASK=/task/
VITE_API_PREFIX_APPLICATION=/application/
VITE_API_PREFIX_FLOWABLE=/flowable/
VITE_API_PREFIX_FLOWABLE=/flowable/
VITE_API_PREFIX_JOB=/downBigFile/

View File

@@ -37,4 +37,5 @@ VITE_API_PREFIX_PROJECT=/project/
VITE_API_PREFIX_SYSTEM=/system/
VITE_API_PREFIX_TASK=/task/
VITE_API_PREFIX_APPLICATION=/application/
VITE_API_PREFIX_FLOWABLE=/flowable/
VITE_API_PREFIX_FLOWABLE=/flowable/
VITE_API_PREFIX_JOB=/downBigFile/

View File

@@ -37,4 +37,5 @@ VITE_API_PREFIX_PROJECT=/project/
VITE_API_PREFIX_SYSTEM=/system/
VITE_API_PREFIX_TASK=/task/
VITE_API_PREFIX_APPLICATION=/application/
VITE_API_PREFIX_FLOWABLE=/flowable/
VITE_API_PREFIX_FLOWABLE=/flowable/
VITE_API_PREFIX_JOB=/downBigFile/

13
src/api/pbs/job.ts Normal file
View File

@@ -0,0 +1,13 @@
import { download } from '@/api/request';
const env = import.meta.env;
const PREFIX = env.VITE_API_PREFIX_JOB;
/**
* 计算作业下载
* @param params
* @returns
*/
export const hpcDownloadFileApi = (params: any) => {
return download(`${PREFIX}pbs/hpcDownloadFile`, params, params.name);
};

View File

@@ -36,14 +36,6 @@ export const getJobResultFilesApi = (params: any) => {
return post(`${PREFIX}pbs/getJobResultFiles`, params);
};
/**
* 计算作业下载
* @param params
* @returns
*/
export const hpcDownloadFileApi = (params: any) => {
return download(`${PREFIX}pbs/hpcDownloadFile`, params, params.name);
};
/**
* hpc文本在线预览关闭

View File

@@ -75,7 +75,7 @@
<script setup lang="ts">
import { nextTick, ref, watch } from 'vue';
import Dialog from '@/components/common/dialog/index.vue';
import { getJobResultFilesApi, hpcDownloadFileApi, streamLogEndApi } from '@/api/pbs/pbs';
import { getJobResultFilesApi, streamLogEndApi } from '@/api/pbs/pbs';
import BaseTable from '@/components/common/table/baseTable.vue';
import { fileUploadAllocationIconFun, formatFileSize } from '@/utils/file';
import TableForm from '@/components/common/table/tableForm.vue';
@@ -83,6 +83,7 @@ import { EventSourcePolyfill } from 'event-source-polyfill';
import { ElMessage } from 'element-plus';
import { getUserData } from '@/utils/user';
import MonacoEditor from '@/components/common/fileEdit/monacoEditor/index.vue';
import { hpcDownloadFileApi } from '@/api/pbs/job';
const props = defineProps({
jobInfo: {
@@ -198,7 +199,6 @@ const fileLogConnectFun = () => {
// });
SEE.value.addEventListener('message', (e: any) => {
if (e?.data) {
logContent.value.content = logContent.value.content + e?.data + '\n';
}

View File

@@ -625,5 +625,11 @@ onMounted(async () => {
height: calc(100% - 60px);
margin-top: 10px;
}
.task-demand-content{
padding: 0px !important;
}
}
</style>