diff --git a/backend/src/main/resources/permission.json b/backend/src/main/resources/permission.json index 1891a9c7be..abbe290a54 100644 --- a/backend/src/main/resources/permission.json +++ b/backend/src/main/resources/permission.json @@ -522,6 +522,11 @@ "name": "commons.batch_restore", "resourceId": "PROJECT_TRACK_CASE" }, + { + "id": "PROJECT_TRACK_CASE:READ+BATCH_LINK_DEMAND", + "name": "test_track.case.batch_link_demand", + "resourceId": "PROJECT_TRACK_CASE" + }, { "id": "PROJECT_TRACK_CASE:READ+GENERATE_DEPENDENCIES", "name": "test_track.case.generate_dependencies", diff --git a/frontend/src/business/components/track/case/components/TestCaseList.vue b/frontend/src/business/components/track/case/components/TestCaseList.vue index 5dc45e82c7..83eb556e0f 100644 --- a/frontend/src/business/components/track/case/components/TestCaseList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseList.vue @@ -381,7 +381,8 @@ export default { }, { name: this.$t('test_track.demand.batch_relate'), - handleClick: this.openRelateDemand + handleClick: this.openRelateDemand, + permissions: ['PROJECT_TRACK_CASE:READ+BATCH_LINK_DEMAND'] }, { name: this.$t('test_track.case.generate_dependencies'), diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index a8d542b122..d87cacbdf2 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -2148,6 +2148,7 @@ export default { batch_move_case: 'Batch move', batch_copy: 'Batch copy', batch_add_public: 'Batch add public', + batch_link_demand: 'Bulk Association Requirements', public_warning: 'The public library configuration is not enabled', generate_dependencies: 'Generate dependencies', generate_dependencies_warning: 'For a better experience, it is recommended to check the data below 100', diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 086ae30c86..c23c2d3df8 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -2148,6 +2148,7 @@ export default { batch_delete_case: '批量删除', batch_copy: '批量复制', batch_add_public: '批量添加到公共用例库', + batch_link_demand: '批量关联需求', public_warning: '未开启公共库用例配置', generate_dependencies: '生成依赖关系', generate_dependencies_warning: '为了更好的体验,建议勾选一百条以下的数据', diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index bdd27fef03..68c710054b 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -2143,6 +2143,7 @@ export default { batch_delete_case: '批量刪除', batch_copy: '批量復製', batch_add_public: '批量添加到公共用例庫', + batch_link_demand: '批量關聯需求', public_warning: '未開啟公共庫用例配置', generate_dependencies: '生成依賴關系', generate_dependencies_warning: '為了更好的體驗,建議勾選一百條以下的數據',