fix:测试跟踪-测试用例下拉框-创建用例,会提示没项目
This commit is contained in:
parent
937d33e955
commit
88c2073002
|
@ -260,9 +260,14 @@ export default {
|
||||||
this.$warning(this.$t('commons.check_project_tip'));
|
this.$warning(this.$t('commons.check_project_tip'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/*
|
if (caseId) {
|
||||||
this.openRecentTestCaseEditDialog(caseId);
|
this.$get('test/case/get/' + caseId, response => {
|
||||||
*/
|
let testCase = response.data;
|
||||||
|
this.editTestCase(testCase)
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.addTab({name: 'add'});
|
||||||
|
}
|
||||||
this.$router.push('/track/case/all');
|
this.$router.push('/track/case/all');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -551,7 +551,11 @@ export default {
|
||||||
let tmp = {};
|
let tmp = {};
|
||||||
Object.assign(tmp, testCase);
|
Object.assign(tmp, testCase);
|
||||||
tmp.steps = JSON.parse(testCase.steps);
|
tmp.steps = JSON.parse(testCase.steps);
|
||||||
|
if (tmp.steps == null) {
|
||||||
|
tmp.steps = []
|
||||||
|
}
|
||||||
Object.assign(this.form, tmp);
|
Object.assign(this.form, tmp);
|
||||||
|
|
||||||
this.form.module = testCase.nodeId;
|
this.form.module = testCase.nodeId;
|
||||||
this.getFileMetaData(testCase);
|
this.getFileMetaData(testCase);
|
||||||
},
|
},
|
||||||
|
@ -964,4 +968,11 @@ export default {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/deep/ .el-button-group > .el-button:first-child {
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
height: 32px;
|
||||||
|
width: 56px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue