diff --git a/web/src/components/RequestList.vue b/web/src/components/RequestList.vue
index c3f5ad430..e0de78c5b 100644
--- a/web/src/components/RequestList.vue
+++ b/web/src/components/RequestList.vue
@@ -17,14 +17,14 @@ limitations under the License.
+ text="You may filter by Job Name either including or excluding Jobs." title="Filter by Job Name">
-
+
@@ -38,7 +38,8 @@ limitations under the License.
-
+
Refresh Request List
@@ -65,7 +66,7 @@ limitations under the License.
-
+
Filter by failed Tasks
@@ -73,7 +74,7 @@ limitations under the License.
+ selected-class="activated" :class="{ activated: jobFilterActive == true }">
Filter by Job Name
@@ -85,9 +86,9 @@ limitations under the License.
item-value="request_id" :footer-props="{ itemsPerPageOptions: [10, 20, 40, -1] }" :loading="isLoading"
:sort-by="sortBy" multi-sort show-expand hover>
-
+
{{ item.request_id }}
@@ -127,9 +128,11 @@ limitations under the License.
-
+
|
@@ -160,8 +163,8 @@ export default {
headers: [
{ title: '', key: 'data-table-expand', width: '1%' },
{ title: 'Request', key: 'request_id', width: '15%' },
- { title: 'Last Task Update Time', key: 'last_task_update_time', width:'20%' },
- { title: 'Evidence Name', key: 'evidence_name', width: '25%'},
+ { title: 'Last Task Update Time', key: 'last_task_update_time', width: '20%' },
+ { title: 'Evidence Name', key: 'evidence_name', width: '25%' },
{ title: 'Requester', key: 'requester', width: '12%' },
{ title: 'Reason', key: 'request_id_reason', width: '10%' },
{ title: 'Status', key: 'status', width: '10%' },
@@ -189,7 +192,7 @@ export default {
let requestSummary = []
let data = response.data['requests_status']
for (const req in data) {
- let outstanding_perc = Math.round(
+ let outstanding_perc = Math.floor(
((data[req].failed_tasks + data[req].successful_tasks) / data[req].task_count) * 100
)
let reason = null
@@ -235,28 +238,28 @@ export default {
console.error(e)
})
},
- getAvailableJobs: function() {
- ApiClient.getAvailableJobs()
- .then((response) => {
- let available = response.data
- this.availableJobs = available.sort()
- })
- .catch((e) => {
- console.error(e)
- })
- },
- filterSelectedJobs: function() {
- if (this.filterJobs.length > 0) {
- this.jobFilterActive = true
- } else {
- this.jobFilterActive = false
+ getAvailableJobs: function () {
+ ApiClient.getAvailableJobs()
+ .then((response) => {
+ let available = response.data
+ this.availableJobs = available.sort()
+ })
+ .catch((e) => {
+ console.error(e)
+ })
+ },
+ filterSelectedJobs: function () {
+ if (this.filterJobs.length > 0) {
+ this.jobFilterActive = true
+ } else {
+ this.jobFilterActive = false
+ }
+ this.openDialog = false
+ },
+ selectActiveRow: function (id) {
+ // Accepts Request ID or Task ID
+ this.isActiveRow = id
}
- this.openDialog = false
- },
- selectActiveRow: function(id) {
- // Accepts Request ID or Task ID
- this.isActiveRow = id
- }
},
mounted() {
this.getRequestList()
@@ -266,9 +269,7 @@ export default {
\ No newline at end of file