fix(测试跟踪): 测试计划UI列表拖动排序报错问题
--bug=1018883 --user=宋昌昌 【测试跟踪】测试计划-UI用例-拖动用例顺序-提示“更新order字段失败” https://www.tapd.cn/55049933/s/1277369
This commit is contained in:
parent
f53e83a10b
commit
ba78a57e1c
|
@ -4,6 +4,7 @@ import io.metersphere.dto.ModuleNodeDTO;
|
|||
import io.metersphere.plan.request.api.ApiScenarioRequest;
|
||||
import io.metersphere.plan.service.TestPlanProjectService;
|
||||
import io.metersphere.plan.service.remote.ui.PlanTestPlanUiScenarioCaseService;
|
||||
import io.metersphere.request.ResetOrderRequest;
|
||||
import io.metersphere.service.wapper.CheckPermissionService;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
@ -32,4 +33,9 @@ public class TrackTestPlanUiScenarioCaseController {
|
|||
public Object relevanceList(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody ApiScenarioRequest request) {
|
||||
return planTestPlanUiScenarioCaseService.relevanceList(request, goPage, pageSize);
|
||||
}
|
||||
|
||||
@PostMapping("/edit/order")
|
||||
public void orderCase(@RequestBody ResetOrderRequest request) {
|
||||
planTestPlanUiScenarioCaseService.orderCase(request);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ import io.metersphere.plan.service.TestPlanService;
|
|||
import io.metersphere.plan.service.remote.api.PlanTestPlanScenarioCaseService;
|
||||
import io.metersphere.plan.service.remote.api.PlanUiScenarioReportService;
|
||||
import io.metersphere.plan.utils.TestPlanStatusCalculator;
|
||||
import io.metersphere.request.ResetOrderRequest;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
@ -136,4 +137,8 @@ public class PlanTestPlanUiScenarioCaseService extends UiTestService {
|
|||
request.setAllowedRepeatCase(testPlanService.isAllowedRepeatCase(request.getPlanId()));
|
||||
return microService.postForData(serviceName, BASE_UEL + String.format("/relevance/list/%s/%s", pageNum, pageSize), request);
|
||||
}
|
||||
|
||||
public void orderCase(ResetOrderRequest request) {
|
||||
microService.postForData(serviceName, BASE_UEL + "/edit/order", request);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -236,6 +236,10 @@ export function editTestPlanScenarioCaseOrder(request) {
|
|||
return post(BASE_URL + 'scenario/case/edit/order', request);
|
||||
}
|
||||
|
||||
export function editTestPlanUiScenarioCaseOrder(request) {
|
||||
return post(BASE_URL + 'uiScenario/case/edit/order', request);
|
||||
}
|
||||
|
||||
export function editTestPlanLoadCaseOrder(request) {
|
||||
return post(BASE_URL + 'load/case/edit/order', request);
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
:field-key="tableHeaderKey"
|
||||
:enable-order-drag="enableOrderDrag"
|
||||
row-key="id"
|
||||
:row-order-func="editTestPlanScenarioCaseOrder"
|
||||
:row-order-func="editTestPlanUiScenarioCaseOrder"
|
||||
:row-order-group-id="planId"
|
||||
@order="search"
|
||||
@filter="filterSearch"
|
||||
|
@ -206,7 +206,7 @@ import MsTable from "metersphere-frontend/src/components/table/MsTable";
|
|||
import MsTableColumn from "metersphere-frontend/src/components/table/MsTableColumn";
|
||||
import MsUpdateTimeColumn from "metersphere-frontend/src/components/table/MsUpdateTimeColumn";
|
||||
import MsCreateTimeColumn from "metersphere-frontend/src/components/table/MsCreateTimeColumn";
|
||||
import {editTestPlanScenarioCaseOrder} from "@/api/remote/plan/test-plan";
|
||||
import {editTestPlanUiScenarioCaseOrder} from "@/api/remote/plan/test-plan";
|
||||
import {
|
||||
testPlanUiScenarioCaseBatchDelete, testPlanUiScenarioCaseBatchUpdateEnv, testPlanUiScenarioCaseDelete,
|
||||
testPlanUiScenarioCaseRun, testPlanUiScenarioCaseSelectAllTableRows, testPlanUiScenarioEnv,
|
||||
|
@ -332,8 +332,8 @@ export default {
|
|||
projectId() {
|
||||
return getCurrentProjectID();
|
||||
},
|
||||
editTestPlanScenarioCaseOrder() {
|
||||
return editTestPlanScenarioCaseOrder;
|
||||
editTestPlanUiScenarioCaseOrder() {
|
||||
return editTestPlanUiScenarioCaseOrder;
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
Loading…
Reference in New Issue