fix(测试跟踪): 修复功能用例,有的用例不修改信息,点关闭也有保存提示的缺陷

--bug=1010434 --user=王孝刚 【测试跟踪】功能用例,有的用例不修改信息,点关闭也有保存提示
https://www.tapd.cn/55049933/s/1109488
This commit is contained in:
wxg0103 2022-02-24 10:47:53 +08:00 committed by 刘瑞斌
parent d8258c404e
commit 5c28f0096b
1 changed files with 8 additions and 2 deletions

View File

@ -354,7 +354,7 @@ name: "TestCaseMinder",
nodeId: nodeId,
nodePath: getNodePath(nodeId, this.moduleOptions),
type: data.type ? data.type : 'functional',
method: data.method ? data.method: 'manual',
method: data.method ? data.method : 'manual',
maintainer: this.testCaseDefaultValue['责任人'] ? this.testCaseDefaultValue['责任人'] : data.maintainer,
priority: priorityDefaultValue,
prerequisite: "",
@ -362,7 +362,13 @@ name: "TestCaseMinder",
stepDescription: "",
expectedResult: "",
status: this.testCaseDefaultValue['用例状态'],
steps: "[]"
steps: [{
num: 1,
desc: '',
result: ''
}],
tags: "[]",
stepModel: "STEP"
};
if (data.changed) isChange = true;
let steps = [];