fix: 脑图优先级显示错误

This commit is contained in:
chenjianxing 2021-03-22 17:45:06 +08:00
parent 254aa4e63d
commit 4e10b2eec7
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
:tree-nodes="treeNodes"
:data-map="dataMap"
:tags="tags"
:distinct-tags="tags"
@save="save"
/>
</template>
@ -83,7 +84,7 @@ name: "TestCaseMinder",
type: data.type ? data.type : 'functional',
method: data.method ? data.method: 'manual',
maintainer: data.maintainer,
priority: 'P' + (data.priority ? data.priority : 0),
priority: 'P' + (data.priority ? data.priority - 1 : 0),
};
if (data.changed) isChange = true;
let steps = [];

View File

@ -10,7 +10,7 @@ export function getTestCaseDataMap(testCase, isDisable, setParamCallback) {
data: {
id: item.id,
text: item.name,
priority: Number.parseInt(item.priority.substring(item.priority.length - 1 )),
priority: Number.parseInt(item.priority.substring(item.priority.length - 1 )) + 1,
resource: ["用例"],
type: item.type,
method: item.method,