提交 2b151b75 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!543 Data tracing is temporarily unavailable. Whether the display conditions...

!543 Data tracing is temporarily unavailable. Whether the display conditions are optimized and the profiling jump route is changed.
Merge pull request !543 from 秦君艳/datatrc
...@@ -254,7 +254,6 @@ export default { ...@@ -254,7 +254,6 @@ export default {
* Initialization function * Initialization function
*/ */
init() { init() {
this.queryTimeline();
this.initPieChart(); this.initPieChart();
}, },
/** /**
......
...@@ -27,7 +27,7 @@ limitations under the License. ...@@ -27,7 +27,7 @@ limitations under the License.
v-if="!loading"> v-if="!loading">
<!-- select area --> <!-- select area -->
<div class="data-checkbox-area" <div class="data-checkbox-area"
v-show="!errorData"> v-show="!errorData&&!(!totalSeries.length&&pagination.total)">
<div class="select-container" <div class="select-container"
v-show="totalSeries && totalSeries.length && v-show="totalSeries && totalSeries.length &&
(!summaryDirList || (summaryDirList && summaryDirList.length))"> (!summaryDirList || (summaryDirList && summaryDirList.length))">
...@@ -231,8 +231,7 @@ limitations under the License. ...@@ -231,8 +231,7 @@ limitations under the License.
<div class="clear"></div> <div class="clear"></div>
</div> </div>
</div> </div>
<div v-show="((!lineagedata.serData || !lineagedata.serData.length) && initOver) <div v-show="nodata"
||(echartNoData && (lineagedata.serData && !!lineagedata.serData.length))"
class="no-data-page"> class="no-data-page">
<div class="no-data-img" <div class="no-data-img"
:class="{'set-height-class':(summaryDirList && !summaryDirList.length)}"> :class="{'set-height-class':(summaryDirList && !summaryDirList.length)}">
...@@ -344,6 +343,7 @@ export default { ...@@ -344,6 +343,7 @@ export default {
loading: true, loading: true,
errorData: true, errorData: true,
tagDialogShow: false, tagDialogShow: false,
nodata: false,
tagScope: {}, tagScope: {},
iconValue: 0, iconValue: 0,
// icon list of tag // icon list of tag
...@@ -1166,6 +1166,7 @@ export default { ...@@ -1166,6 +1166,7 @@ export default {
this.summaryDirList = []; this.summaryDirList = [];
this.lineagedata.serData = undefined; this.lineagedata.serData = undefined;
this.showTable = false; this.showTable = false;
this.nodata = true;
this.echartNoData = true; this.echartNoData = true;
} else { } else {
this.echart.showData = this.echart.brushData; this.echart.showData = this.echart.brushData;
...@@ -1357,8 +1358,10 @@ export default { ...@@ -1357,8 +1358,10 @@ export default {
.then( .then(
(res) => { (res) => {
if (!res || !res.data) { if (!res || !res.data) {
this.nodata = true;
return; return;
} }
this.nodata = false;
this.errorData = false; this.errorData = false;
this.lineagedata = this.formateOriginData(res.data); this.lineagedata = this.formateOriginData(res.data);
const serData = this.lineagedata.serData; const serData = this.lineagedata.serData;
...@@ -1366,10 +1369,12 @@ export default { ...@@ -1366,10 +1369,12 @@ export default {
}, },
(error) => { (error) => {
this.errorData = true; this.errorData = true;
this.nodata = true;
}, },
) )
.catch(() => { .catch(() => {
this.errorData = true; this.errorData = true;
this.nodata = true;
}); });
}, },
...@@ -1385,8 +1390,10 @@ export default { ...@@ -1385,8 +1390,10 @@ export default {
this.loading = false; this.loading = false;
this.echartNoData = false; this.echartNoData = false;
if (!res || !res.data) { if (!res || !res.data) {
this.nodata = true;
return; return;
} }
this.nodata = false;
this.errorData = false; this.errorData = false;
this.customizedTypeObject = res.data.customized; this.customizedTypeObject = res.data.customized;
let keys = Object.keys(this.customizedTypeObject); let keys = Object.keys(this.customizedTypeObject);
...@@ -1463,6 +1470,9 @@ export default { ...@@ -1463,6 +1470,9 @@ export default {
this.totalSeries = this.lineagedata.fullNodeList; this.totalSeries = this.lineagedata.fullNodeList;
if (!this.totalSeries.length) { if (!this.totalSeries.length) {
this.echartNoData = true; this.echartNoData = true;
this.nodata = true;
} else {
this.nodata = false;
} }
this.totalSeries.forEach((nodeItem) => { this.totalSeries.forEach((nodeItem) => {
if (this.createType[nodeItem.name]) { if (this.createType[nodeItem.name]) {
...@@ -1549,6 +1559,7 @@ export default { ...@@ -1549,6 +1559,7 @@ export default {
this.initOver = true; this.initOver = true;
this.showEchartPic = false; this.showEchartPic = false;
this.errorData = true; this.errorData = true;
this.nodata = true;
}, },
) )
.catch(() => { .catch(() => {
...@@ -1556,6 +1567,7 @@ export default { ...@@ -1556,6 +1567,7 @@ export default {
this.initOver = true; this.initOver = true;
this.showEchartPic = false; this.showEchartPic = false;
this.errorData = true; this.errorData = true;
this.nodata = true;
}); });
}, },
...@@ -1589,6 +1601,7 @@ export default { ...@@ -1589,6 +1601,7 @@ export default {
*/ */
echartShowAllData() { echartShowAllData() {
// The first page is displayed. // The first page is displayed.
this.nodata = false;
if (this.showAllTimer) { if (this.showAllTimer) {
clearTimeout(this.showAllTimer); clearTimeout(this.showAllTimer);
this.showAllTimer = null; this.showAllTimer = null;
......
...@@ -203,9 +203,10 @@ export default { ...@@ -203,9 +203,10 @@ export default {
const profilerDir = encodeURIComponent(row.profiler_dir); const profilerDir = encodeURIComponent(row.profiler_dir);
const trainId = encodeURIComponent(row.train_id); const trainId = encodeURIComponent(row.train_id);
const path = encodeURIComponent(row.relative_path); const path = encodeURIComponent(row.relative_path);
const router = `/profiling${row.profiler_type === 'gpu' ? '-gpu' : ''}`;
const routeUrl = this.$router.resolve({ const routeUrl = this.$router.resolve({
path: '/profiling', path: router,
query: { query: {
dir: profilerDir, dir: profilerDir,
id: trainId, id: trainId,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册