Unverified Commit a33bdc39 authored by metersphere-bot's avatar metersphere-bot Committed by GitHub
Browse files

refactor: 执行按钮样式优化 (#4336)

Co-authored-by: default avatarchenjianxing <jianxing.chen@fit2cloud.com>
parent 7cd44b83
Showing with 7 additions and 1 deletion
+7 -1
......@@ -333,6 +333,7 @@ export default {
tip: this.$t('api_test.automation.execute'),
icon: "el-icon-video-play",
exec: this.execute,
class: "run-button",
permissions: ['PROJECT_API_SCENARIO:READ+RUN']
},
{
......
......@@ -64,7 +64,7 @@
<el-col :span="4">
<span @click.stop>
<ms-tip-button @click="singleRun(apiCase)" :tip="$t('api_test.run')" icon="el-icon-video-play"
style="background-color: #409EFF;color: white" size="mini" :disabled="!apiCase.id" circle/>
class="run-button" size="mini" :disabled="!apiCase.id" circle/>
<ms-tip-button @click="copyCase(apiCase)" :tip="$t('commons.copy')" icon="el-icon-document-copy"
size="mini" :disabled="!apiCase.id || isCaseEdit" circle/>
<ms-tip-button @click="deleteCase(index,apiCase)" :tip="$t('commons.delete')" icon="el-icon-delete"
......
......@@ -218,6 +218,7 @@ export default {
tip: this.$t('api_test.automation.execute'),
icon: "el-icon-video-play",
exec: this.runTestCase,
class: "run-button",
permissions: ['PROJECT_API_DEFINITION:READ+RUN']
},
{
......
......@@ -264,6 +264,7 @@ export default {
tip: this.$t('api_test.automation.execute'),
icon: "el-icon-video-play",
exec: this.runApi,
class: "run-button",
permissions: ['PROJECT_API_DEFINITION:READ+RUN']
},
{
......@@ -299,6 +300,7 @@ export default {
tip: this.$t('api_test.automation.execute'),
icon: "el-icon-video-play",
exec: this.runApi,
class: "run-button",
permissions: ['PROJECT_API_DEFINITION:READ+RUN']
},
{tip: this.$t('commons.reduction'), icon: "el-icon-refresh-left", exec: this.reductionApi},
......
......@@ -3,6 +3,7 @@
<ms-table-operator-button v-for="(btn, index) in buttons" :key="index"
v-permission="btn.permissions"
:disabled="isDisable(btn)"
:class="btn.class"
:tip="btn.tip" :icon="btn.icon" :type="btn.type" :isDivButton="btn.isDivButton"
@exec="click(btn)" @click.stop="clickStop(btn)"/>
</span>
......
......@@ -287,4 +287,5 @@ textarea {
.run-button .el-button {
background-color: #409EFF;
border-color: #409EFF;
color: white;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment