diff --git a/frontend/src/business/components/api/report/ApiReportList.vue b/frontend/src/business/components/api/report/ApiReportList.vue
index 05941386ff..b20419462a 100644
--- a/frontend/src/business/components/api/report/ApiReportList.vue
+++ b/frontend/src/business/components/api/report/ApiReportList.vue
@@ -20,15 +20,19 @@
{{ scope.row.createTime | timestampFormatDate }}
-
+
-
-
+
+
@@ -57,7 +61,15 @@
currentPage: 1,
pageSize: 5,
total: 0,
- loading: false
+ loading: false,
+ statusFilters: [
+ {text: 'Saved', value: 'Saved'},
+ {text: 'Starting', value: 'Starting'},
+ {text: 'Running', value: 'Running'},
+ {text: 'Reporting', value: 'Reporting'},
+ {text: 'Completed', value: 'Completed'},
+ {text: 'Error', value: 'Error'}
+ ]
}
},
@@ -106,6 +118,9 @@
init() {
this.testId = this.$route.params.testId;
this.search();
+ },
+ filter(value, row) {
+ return row.status === value;
}
},
diff --git a/frontend/src/business/components/api/test/ApiTestList.vue b/frontend/src/business/components/api/test/ApiTestList.vue
index a549faa9f4..3a52b396fb 100644
--- a/frontend/src/business/components/api/test/ApiTestList.vue
+++ b/frontend/src/business/components/api/test/ApiTestList.vue
@@ -25,7 +25,9 @@
{{ scope.row.updateTime | timestampFormatDate }}
-
+
@@ -79,6 +81,14 @@
tip: this.$t('commons.delete'), icon: "el-icon-delete", type: "danger",
exec: this.handleDelete
}
+ ],
+ statusFilters: [
+ {text: 'Saved', value: 'Saved'},
+ {text: 'Starting', value: 'Starting'},
+ {text: 'Running', value: 'Running'},
+ {text: 'Reporting', value: 'Reporting'},
+ {text: 'Completed', value: 'Completed'},
+ {text: 'Error', value: 'Error'}
]
}
},
@@ -137,11 +147,15 @@
init() {
this.projectId = this.$route.params.projectId;
this.search();
+ },
+ filter(value, row) {
+ return row.status === value;
}
},
created() {
this.init();
}
+
}