fix(测试跟踪): 保存时用例ID未传值
--bug=1024402 --user=宋昌昌 【测试跟踪】功能用例-详情页点击编辑用例步骤-文本描述-保存报错 https://www.tapd.cn/55049933/s/1354191
This commit is contained in:
parent
9264762f72
commit
385d1b0d2e
|
@ -2273,10 +2273,10 @@ public class TestCaseService {
|
||||||
|
|
||||||
public TestCase edit(EditTestCaseRequest request) {
|
public TestCase edit(EditTestCaseRequest request) {
|
||||||
TestCaseWithBLOBs testCaseWithBLOBs = testCaseMapper.selectByPrimaryKey(request.getId());
|
TestCaseWithBLOBs testCaseWithBLOBs = testCaseMapper.selectByPrimaryKey(request.getId());
|
||||||
request.setNum(testCaseWithBLOBs.getNum());
|
|
||||||
if (testCaseWithBLOBs == null) {
|
if (testCaseWithBLOBs == null) {
|
||||||
MSException.throwException(Translator.get("edit_load_test_not_found") + request.getId());
|
MSException.throwException(Translator.get("edit_load_test_not_found") + request.getId());
|
||||||
}
|
}
|
||||||
|
request.setNum(testCaseWithBLOBs.getNum());
|
||||||
this.setNode(request);
|
this.setNode(request);
|
||||||
return editTestCase(request);
|
return editTestCase(request);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1249,6 +1249,7 @@ export default {
|
||||||
this.routerToEdit(response.data.id);
|
this.routerToEdit(response.data.id);
|
||||||
this.form.num = response.data.num;
|
this.form.num = response.data.num;
|
||||||
this.form.customNum = response.data.customNum;
|
this.form.customNum = response.data.customNum;
|
||||||
|
setTimeout(() => this.initEdit(), 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.createVersionId = null;
|
this.createVersionId = null;
|
||||||
|
|
|
@ -304,6 +304,7 @@ export default {
|
||||||
flex: none;
|
flex: none;
|
||||||
order: 0;
|
order: 0;
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-tips-content {
|
.download-tips-content {
|
||||||
|
|
Loading…
Reference in New Issue