diff --git a/frontend/src/components/pure/ms-table/batchAction.vue b/frontend/src/components/pure/ms-table/batchAction.vue index 8aeb1d6403..cbe341edc6 100644 --- a/frontend/src/components/pure/ms-table/batchAction.vue +++ b/frontend/src/components/pure/ms-table/batchAction.vue @@ -118,7 +118,10 @@ moreActionLength.value = 0; } else { moreAction.value?.forEach((key) => { - if (key.permission && hasAllPermission(key.permission as string[])) { + if ( + (key.anyPermission && hasAnyPermission(key.anyPermission as string[])) || + (key.permission && hasAllPermission(key.permission as string[])) + ) { moreActionLength.value += 1; } }); diff --git a/frontend/src/views/project-management/taskCenter/component/apiCase.vue b/frontend/src/views/project-management/taskCenter/component/apiCase.vue index b0a9921a2a..71e4b6b310 100644 --- a/frontend/src/views/project-management/taskCenter/component/apiCase.vue +++ b/frontend/src/views/project-management/taskCenter/component/apiCase.vue @@ -487,7 +487,6 @@ label: 'project.taskCenter.batchStop', eventTag: 'batchStop', anyPermission: permissionsMap[props.group][props.moduleType].stop, - permission: permissionsMap[props.group][props.moduleType].stop, }, // { // label: 'project.taskCenter.batchExecution', diff --git a/frontend/src/views/project-management/taskCenter/component/scheduledTask.vue b/frontend/src/views/project-management/taskCenter/component/scheduledTask.vue index 82f799d3fd..3cbbf0a304 100644 --- a/frontend/src/views/project-management/taskCenter/component/scheduledTask.vue +++ b/frontend/src/views/project-management/taskCenter/component/scheduledTask.vue @@ -394,13 +394,11 @@ label: 'project.taskCenter.batchEnable', eventTag: 'batchEnable', anyPermission: permissionsMap[props.group][props.moduleType].edit, - permission: permissionsMap[props.group][props.moduleType].edit, }, { label: 'project.taskCenter.batchDisable', eventTag: 'batchDisable', anyPermission: permissionsMap[props.group][props.moduleType].edit, - permission: permissionsMap[props.group][props.moduleType].edit, }, ], };