parent
bf529cc8b5
commit
be1ef89069
|
@ -105,10 +105,13 @@
|
||||||
<ms-table-operator-button class="run-button"
|
<ms-table-operator-button class="run-button"
|
||||||
:tip="$t('api_test.automation.execute')"
|
:tip="$t('api_test.automation.execute')"
|
||||||
icon="el-icon-video-play"
|
icon="el-icon-video-play"
|
||||||
|
v-permission="['PROJECT_API_DEFINITION:READ+RUN']"
|
||||||
@exec="runTestCase(scope.row)"/>
|
@exec="runTestCase(scope.row)"/>
|
||||||
<ms-table-operator-button :tip="$t('commons.edit')" icon="el-icon-edit" @exec="handleTestCase(scope.row)"
|
<ms-table-operator-button :tip="$t('commons.edit')" icon="el-icon-edit" @exec="handleTestCase(scope.row)"
|
||||||
|
v-permission="['PROJECT_API_DEFINITION:READ+EDIT_CASE']"
|
||||||
/>
|
/>
|
||||||
<ms-table-operator-button :tip="$t('commons.delete')" icon="el-icon-delete" @exec="handleDelete(scope.row)"
|
<ms-table-operator-button :tip="$t('commons.delete')" icon="el-icon-delete" @exec="handleDelete(scope.row)"
|
||||||
|
v-permission="['PROJECT_API_DEFINITION:READ+DELETE_CASE']"
|
||||||
type="danger"/>
|
type="danger"/>
|
||||||
<ms-api-case-table-extend-btns @showCaseRef="showCaseRef" @showEnvironment="showEnvironment"
|
<ms-api-case-table-extend-btns @showCaseRef="showCaseRef" @showEnvironment="showEnvironment"
|
||||||
@createPerformance="createPerformance" :row="scope.row"/>
|
@createPerformance="createPerformance" :row="scope.row"/>
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
</el-link>
|
</el-link>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item command="ref">{{ $t('api_test.automation.view_ref') }}</el-dropdown-item>
|
<el-dropdown-item command="ref">{{ $t('api_test.automation.view_ref') }}</el-dropdown-item>
|
||||||
<el-dropdown-item command="create_performance" v-modules="['performance']">
|
<el-dropdown-item command="create_performance" v-modules="['performance']"
|
||||||
|
v-permission="['PROJECT_API_DEFINITION:READ+CREATE_PERFORMANCE']"
|
||||||
|
>
|
||||||
{{ $t('api_test.create_performance_test') }}
|
{{ $t('api_test.create_performance_test') }}
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
|
|
Loading…
Reference in New Issue