refactor: 脑图测试步骤和预期结果不加标签

This commit is contained in:
chenjianxing 2021-03-17 13:17:33 +08:00
parent e30209e990
commit 51e0461dc3
4 changed files with 4 additions and 7 deletions

View File

@ -54,7 +54,6 @@ export default {
/*this.optionalField = items*/
},
saveHeader() {
console.log(this.type)
let param = {
userId: getCurrentUser().id,
type: this.type,

View File

@ -679,8 +679,6 @@ export default {
return param;
},
getOption(param) {
console.log(this.type)
console.log("3452")
let formData = new FormData();
let type = this.type
if (this.type === 'copy') {

View File

@ -18,7 +18,7 @@ name: "TestCaseMinder",
return{
testCase: [],
dataMap: new Map(),
tags: ['用例', '测试步骤', '预期结果', '备注'],
tags: ['用例', '前置条件', '备注'],
result: {}
}
},

View File

@ -42,11 +42,11 @@ function parseChildren(nodeItem, item, isDisable) {
let children = [];
_parseChildren(children, item.prerequisite, "前置条件", isDisable);
item.steps.forEach((step) => {
let descNode = _parseChildren(children, step.desc, "测试步骤", isDisable);
let descNode = _parseChildren(children, step.desc, undefined, isDisable);
if (descNode) {
descNode.data.num = step.num;
descNode.children = [];
_parseChildren(descNode.children, step.result, "预期结果", isDisable);
_parseChildren(descNode.children, step.result, undefined, isDisable);
}
});
_parseChildren(children, item.remark, "备注", isDisable);
@ -58,7 +58,7 @@ function _parseChildren(children, k, v, isDisable) {
let node = {
data: {
text: k,
resource: [v]
resource: v ? [v] : []
}
}
if (isDisable) {