fix(测试跟踪): 修复用例 编辑时模块不反显问题
This commit is contained in:
parent
c6a09e3751
commit
c77631de58
|
@ -275,6 +275,20 @@ export default {
|
||||||
this.testCaseTemplate = template;
|
this.testCaseTemplate = template;
|
||||||
initAddFuc();
|
initAddFuc();
|
||||||
});
|
});
|
||||||
|
if(this.selectNode && this.selectNode.data && !this.form.id){
|
||||||
|
this.form.module = this.selectNode.data.id;
|
||||||
|
this.form.nodePath = this.selectNode.data.path;
|
||||||
|
}else{
|
||||||
|
this.form.module =this.treeNodes && this.length>0? this.treeNodes[0].id:"";
|
||||||
|
}
|
||||||
|
if (this.type === 'edit' || this.type === 'copy') {
|
||||||
|
this.form.module = this.currentTestCaseInfo.nodeId;
|
||||||
|
this.form.nodePath = this.currentTestCaseInfo.nodePath;
|
||||||
|
}
|
||||||
|
if((!this.form.module || this.form.module==="default-module" || this.form.module ==="root") && this.treeNodes.length > 0){
|
||||||
|
this.form.module = this.treeNodes[0].id;
|
||||||
|
this.form.nodePath = this.treeNodes[0].path;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setModule(id,data) {
|
setModule(id,data) {
|
||||||
|
|
Loading…
Reference in New Issue