refactor: 用例通知跳转

This commit is contained in:
Captain.B 2021-09-14 16:52:59 +08:00 committed by 刘瑞斌
parent 35109cee86
commit a3e5b567c2
2 changed files with 10 additions and 1 deletions

View File

@ -152,7 +152,7 @@ export function getUrl(d) {
url += "/performance/test/edit/" + d.resourceId;
break;
case "TRACK_TEST_CASE_TASK" :
url += "/track/case/all";
url += "/track/case/all?resourceId=" + d.resourceId;
break;
case "TRACK_HOME_TASK" :
url += "/track/home";

View File

@ -407,6 +407,15 @@ export default {
if(!this.projectName || this.projectName === ""){
this.getProjectName();
}
//
if (this.$route.query.resourceId) {
this.$get('test/case/get/' + this.$route.query.resourceId, response => {
let testCase = response.data;
testCase.label = 'redirect';
this.$emit('testCaseEdit', testCase);
});
}
},
activated() {
this.getTemplateField();