diff --git a/mindinsight/ui/src/views/explain/summary-list.vue b/mindinsight/ui/src/views/explain/summary-list.vue
index 43eaa711..26ff9a2a 100644
--- a/mindinsight/ui/src/views/explain/summary-list.vue
+++ b/mindinsight/ui/src/views/explain/summary-list.vue
@@ -70,10 +70,6 @@ limitations under the License.
@contextmenu.prevent="rightClick(scope.row, $event, 0)"
@click.stop="goToSaliencyMap(scope.row)">
{{$t('explain.title')}}
-
@@ -83,8 +79,10 @@ limitations under the License.
@@ -244,8 +248,10 @@ limitations under the License.
{opCorePageChange(coreList, ...args)}"
- layout="total, prev, pager, next, jumper"
+ :page-sizes="[10, 20, 50]"
+ @current-change="opCorePageChange"
+ @size-change="opCorePageSizeChange"
+ layout="total, sizes, prev, pager, next, jumper"
:total="coreList.pageTotal">
@@ -296,7 +302,7 @@ export default {
pageTotal: 0,
opDetailPage: {
offset: 0,
- limit: 15,
+ limit: 10,
},
op_filter_condition: {},
op_sort_condition: {
@@ -310,7 +316,7 @@ export default {
pageTotal: 0,
opDetailPage: {
offset: 0,
- limit: 15,
+ limit: 10,
},
op_filter_condition: {},
op_sort_condition: {},
@@ -465,7 +471,7 @@ export default {
pageTotal: 0,
opDetailPage: {
offset: 0,
- limit: 15,
+ limit: 10,
},
op_filter_condition: {},
op_sort_condition: {
@@ -493,7 +499,7 @@ export default {
pageTotal: 0,
opDetailPage: {
offset: 0,
- limit: 15,
+ limit: 10,
},
op_filter_condition: {},
op_sort_condition: {},
@@ -529,7 +535,7 @@ export default {
opDetailCol: [],
opDetailPage: {
offset: 0,
- limit: 15,
+ limit: 10,
},
pageTotal: 0,
op_filter_condition: {
@@ -705,12 +711,30 @@ export default {
this.getOperatorDetailList(row, false);
},
/**
- * Core list page change
+ * Operator detail list page size change
* @param {Object} row table cell
+ * @param {Number} pageSize current page
+ */
+ opDetailPageSizeChange(row, pageSize) {
+ row.opDetailPage.offset = 0;
+ row.opDetailPage.limit = pageSize;
+ this.getOperatorDetailList(row, false);
+ },
+ /**
+ * Core list page change
* @param {Number} pageIndex current page
*/
- opCorePageChange(row, pageIndex) {
- row.opDetailPage.offset = pageIndex - 1;
+ opCorePageChange(pageIndex) {
+ this.coreList.opDetailPage.offset = pageIndex - 1;
+ this.getCoreList(false);
+ },
+ /**
+ * Core list page size change
+ * @param {Number} pageSize current page size
+ */
+ opCorePageSizeChange(pageSize) {
+ this.coreList.opDetailPage.offset = 0;
+ this.coreList.opDetailPage.limit = pageSize;
this.getCoreList(false);
},
/**
diff --git a/mindinsight/ui/src/views/profiling/operator.vue b/mindinsight/ui/src/views/profiling/operator.vue
index a1bf7488..f178c1d1 100644
--- a/mindinsight/ui/src/views/profiling/operator.vue
+++ b/mindinsight/ui/src/views/profiling/operator.vue
@@ -113,8 +113,10 @@ limitations under the License.
{opDetailPageChange(props.row, ...args)}"
- layout="total, prev, pager, next, jumper"
+ @size-change="(...args)=>{opDetailPageSizeChange(props.row, ...args)}"
+ layout="total, sizes, prev, pager, next, jumper"
:total="props.row.pageTotal">
@@ -160,8 +162,10 @@ limitations under the License.
v-if="opAllTypeList.opDetailList.length"
:current-page="opAllTypeList.opDetailPage.offset + 1"
:page-size="opAllTypeList.opDetailPage.limit"
+ :page-sizes="[10, 20, 50]"
@current-change="(...args)=>{opDetailPageChange(opAllTypeList, ...args)}"
- layout="total, prev, pager, next, jumper"
+ @size-change="(...args)=>{opDetailPageSizeChange(opAllTypeList, ...args)}"
+ layout="total, sizes, prev, pager, next, jumper"
:total="opAllTypeList.pageTotal">
@@ -268,8 +272,10 @@ limitations under the License.
{opCpuDetailPageChange(props.row, ...args)}"
- layout="total, prev, pager, next, jumper"
+ @size-change="(...args)=>{opCpuDetailPageSizeChange(props.row, ...args)}"
+ layout="total, sizes, prev, pager, next, jumper"
:total="props.row.pageTotal">
@@ -310,11 +316,13 @@ limitations under the License.
{opCpuDetailPageChange(opCpuAllTypeList, ...args)}"
- layout="total, prev, pager, next, jumper"
+ @size-change="(...args)=>{opCpuDetailPageSizeChange(opCpuAllTypeList, ...args)}"
+ layout="total, sizes, prev, pager, next, jumper"
:total="opCpuAllTypeList.pageTotal">
@@ -393,7 +401,7 @@ export default {
pageTotal: 0,
opDetailPage: {
offset: 0,
- limit: 15,
+ limit: 10,
},
op_filter_condition: {},
op_sort_condition: {
@@ -407,7 +415,7 @@ export default {
pageTotal: 0,
opDetailPage: {
offset: 0,
- limit: 15,
+ limit: 10,
},
op_filter_condition: {},
op_sort_condition: {},
@@ -555,7 +563,10 @@ export default {
this.$nextTick(() => {
const item = this.$refs['expandCpuChild'];
if (item && this.curCpuActiveRow.rowItem) {
- item.sort(this.curCpuActiveRow.childProp, this.curCpuActiveRow.childOrder);
+ item.sort(
+ this.curCpuActiveRow.childProp,
+ this.curCpuActiveRow.childOrder,
+ );
}
});
},
@@ -578,7 +589,7 @@ export default {
pageTotal: 0,
opDetailPage: {
offset: 0,
- limit: 15,
+ limit: 10,
},
op_filter_condition: {},
op_sort_condition: {},
@@ -603,7 +614,7 @@ export default {
pageTotal: 0,
opDetailPage: {
offset: 0,
- limit: 15,
+ limit: 10,
},
op_filter_condition: {},
op_sort_condition: {},
@@ -639,7 +650,7 @@ export default {
opDetailCol: [],
opDetailPage: {
offset: 0,
- limit: 15,
+ limit: 10,
},
pageTotal: 0,
op_filter_condition: {
@@ -778,7 +789,7 @@ export default {
opDetailCol: [],
opDetailPage: {
offset: 0,
- limit: 15,
+ limit: 10,
},
pageTotal: 0,
op_filter_condition: {
@@ -809,10 +820,7 @@ export default {
this.cpuCharts.device_id = this.currentCard;
this.cpuCharts.data = [];
res.data.object.forEach((k) => {
- if (
- this.cpuCharts.data &&
- this.cpuCharts.data.length < 19
- ) {
+ if (this.cpuCharts.data && this.cpuCharts.data.length < 19) {
this.cpuCharts.data.push({
name: k[0],
value: k[1],
@@ -896,6 +904,16 @@ export default {
row.opDetailPage.offset = pageIndex - 1;
this.getCoreDetailList(row, false);
},
+ /**
+ * Operator detail list page size change
+ * @param {Object} row table cell
+ * @param {Number} pageSize current page size
+ */
+ opDetailPageSizeChange(row, pageSize) {
+ row.opDetailPage.offset = 0;
+ row.opDetailPage.limit = pageSize;
+ this.getCoreDetailList(row, false);
+ },
/**
* Cpu list page change
* @param {Object} row table cell
@@ -905,6 +923,16 @@ export default {
row.opDetailPage.offset = pageIndex - 1;
this.getCpuDetailList(row, false);
},
+ /**
+ * Cpu list page size change
+ * @param {Object} row table cell
+ * @param {Number} pageSize current page size
+ */
+ opCpuDetailPageSizeChange(row, pageSize) {
+ row.opDetailPage.offset = 0;
+ row.opDetailPage.limit = pageSize;
+ this.getCpuDetailList(row, false);
+ },
/**
* Get core list by search
*/
diff --git a/mindinsight/ui/src/views/train-manage/data-traceback.vue b/mindinsight/ui/src/views/train-manage/data-traceback.vue
index cdddb335..4019d4c3 100644
--- a/mindinsight/ui/src/views/train-manage/data-traceback.vue
+++ b/mindinsight/ui/src/views/train-manage/data-traceback.vue
@@ -226,8 +226,10 @@ limitations under the License.