diff --git a/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue b/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue
index 4d17882aca30fbe71603086db677e4ed517f354a..2e8a27084c3145075562b3a0c13e1fe1e1c6c3ea 100644
--- a/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue
+++ b/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue
@@ -254,7 +254,6 @@ export default {
* Initialization function
*/
init() {
- this.queryTimeline();
this.initPieChart();
},
/**
diff --git a/mindinsight/ui/src/views/train-manage/data-traceback.vue b/mindinsight/ui/src/views/train-manage/data-traceback.vue
index b7f33677f43a15232aea5b1a213805cbb5fa8280..f29b607c2b72417a740603680b94b4a596206c04 100644
--- a/mindinsight/ui/src/views/train-manage/data-traceback.vue
+++ b/mindinsight/ui/src/views/train-manage/data-traceback.vue
@@ -27,7 +27,7 @@ limitations under the License.
v-if="!loading">
@@ -344,6 +343,7 @@ export default {
loading: true,
errorData: true,
tagDialogShow: false,
+ nodata: false,
tagScope: {},
iconValue: 0,
// icon list of tag
@@ -1166,6 +1166,7 @@ export default {
this.summaryDirList = [];
this.lineagedata.serData = undefined;
this.showTable = false;
+ this.nodata = true;
this.echartNoData = true;
} else {
this.echart.showData = this.echart.brushData;
@@ -1357,8 +1358,10 @@ export default {
.then(
(res) => {
if (!res || !res.data) {
+ this.nodata = true;
return;
}
+ this.nodata = false;
this.errorData = false;
this.lineagedata = this.formateOriginData(res.data);
const serData = this.lineagedata.serData;
@@ -1366,10 +1369,12 @@ export default {
},
(error) => {
this.errorData = true;
+ this.nodata = true;
},
)
.catch(() => {
this.errorData = true;
+ this.nodata = true;
});
},
@@ -1385,8 +1390,10 @@ export default {
this.loading = false;
this.echartNoData = false;
if (!res || !res.data) {
+ this.nodata = true;
return;
}
+ this.nodata = false;
this.errorData = false;
this.customizedTypeObject = res.data.customized;
let keys = Object.keys(this.customizedTypeObject);
@@ -1463,6 +1470,9 @@ export default {
this.totalSeries = this.lineagedata.fullNodeList;
if (!this.totalSeries.length) {
this.echartNoData = true;
+ this.nodata = true;
+ } else {
+ this.nodata = false;
}
this.totalSeries.forEach((nodeItem) => {
if (this.createType[nodeItem.name]) {
@@ -1549,6 +1559,7 @@ export default {
this.initOver = true;
this.showEchartPic = false;
this.errorData = true;
+ this.nodata = true;
},
)
.catch(() => {
@@ -1556,6 +1567,7 @@ export default {
this.initOver = true;
this.showEchartPic = false;
this.errorData = true;
+ this.nodata = true;
});
},
@@ -1589,6 +1601,7 @@ export default {
*/
echartShowAllData() {
// The first page is displayed.
+ this.nodata = false;
if (this.showAllTimer) {
clearTimeout(this.showAllTimer);
this.showAllTimer = null;
diff --git a/mindinsight/ui/src/views/train-manage/summary-manage.vue b/mindinsight/ui/src/views/train-manage/summary-manage.vue
index 994b5c75ac386b4cd392880bb120f29a2560977d..3b77a2bd6a33b7860d375494a861c8af26449cda 100644
--- a/mindinsight/ui/src/views/train-manage/summary-manage.vue
+++ b/mindinsight/ui/src/views/train-manage/summary-manage.vue
@@ -203,9 +203,10 @@ export default {
const profilerDir = encodeURIComponent(row.profiler_dir);
const trainId = encodeURIComponent(row.train_id);
const path = encodeURIComponent(row.relative_path);
+ const router = `/profiling${row.profiler_type === 'gpu' ? '-gpu' : ''}`;
const routeUrl = this.$router.resolve({
- path: '/profiling',
+ path: router,
query: {
dir: profilerDir,
id: trainId,