mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 05:29:29 +08:00
fix(测试计划): 修复测试方式为自动时通过按钮禁止
This commit is contained in:
parent
f10fef30bf
commit
dd049e7893
@ -366,6 +366,7 @@
|
||||
this.$nextTick(() => {
|
||||
if (this.testCase.method == 'auto') {
|
||||
if (this.$refs.apiTestDetail && this.testCase.type == 'api') {
|
||||
|
||||
this.$refs.apiTestDetail.init();
|
||||
} else if (this.testCase.type == 'performance') {
|
||||
this.$refs.performanceTestDetail.init();
|
||||
@ -432,10 +433,13 @@
|
||||
this.$post('/test/plan/edit/status/' + planId);
|
||||
},
|
||||
stepResultChange() {
|
||||
if (this.testCase.method == 'manual') {
|
||||
this.isFailure = this.testCase.steptResults.filter(s => {
|
||||
return !s.executeResult || s.executeResult === 'Failure' || s.executeResult === 'Blocking';
|
||||
}).length > 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user