Skip to content

Commit

Permalink
fix(接口自动化): 任务中心增加任务类型区分
Browse files Browse the repository at this point in the history
  • Loading branch information
fit2-zhao committed Jul 21, 2021
1 parent 0433f5b commit 04e70e0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default {
},
methods: {
changeButtonLoadingType(){
this.refresh();
this.buttonIsWorking = false;
},
reference() {
Expand Down
12 changes: 11 additions & 1 deletion frontend/src/business/components/task/TaskCenter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<div class="report-container">
<div v-for="item in taskData" :key="item.id" style="margin-bottom: 5px">
<el-card class="ms-card-task" @click.native="showReport(item,$event)">
<span>{{ item.name }} </span><br/>
<span><el-link type="primary">{{getModeName(item.executionModule)}} </el-link>: {{ item.name }} </span><br/>
<span>
执行器:{{ item.actuator }} 由 {{ item.executor }}
{{ item.executionTime | timestampFormatDate }}
Expand Down Expand Up @@ -217,6 +217,16 @@ export default {
}
return 60;
},
getModeName(executionModule){
switch (executionModule) {
case "SCENARIO":
return this.$t('test_track.scenario_test_case');
case "PERFORMANCE":
return this.$t('test_track.performance_test_case');
case "API":
return this.$t('test_track.api_test_case');
}
},
showReport(row, env) {
let status = row.executionStatus;
if (status) {
Expand Down

0 comments on commit 04e70e0

Please sign in to comment.