update:bug修复,任务详情界面优化
This commit is contained in:
@@ -37,4 +37,5 @@ VITE_API_PREFIX_PROJECT=/local7101/
|
|||||||
VITE_API_PREFIX_SYSTEM=/local7103/
|
VITE_API_PREFIX_SYSTEM=/local7103/
|
||||||
VITE_API_PREFIX_TASK=/local7102/
|
VITE_API_PREFIX_TASK=/local7102/
|
||||||
VITE_API_PREFIX_APPLICATION=/local18888/
|
VITE_API_PREFIX_APPLICATION=/local18888/
|
||||||
VITE_API_PREFIX_FLOWABLE=/local7108/
|
VITE_API_PREFIX_FLOWABLE=/local7108/
|
||||||
|
VITE_API_PREFIX_JOB=/local7109/
|
||||||
|
|||||||
@@ -37,4 +37,5 @@ VITE_API_PREFIX_PROJECT=/project/
|
|||||||
VITE_API_PREFIX_SYSTEM=/system/
|
VITE_API_PREFIX_SYSTEM=/system/
|
||||||
VITE_API_PREFIX_TASK=/task/
|
VITE_API_PREFIX_TASK=/task/
|
||||||
VITE_API_PREFIX_APPLICATION=/application/
|
VITE_API_PREFIX_APPLICATION=/application/
|
||||||
VITE_API_PREFIX_FLOWABLE=/flowable/
|
VITE_API_PREFIX_FLOWABLE=/flowable/
|
||||||
|
VITE_API_PREFIX_JOB=/downBigFile/
|
||||||
@@ -37,4 +37,5 @@ VITE_API_PREFIX_PROJECT=/project/
|
|||||||
VITE_API_PREFIX_SYSTEM=/system/
|
VITE_API_PREFIX_SYSTEM=/system/
|
||||||
VITE_API_PREFIX_TASK=/task/
|
VITE_API_PREFIX_TASK=/task/
|
||||||
VITE_API_PREFIX_APPLICATION=/application/
|
VITE_API_PREFIX_APPLICATION=/application/
|
||||||
VITE_API_PREFIX_FLOWABLE=/flowable/
|
VITE_API_PREFIX_FLOWABLE=/flowable/
|
||||||
|
VITE_API_PREFIX_JOB=/downBigFile/
|
||||||
@@ -37,4 +37,5 @@ VITE_API_PREFIX_PROJECT=/project/
|
|||||||
VITE_API_PREFIX_SYSTEM=/system/
|
VITE_API_PREFIX_SYSTEM=/system/
|
||||||
VITE_API_PREFIX_TASK=/task/
|
VITE_API_PREFIX_TASK=/task/
|
||||||
VITE_API_PREFIX_APPLICATION=/application/
|
VITE_API_PREFIX_APPLICATION=/application/
|
||||||
VITE_API_PREFIX_FLOWABLE=/flowable/
|
VITE_API_PREFIX_FLOWABLE=/flowable/
|
||||||
|
VITE_API_PREFIX_JOB=/downBigFile/
|
||||||
@@ -37,4 +37,5 @@ VITE_API_PREFIX_PROJECT=/project/
|
|||||||
VITE_API_PREFIX_SYSTEM=/system/
|
VITE_API_PREFIX_SYSTEM=/system/
|
||||||
VITE_API_PREFIX_TASK=/task/
|
VITE_API_PREFIX_TASK=/task/
|
||||||
VITE_API_PREFIX_APPLICATION=/application/
|
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
13
src/api/pbs/job.ts
Normal 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);
|
||||||
|
};
|
||||||
@@ -36,14 +36,6 @@ export const getJobResultFilesApi = (params: any) => {
|
|||||||
return post(`${PREFIX}pbs/getJobResultFiles`, params);
|
return post(`${PREFIX}pbs/getJobResultFiles`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* 计算作业下载
|
|
||||||
* @param params
|
|
||||||
* @returns
|
|
||||||
*/
|
|
||||||
export const hpcDownloadFileApi = (params: any) => {
|
|
||||||
return download(`${PREFIX}pbs/hpcDownloadFile`, params, params.name);
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* hpc文本在线预览关闭
|
* hpc文本在线预览关闭
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { nextTick, ref, watch } from 'vue';
|
import { nextTick, ref, watch } from 'vue';
|
||||||
import Dialog from '@/components/common/dialog/index.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 BaseTable from '@/components/common/table/baseTable.vue';
|
||||||
import { fileUploadAllocationIconFun, formatFileSize } from '@/utils/file';
|
import { fileUploadAllocationIconFun, formatFileSize } from '@/utils/file';
|
||||||
import TableForm from '@/components/common/table/tableForm.vue';
|
import TableForm from '@/components/common/table/tableForm.vue';
|
||||||
@@ -83,6 +83,7 @@ import { EventSourcePolyfill } from 'event-source-polyfill';
|
|||||||
import { ElMessage } from 'element-plus';
|
import { ElMessage } from 'element-plus';
|
||||||
import { getUserData } from '@/utils/user';
|
import { getUserData } from '@/utils/user';
|
||||||
import MonacoEditor from '@/components/common/fileEdit/monacoEditor/index.vue';
|
import MonacoEditor from '@/components/common/fileEdit/monacoEditor/index.vue';
|
||||||
|
import { hpcDownloadFileApi } from '@/api/pbs/job';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
jobInfo: {
|
jobInfo: {
|
||||||
@@ -198,7 +199,6 @@ const fileLogConnectFun = () => {
|
|||||||
// });
|
// });
|
||||||
|
|
||||||
SEE.value.addEventListener('message', (e: any) => {
|
SEE.value.addEventListener('message', (e: any) => {
|
||||||
|
|
||||||
if (e?.data) {
|
if (e?.data) {
|
||||||
logContent.value.content = logContent.value.content + e?.data + '\n';
|
logContent.value.content = logContent.value.content + e?.data + '\n';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -625,5 +625,11 @@ onMounted(async () => {
|
|||||||
height: calc(100% - 60px);
|
height: calc(100% - 60px);
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.task-demand-content{
|
||||||
|
padding: 0px !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user