From cde291d3b685afb339a74646732611a74035427f Mon Sep 17 00:00:00 2001 From: zhouyang Date: Fri, 20 Mar 2026 10:10:48 +0800 Subject: [PATCH] =?UTF-8?q?update:bug=E4=BF=AE=E5=A4=8D=EF=BC=8C=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E8=AF=A6=E6=83=85=E7=95=8C=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 ++- .env.eontec | 3 ++- .env.lyric | 3 ++- .env.production | 3 ++- .env.test | 3 ++- src/api/pbs/job.ts | 13 +++++++++++++ src/api/pbs/pbs.ts | 8 -------- .../runDetailPage/runPagecomponent/jobFile.vue | 4 ++-- .../task/projectDetail/components/taskDetail.vue | 6 ++++++ 9 files changed, 31 insertions(+), 15 deletions(-) create mode 100644 src/api/pbs/job.ts diff --git a/.env.development b/.env.development index fa714ca5..776f60f6 100644 --- a/.env.development +++ b/.env.development @@ -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/ \ No newline at end of file +VITE_API_PREFIX_FLOWABLE=/local7108/ +VITE_API_PREFIX_JOB=/local7109/ diff --git a/.env.eontec b/.env.eontec index 93bf7c03..a54b87e7 100644 --- a/.env.eontec +++ b/.env.eontec @@ -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/ \ No newline at end of file +VITE_API_PREFIX_FLOWABLE=/flowable/ +VITE_API_PREFIX_JOB=/downBigFile/ \ No newline at end of file diff --git a/.env.lyric b/.env.lyric index 2897c59b..0ddbb493 100644 --- a/.env.lyric +++ b/.env.lyric @@ -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/ \ No newline at end of file +VITE_API_PREFIX_FLOWABLE=/flowable/ +VITE_API_PREFIX_JOB=/downBigFile/ \ No newline at end of file diff --git a/.env.production b/.env.production index 3ae854cb..da5db5a2 100644 --- a/.env.production +++ b/.env.production @@ -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/ \ No newline at end of file +VITE_API_PREFIX_FLOWABLE=/flowable/ +VITE_API_PREFIX_JOB=/downBigFile/ \ No newline at end of file diff --git a/.env.test b/.env.test index f38e9df5..9f4677bc 100644 --- a/.env.test +++ b/.env.test @@ -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/ \ No newline at end of file +VITE_API_PREFIX_FLOWABLE=/flowable/ +VITE_API_PREFIX_JOB=/downBigFile/ \ No newline at end of file diff --git a/src/api/pbs/job.ts b/src/api/pbs/job.ts new file mode 100644 index 00000000..20a1dc96 --- /dev/null +++ b/src/api/pbs/job.ts @@ -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); +}; diff --git a/src/api/pbs/pbs.ts b/src/api/pbs/pbs.ts index 6830b97a..531f0ec7 100644 --- a/src/api/pbs/pbs.ts +++ b/src/api/pbs/pbs.ts @@ -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文本在线预览关闭 diff --git a/src/views/task/execution/components/runDetailPage/runPagecomponent/jobFile.vue b/src/views/task/execution/components/runDetailPage/runPagecomponent/jobFile.vue index 28b0a346..58e27978 100644 --- a/src/views/task/execution/components/runDetailPage/runPagecomponent/jobFile.vue +++ b/src/views/task/execution/components/runDetailPage/runPagecomponent/jobFile.vue @@ -75,7 +75,7 @@