Browse Source

!364 fix oplist search issue when user turn pages

Merge pull request !364 from 黄伟锋/r0.5
tags/v0.5.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
81bd191758
2 changed files with 4 additions and 2 deletions
  1. +3
    -1
      mindinsight/ui/src/views/train-manage/operator.vue
  2. +1
    -1
      mindinsight/ui/src/views/train-manage/profiling-dashboard.vue

+ 3
- 1
mindinsight/ui/src/views/train-manage/operator.vue View File

@@ -268,7 +268,7 @@ export default {
pageTotal: 0, pageTotal: 0,
opDetailPage: { opDetailPage: {
offset: 0, offset: 0,
limit: 20,
limit: 8,
}, },
op_filter_condition: {}, op_filter_condition: {},
op_sort_condition: { op_sort_condition: {
@@ -626,6 +626,7 @@ export default {
} else { } else {
this.opAllTypeList.op_filter_condition = {}; this.opAllTypeList.op_filter_condition = {};
} }
this.opAllTypeList.opDetailPage.offset = 0;
this.getCoreDetailList(this.opAllTypeList, false); this.getCoreDetailList(this.opAllTypeList, false);
} else { } else {
this.op_filter_condition = {}; this.op_filter_condition = {};
@@ -658,6 +659,7 @@ export default {
} else { } else {
this.opCpuList.op_filter_condition = {}; this.opCpuList.op_filter_condition = {};
} }
this.opCpuList.opDetailPage.offset = 0;
this.getCpuList(false); this.getCpuList(false);
}, },
/** /**


+ 1
- 1
mindinsight/ui/src/views/train-manage/profiling-dashboard.vue View File

@@ -584,7 +584,7 @@ export default {
.map((i) => { .map((i) => {
return { return {
name: i.name, name: i.name,
time: i.value,
time: i.value.toFixed(4),
frequency: i.frequency, frequency: i.frequency,
}; };
}); });


Loading…
Cancel
Save