diff --git a/mindinsight/ui/src/views/train-manage/model-traceback.vue b/mindinsight/ui/src/views/train-manage/model-traceback.vue
index f7953dd8c6b5e2251951ef924c0a5cc8c3405e48..07f386cdb6841107e087c5b0c69fd39a058a5e49 100644
--- a/mindinsight/ui/src/views/train-manage/model-traceback.vue
+++ b/mindinsight/ui/src/views/train-manage/model-traceback.vue
@@ -81,7 +81,7 @@ limitations under the License.
type="primary"
size="mini"
plain
- v-if="(!noData&&echart.allData.length) ||
+ v-if="(!noData&&basearr.length) ||
(noData && summaryDirList && !summaryDirList.length)">
{{ $t('modelTraceback.showAllData') }}
diff --git a/mindinsight/ui/src/views/train-manage/profiler.vue b/mindinsight/ui/src/views/train-manage/profiler.vue
index fc954c80e651d89afa265dd3232360feb5c1c812..5ba2f3f2d93a8370843f54fcbc15981e6bf46df1 100644
--- a/mindinsight/ui/src/views/train-manage/profiler.vue
+++ b/mindinsight/ui/src/views/train-manage/profiler.vue
@@ -209,7 +209,6 @@
width="50%"
:close-on-click-modal="false"
class="details-data-list">
-
{{ detailsDataTitle }}
{});
},
+ /**
+ * get cpu list
+ */
getCpuList() {
const params = {};
params.params = {
@@ -529,14 +548,27 @@ export default {
this.initOver = true;
});
},
+ /**
+ * operator detail list page change
+ * @param {Object} row table cell
+ * @param {Number} pageIndex current page
+ */
opDetailPageChange(row, pageIndex) {
row.opDetailPage.offset = pageIndex - 1;
this.getCoreDetailList(row);
},
+ /**
+ * cpu list page change
+ * @param {Object} row table cell
+ * @param {Number} pageIndex current page
+ */
opCpuPageChange(row, pageIndex) {
row.opDetailPage.offset = pageIndex - 1;
this.getCpuList();
},
+ /**
+ * get core list by search
+ */
searchOpCoreList() {
if (this.statisticType) {
this.opAllTypeList.op_filter_condition = {};
@@ -560,6 +592,9 @@ export default {
this.getCoreTypeList();
}
},
+ /**
+ * get cpu list by search
+ */
searchOpCpuList() {
this.opCpuList.op_filter_condition = {};
if (this.searchByCPUNameInput) {
@@ -571,6 +606,11 @@ export default {
}
this.getCpuList();
},
+ /**
+ * core detail sort
+ * @param {Object} row table cell
+ * @param {Object} column table cell
+ */
coreDetailSortChange(row, column) {
row.op_sort_condition = {
name: column.prop,
@@ -579,6 +619,11 @@ export default {
row.opDetailPage.offset = 0;
this.getCoreDetailList(row);
},
+ /**
+ * cpu detail sort
+ * @param {Object} row table cell
+ * @param {Object} column table cell
+ */
cpuDetailSortChange(row, column) {
row.op_sort_condition = {
name: column.prop,
@@ -587,6 +632,11 @@ export default {
row.opDetailPage.offset = 0;
this.getCpuList();
},
+ /**
+ * format detail data
+ * @param {Object} row table cell
+ * @param {Object} detailsDataList table detail
+ */
formatterDetailData(row, detailsDataList) {
row.opDetailList = [];
row.opDetailCol = detailsDataList.col_name;
@@ -605,7 +655,11 @@ export default {
});
}
},
- expandTypeItem(row, data, data2) {
+ /**
+ * expand core type table
+ * @param {Object} row table cell
+ */
+ expandTypeItem(row) {
row.isExpanded = !row.isExpanded;
if (row.isExpanded) {
row.opDetailList = [];
@@ -615,17 +669,20 @@ export default {
this.getCoreDetailList(row);
}
},
+ /**
+ * tab change
+ */
tabChange() {
if (
this.apiType === 'cpu' &&
- !this.cpuCharts.device_id !== this.currentCard.value
+ this.cpuCharts.device_id !== this.currentCard.value
) {
this.initOver = false;
this.clearCpuData();
this.getCpuList();
} else if (
this.apiType === 'core' &&
- !this.coreCharts.device_id !== this.currentCard.value
+ this.coreCharts.device_id !== this.currentCard.value
) {
this.initOver = false;
this.clearCoreData();
@@ -635,17 +692,30 @@ export default {
this.resizeCallback();
});
},
+ /**
+ * core table type change
+ */
coreTableChange() {
if (this.statisticType === 1 && !this.opAllTypeList.opDetailCol.length) {
this.getCoreDetailList(this.opAllTypeList);
}
},
+ /**
+ * operator cpu chart change
+ */
cpuChartChange() {
this.setOption(this.cpuCharts);
},
+ /**
+ * operator core chart change
+ */
coreChartChange() {
this.setOption(this.coreCharts);
},
+ /**
+ * set chart option
+ * @param {Object} chart chart
+ */
setOption(chart) {
const option = {};
if (chart.type === 0) {
@@ -743,7 +813,7 @@ export default {
data: [],
};
option.grid = {
- left: 30,
+ left: 50,
top: 20,
right: 0,
bottom: 30,
@@ -777,6 +847,11 @@ export default {
chart.chartDom.resize();
}, 10);
},
+ /**
+ * show operator info deteail
+ * @param {Object} cellData cell data
+ * @param {Object} column column
+ */
showInfoDetail(cellData, column) {
if (column.property !== 'op_info' || !cellData || !cellData.op_info) {
return;
@@ -1041,9 +1116,9 @@ export default {
position: relative;
}
td:first-child::before {
- width: 20px;
- background: #fff;
- border-right: 3px solid #7693e1;
+ width: 42px;
+ background: #f0fdfd;
+ border-right: 2px #00a5a7 solid;
z-index: 10;
position: absolute;
left: 0;