From fbc5b2434fef138b0af27e6eddb629c032565856 Mon Sep 17 00:00:00 2001 From: WeiFeng-mindinsight Date: Wed, 24 Jun 2020 20:44:02 +0800 Subject: [PATCH] fix oplist search issue when user turn pages --- mindinsight/ui/src/views/train-manage/operator.vue | 4 +++- mindinsight/ui/src/views/train-manage/profiling-dashboard.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mindinsight/ui/src/views/train-manage/operator.vue b/mindinsight/ui/src/views/train-manage/operator.vue index 9079db1..a25a572 100644 --- a/mindinsight/ui/src/views/train-manage/operator.vue +++ b/mindinsight/ui/src/views/train-manage/operator.vue @@ -268,7 +268,7 @@ export default { pageTotal: 0, opDetailPage: { offset: 0, - limit: 20, + limit: 8, }, op_filter_condition: {}, op_sort_condition: { @@ -626,6 +626,7 @@ export default { } else { this.opAllTypeList.op_filter_condition = {}; } + this.opAllTypeList.opDetailPage.offset = 0; this.getCoreDetailList(this.opAllTypeList, false); } else { this.op_filter_condition = {}; @@ -658,6 +659,7 @@ export default { } else { this.opCpuList.op_filter_condition = {}; } + this.opCpuList.opDetailPage.offset = 0; this.getCpuList(false); }, /** diff --git a/mindinsight/ui/src/views/train-manage/profiling-dashboard.vue b/mindinsight/ui/src/views/train-manage/profiling-dashboard.vue index ced3947..bc14d64 100644 --- a/mindinsight/ui/src/views/train-manage/profiling-dashboard.vue +++ b/mindinsight/ui/src/views/train-manage/profiling-dashboard.vue @@ -584,7 +584,7 @@ export default { .map((i) => { return { name: i.name, - time: i.value, + time: i.value.toFixed(4), frequency: i.frequency, }; }); -- GitLab