fix(接口自动化): 任务中心增加任务类型区分

This commit is contained in:
fit2-zhao 2021-07-21 17:08:00 +08:00 committed by fit2-zhao
parent 0433f5b652
commit 04e70e0868
2 changed files with 12 additions and 1 deletions

View File

@ -79,6 +79,7 @@ export default {
},
methods: {
changeButtonLoadingType(){
this.refresh();
this.buttonIsWorking = false;
},
reference() {

View File

@ -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 }}
@ -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) {