update:HPC作业的取消和删除都修改为使用作业的id
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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('请选择作业后再进行操作');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user