修改报告按钮显示条件

This commit is contained in:
q4speed 2020-05-18 16:46:55 +08:00
parent 33977c94bd
commit a4dfcf3f09
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,7 @@
<el-button type="warning" plain @click="cancel">{{$t('commons.cancel')}}</el-button>
<ms-api-report-dialog :test-id="id" v-if="id"/>
<ms-api-report-dialog :test-id="id" v-if="test.status === 'Completed'"/>
</el-row>
</el-header>
<ms-api-scenario-config :scenarios="test.scenarioDefinition" ref="config"/>
@ -95,6 +95,7 @@
id: item.id,
projectId: item.projectId,
name: item.name,
status: item.status,
scenarioDefinition: JSON.parse(item.scenarioDefinition),
});
this.$refs.config.reset();