update:HPC列表
This commit is contained in:
@@ -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/
|
||||
|
||||
8
src/api/pbs/pbs.ts
Normal file
8
src/api/pbs/pbs.ts
Normal file
@@ -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);
|
||||
};
|
||||
62
src/components/task/hpcList.vue
Normal file
62
src/components/task/hpcList.vue
Normal file
@@ -0,0 +1,62 @@
|
||||
<template>
|
||||
<div class="comp-hpc-list">
|
||||
<Dialog
|
||||
v-model="visible"
|
||||
diaTitle="HPC计算列表"
|
||||
width="80%"
|
||||
@close="closeFun"
|
||||
>
|
||||
<div class="content">
|
||||
<div class="table">
|
||||
<BaseTable
|
||||
tableName="HPC_LIST_TABLE"
|
||||
:api="queryJobsApi"
|
||||
:actionList="actionList"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<template #footer>
|
||||
<div>
|
||||
<el-button>{{ $t('通用.取消') }}</el-button>
|
||||
<el-button type="primary">{{ $t('通用.确定') }}</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</Dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, watch } from 'vue';
|
||||
import { queryJobsApi } from '@/api/pbs/pbs';
|
||||
import Dialog from '@/components/common/dialog/index.vue';
|
||||
import BaseTable from '@/components/common/table/baseTable.vue';
|
||||
|
||||
interface Props {
|
||||
modelValue: boolean;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
modelValue: false,
|
||||
});
|
||||
|
||||
const emit = defineEmits(['update:modelValue']);
|
||||
const visible = ref(true);
|
||||
|
||||
watch(() => props.modelValue, (val: boolean) => {
|
||||
visible.value = val;
|
||||
});
|
||||
|
||||
const actionList = ref([
|
||||
{
|
||||
title: '取消',
|
||||
type: 'danger',
|
||||
needConfirm: true,
|
||||
confirmTip: '确定取消选中计算任务吗?',
|
||||
click: () => {},
|
||||
},
|
||||
]);
|
||||
|
||||
const closeFun = () => {
|
||||
emit('update:modelValue', false);
|
||||
};
|
||||
</script>
|
||||
@@ -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'),
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, defineProps, defineEmits, nextTick } from 'vue';
|
||||
import { ref } from 'vue';
|
||||
import { NODE_TYPE } from '@/utils/enum/node';
|
||||
import leftTaskTree from './components/leftTaskTree/index.vue';
|
||||
import taskDetailPage from './components/taskDetailPage/index.vue';
|
||||
|
||||
@@ -73,6 +73,11 @@ export default defineConfig(({ mode }) => {
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/local7104/, ''),
|
||||
},
|
||||
'/local7105': { // pds模块
|
||||
target: 'http://192.168.65.161:80/api/simulation/pbs', // 开发环境
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/local7105/, ''),
|
||||
},
|
||||
'/local7107': { // data文件模块
|
||||
// target: 'http://192.168.65.199:7104', // 李东洋
|
||||
target: 'http://192.168.65.161:80/api/simulation/capability', // 开发环境
|
||||
|
||||
Reference in New Issue
Block a user