Merge branch 'master' of https://github.com/metersphere/metersphere
This commit is contained in:
commit
00af593531
|
@ -23,7 +23,8 @@ public class ReportFailureAdvanceResultComponent extends ReportComponent {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void readRecord(TestPlanCaseDTO testCase) {
|
public void readRecord(TestPlanCaseDTO testCase) {
|
||||||
if (StringUtils.equals(testCase.getStatus(), TestPlanTestCaseStatus.Failure.name())) {
|
if (StringUtils.equals(testCase.getStatus(), TestPlanTestCaseStatus.Failure.name()) ||
|
||||||
|
StringUtils.equals(testCase.getStatus(), TestPlanTestCaseStatus.Blocking.name())) {
|
||||||
this.functionalTestCases.add(testCase);
|
this.functionalTestCases.add(testCase);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,10 +52,7 @@ export default {
|
||||||
this.defaultCheckedKeys.push(i.id)
|
this.defaultCheckedKeys.push(i.id)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
console.log(this.defaultCheckedKeys)
|
this.fieldSelected = items;
|
||||||
console.log(this.optionalFields)
|
|
||||||
console.log(this.fieldSelected)
|
|
||||||
|
|
||||||
},
|
},
|
||||||
saveHeader() {
|
saveHeader() {
|
||||||
let param = {
|
let param = {
|
||||||
|
@ -67,8 +64,8 @@ export default {
|
||||||
console.log(this.optionalFields)
|
console.log(this.optionalFields)
|
||||||
console.log(this.fieldSelected)
|
console.log(this.fieldSelected)
|
||||||
this.$success(this.$t("commons.save_success"));
|
this.$success(this.$t("commons.save_success"));
|
||||||
this.dialogTableVisible = false
|
|
||||||
this.initTableData()
|
this.initTableData()
|
||||||
|
this.close();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
removeAt(idx) {
|
removeAt(idx) {
|
||||||
|
|
|
@ -682,8 +682,6 @@ export default {
|
||||||
}
|
}
|
||||||
this.dialogFormVisible = false;
|
this.dialogFormVisible = false;
|
||||||
this.$emit("refresh");
|
this.$emit("refresh");
|
||||||
// 发送广播,刷新 head 上的最新列表
|
|
||||||
TrackEvent.$emit(LIST_CHANGE);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -453,15 +453,12 @@ export default {
|
||||||
this.initTable();
|
this.initTable();
|
||||||
},
|
},
|
||||||
singleRun(row) {
|
singleRun(row) {
|
||||||
if (!row.environmentId) {
|
|
||||||
this.$warning(this.$t('api_test.environment.select_environment'));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.runData = [];
|
this.runData = [];
|
||||||
|
|
||||||
this.rowLoading = row.id;
|
this.rowLoading = row.id;
|
||||||
|
|
||||||
this.$get('/api/testcase/get/' + row.caseId, (response) => {
|
this.$get('/api/testcase/get/' + row.caseId, (response) => {
|
||||||
|
console.log(response.data)
|
||||||
let apiCase = response.data;
|
let apiCase = response.data;
|
||||||
let request = JSON.parse(apiCase.request);
|
let request = JSON.parse(apiCase.request);
|
||||||
request.name = row.id;
|
request.name = row.id;
|
||||||
|
|
Loading…
Reference in New Issue