From 5cac99db19a27da584b394134a31b4ef9c664603 Mon Sep 17 00:00:00 2001 From: lijing1 Date: Mon, 1 Dec 2025 11:37:43 +0800 Subject: [PATCH] =?UTF-8?q?update:HPC=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/pbs/pbs.ts | 8 ++++ src/components/task/hpcList.vue | 62 ++++++++++++++++++++++++++++++ src/router/routerData.ts | 1 - src/views/data/overview/index.vue | 9 ++--- src/views/task/execution/index.vue | 2 +- vite.config.ts | 5 +++ 7 files changed, 80 insertions(+), 9 deletions(-) create mode 100644 src/api/pbs/pbs.ts create mode 100644 src/components/task/hpcList.vue diff --git a/.env.development b/.env.development index d92dfe2..5f6e4f9 100644 --- a/.env.development +++ b/.env.development @@ -12,7 +12,7 @@ VITE_API_FILE_URL=http://192.168.65.161:7104 VITE_API_PREFIX_APPROVE=/ VITE_API_PREFIX_CAPABILITY=/local7107/ VITE_API_PREFIX_DATA=/local7104/ -VITE_API_PREFIX_PBS=/ +VITE_API_PREFIX_PBS=/local7105/ VITE_API_PREFIX_PERFORMANCE=/ VITE_API_PREFIX_PROJECT=/local7101/ VITE_API_PREFIX_SYSTEM=/local7103/ diff --git a/src/api/pbs/pbs.ts b/src/api/pbs/pbs.ts new file mode 100644 index 0000000..daff3de --- /dev/null +++ b/src/api/pbs/pbs.ts @@ -0,0 +1,8 @@ +import { post } from '@/api/request'; + +const env = import.meta.env; +const PREFIX = env.VITE_API_PREFIX_PBS; + +export const queryJobsApi = (params: any) => { + return post(`${PREFIX}pbs/queryJobs`, params); +}; diff --git a/src/components/task/hpcList.vue b/src/components/task/hpcList.vue new file mode 100644 index 0000000..c325efa --- /dev/null +++ b/src/components/task/hpcList.vue @@ -0,0 +1,62 @@ + + + diff --git a/src/router/routerData.ts b/src/router/routerData.ts index 2455a23..d3e8ce5 100644 --- a/src/router/routerData.ts +++ b/src/router/routerData.ts @@ -90,7 +90,6 @@ export default [ title: '任务执行', path: '/task/execution', name: 'TaskExecution', - // component: () => import('@/views/task/execution/index.vue'), component: () => import('@/views/task/execution/index.vue'), }, { diff --git a/src/views/data/overview/index.vue b/src/views/data/overview/index.vue index 812f422..2f95d93 100644 --- a/src/views/data/overview/index.vue +++ b/src/views/data/overview/index.vue @@ -314,6 +314,7 @@ const delFun = () => { Promise.all(proList).then(() => { ElMessage.success('操作成功'); reloadNodeFun(); + BaseTableRef.value?.resetFun(); }); }).catch(() => {}); }; @@ -437,15 +438,11 @@ const checkboxChangeFun = (data: any) => { const reloadFun = () => { chosenData.value = []; currentData.value = ''; - if (FileTreeRef.value) { - FileTreeRef.value.reloadFun(); - } + FileTreeRef.value?.reloadFun(); }; const reloadNodeFun = () => { - if (FileTreeRef.value) { - FileTreeRef.value.reloadNodeFun(currentData.value.id); - } + FileTreeRef.value?.reloadNodeFun(currentData.value.id); }; diff --git a/src/views/task/execution/index.vue b/src/views/task/execution/index.vue index 012aff4..2928237 100644 --- a/src/views/task/execution/index.vue +++ b/src/views/task/execution/index.vue @@ -23,7 +23,7 @@