update:HPC作业的取消和删除都修改为使用作业的id

This commit is contained in:
2026-04-16 10:54:28 +08:00
parent 58a8a4efda
commit 3f16a5c15a
3 changed files with 14 additions and 8 deletions

View File

@@ -165,7 +165,7 @@ const actionList = ref([
needConfirm: true,
confirmTip: '确定删除选中计算任务吗?',
click: (row: any) => {
const jobIds = [row.jobId];
const jobIds = [row.id];
deleteFun(jobIds);
},
hide: (row: any) => {
@@ -176,7 +176,8 @@ const actionList = ref([
const stopFun = async (data: any) => {
const params = {
jobId: data.jobId,
// jobId: data.jobId,
id: data.id,
};
await stopHpcJobApi(params).then((res: any) => {
if (res.code === 200) {
@@ -214,7 +215,7 @@ const batchDeleteFun = async () => {
const checks: any = baseTableRef.value.tableRef.getCheckboxRecords();
if (checks.length) {
const ids = checks.map((item: any) => {
return item.jobId;
return item.id;
});
await deleteFun(ids);

View File

@@ -108,7 +108,7 @@ const batchDeleteFun = async () => {
const checks: any = baseTableRef.value.tableRef.getCheckboxRecords();
if (checks.length) {
const ids = checks.map((item: any) => {
return item.jobId;
return item.id;
});
await deleteFun(ids);
@@ -136,7 +136,7 @@ const actionList = ref([
needConfirm: true,
confirmTip: '确定删除选中计算任务吗?',
click: (row: any) => {
const jobIds = [row.jobId];
const jobIds = [row.id];
deleteFun(jobIds);
},
hide: (row: any) => {

View File

@@ -97,7 +97,7 @@ const actionList = ref([
type: 'danger',
click: (row: any) => {
// stopFun(row);
const jobIds = [row.jobId];
const jobIds = [row.id];
deleteFun(jobIds);
// ElMessage.success('功能待上线');
},
@@ -109,7 +109,8 @@ const actionList = ref([
const stopFun = async (row: any) => {
const param = {
jobId: row.jobId,
// jobId: row.jobId,
id: row.id,
};
stopHpcJobApi(param).then((res: any) => {
if (res && res.code === 200) {
@@ -223,7 +224,11 @@ const stopCheckJobFfun = async () => {
const deleteCheckJobFun = async () => {
const checkData: any = baseTableRef.value.tableRef.getCheckboxRecords();
if (checkData?.length) {
for (let i = 0; i < checkData?.length; i++) {}
const ids = checkData.map((item: any) => {
return item.id;
});
deleteFun(ids);
} else {
ElMessage.warning('请选择作业后再进行操作');
}