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 @@