fix(接口自动化): 任务中心增加任务类型区分
This commit is contained in:
parent
0433f5b652
commit
04e70e0868
|
@ -79,6 +79,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
changeButtonLoadingType(){
|
||||
this.refresh();
|
||||
this.buttonIsWorking = false;
|
||||
},
|
||||
reference() {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue