fix(测试跟踪): 测试计划脑图保存报错

--bug=1040625 --user=陈建星 【测试跟踪】测试计划-脑图-编辑脑图后保存失败 https://www.tapd.cn/55049933/s/1515280
This commit is contained in:
AgAngle 2024-05-13 14:46:31 +08:00 committed by Craftsman
parent d50ffba694
commit 80a9af25f8
3 changed files with 5 additions and 5 deletions

View File

@ -136,10 +136,10 @@ public class TestPlanTestCaseController {
return testPlanTestCaseService.editTestCase(testPlanTestCase); return testPlanTestCaseService.editTestCase(testPlanTestCase);
} }
@PostMapping("/minder/edit") @PostMapping("/minder/edit/{planId}")
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_PLAN_READ_RUN) @RequiresPermissions(PermissionConstants.PROJECT_TRACK_PLAN_READ_RUN)
@MsAuditLog(module = OperLogModule.TRACK_TEST_PLAN, type = OperLogConstants.MINDER_OPERATION, content = "#msClass.getCaseLogDetails(#testPlanTestCases)", msClass = TestPlanTestCaseService.class) @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<TestPlanTestCaseWithBLOBs> testPlanTestCases) { public void editTestCaseForMinder(@RequestBody List<TestPlanTestCaseWithBLOBs> testPlanTestCases) {
testPlanTestCaseService.editTestCaseForMinder(testPlanTestCases); testPlanTestCaseService.editTestCaseForMinder(testPlanTestCases);
} }

View File

@ -2,6 +2,6 @@ import {post, get} from "@/business/utils/sdk-utils";
const BASE_URL = '/test/plan/case/'; const BASE_URL = '/test/plan/case/';
export function testPlanCaseMinderEdit(param) { export function testPlanCaseMinderEdit(planId, param) {
return post(BASE_URL + 'minder/edit', param); return post(BASE_URL + 'minder/edit/' + planId, param);
} }

View File

@ -197,7 +197,7 @@ export default {
let saveCases = []; let saveCases = [];
this.buildSaveCase(data.root, saveCases); this.buildSaveCase(data.root, saveCases);
this.result.loading = true; this.result.loading = true;
testPlanCaseMinderEdit(saveCases) testPlanCaseMinderEdit(this.planId, saveCases)
.then(() => { .then(() => {
this.result.loading = false; this.result.loading = false;
this.$success(this.$t('commons.save_success')); this.$success(this.$t('commons.save_success'));