diff --git a/test-track/backend/src/main/java/io/metersphere/controller/TestPlanTestCaseController.java b/test-track/backend/src/main/java/io/metersphere/controller/TestPlanTestCaseController.java index e541143f49..f792903f9c 100644 --- a/test-track/backend/src/main/java/io/metersphere/controller/TestPlanTestCaseController.java +++ b/test-track/backend/src/main/java/io/metersphere/controller/TestPlanTestCaseController.java @@ -136,10 +136,10 @@ public class TestPlanTestCaseController { return testPlanTestCaseService.editTestCase(testPlanTestCase); } - @PostMapping("/minder/edit") + @PostMapping("/minder/edit/{planId}") @RequiresPermissions(PermissionConstants.PROJECT_TRACK_PLAN_READ_RUN) @MsAuditLog(module = OperLogModule.TRACK_TEST_PLAN, type = OperLogConstants.MINDER_OPERATION, content = "#msClass.getCaseLogDetails(#testPlanTestCases)", msClass = TestPlanTestCaseService.class) - @CheckOwner(resourceId = "#request.getPlanId()", resourceType = "test_plan") + @CheckOwner(resourceId = "#planId", resourceType = "test_plan") public void editTestCaseForMinder(@RequestBody List testPlanTestCases) { testPlanTestCaseService.editTestCaseForMinder(testPlanTestCases); } diff --git a/test-track/frontend/src/api/remote/plan/test-plan-case.js b/test-track/frontend/src/api/remote/plan/test-plan-case.js index b0376c25a3..ca0b73bf5b 100644 --- a/test-track/frontend/src/api/remote/plan/test-plan-case.js +++ b/test-track/frontend/src/api/remote/plan/test-plan-case.js @@ -2,6 +2,6 @@ import {post, get} from "@/business/utils/sdk-utils"; const BASE_URL = '/test/plan/case/'; -export function testPlanCaseMinderEdit(param) { - return post(BASE_URL + 'minder/edit', param); +export function testPlanCaseMinderEdit(planId, param) { + return post(BASE_URL + 'minder/edit/' + planId, param); } diff --git a/test-track/frontend/src/business/common/minder/TestPlanMinder.vue b/test-track/frontend/src/business/common/minder/TestPlanMinder.vue index dcfac035a2..8a8e3abd9a 100644 --- a/test-track/frontend/src/business/common/minder/TestPlanMinder.vue +++ b/test-track/frontend/src/business/common/minder/TestPlanMinder.vue @@ -197,7 +197,7 @@ export default { let saveCases = []; this.buildSaveCase(data.root, saveCases); this.result.loading = true; - testPlanCaseMinderEdit(saveCases) + testPlanCaseMinderEdit(this.planId, saveCases) .then(() => { this.result.loading = false; this.$success(this.$t('commons.save_success'));