修改按钮禁用

This commit is contained in:
q4speed 2020-05-29 15:28:12 +08:00
parent b116516af1
commit 9472430209
1 changed files with 2 additions and 2 deletions

View File

@ -30,10 +30,10 @@
<el-dropdown trigger="click" @command="handleCommand">
<el-button class="el-dropdown-link more" icon="el-icon-more" plain/>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="report" v-if="test.status === 'Completed'">
<el-dropdown-item command="report" :disabled="test.status !== 'Completed'">
{{$t('api_report.title')}}
</el-dropdown-item>
<el-dropdown-item command="performance">
<el-dropdown-item command="performance" :disabled="create">
{{$t('api_test.create_performance_test')}}
</el-dropdown-item>
</el-dropdown-menu>