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

!516 No data display optimization

Merge pull request !516 from 冯学峰/myMaster02
......@@ -49,9 +49,7 @@
"dataTraceback": "Dataset Lineage",
"comparePlate": "Comparison Dashboard",
"disableProfilerTip": "Failed to view profiling because no profiler log is available.",
"hardwareVisual": "Hardware Resources",
"paramDetails": "Parameter Details",
"trainingParamDetails": "Training Parameter Details(Directory)"
"hardwareVisual": "Hardware Resources"
},
"modelTraceback": {
"summaryPath": "Summary Path",
......
{
"public": {
"netWorkError": "网络或后错误,请检查。",
"netWorkError": "网络或后端服务错误,请检查。",
"browserWarning": "您当前的浏览器可能导致部分功能失效或不可使用,建议使用Chrome 65版本以上的浏览器。",
"timeout": "超时,请重新请求。",
"noData": "暂无数据",
......
......@@ -23,8 +23,8 @@ import './assets/css/element.css';
import './assets/css/reset.scss';
import i18n from './i18n';
import $ from 'jquery';
import locale from '../node_modules/element-ui/lib/locale/lang/en';
import localezh from '../node_modules/element-ui/lib/locale/lang/zh-CN';
import locale from 'element-ui/lib/locale/lang/en';
import localezh from 'element-ui/lib/locale/lang/zh-CN';
if (
localStorage.getItem('milang') &&
......
......@@ -417,7 +417,8 @@ export default {
} else {
this.queryAverageRate();
}
} else {
}
if (newValue.initOver) {
this.connectQueueChart.initOver = true;
this.dataQueueChart.initOver = true;
this.deviceQueueOpChart.initOver = true;
......
......@@ -337,7 +337,8 @@ export default {
this.currentCard = newValue.curCardNum;
this.initOver = false;
this.cardChange();
} else {
}
if (newValue.initOver) {
this.initOver = true;
}
},
......
......@@ -477,7 +477,7 @@ export default {
// Monitor current card information
'$parent.curDashboardInfo': {
handler(newValue, oldValue) {
if (newValue.curCardNum === '') {
if (newValue.initOver) {
this.pieChart.noData = true;
this.svg.noData = true;
this.svg.initOver = true;
......@@ -485,7 +485,7 @@ export default {
this.timelineInfo.initOver = true;
this.processSummary.initOver = true;
}
if (newValue.query.dir && newValue.query.id && newValue.query.path) {
if (newValue.query.dir && newValue.query.id && newValue.query.path && newValue.curCardNum) {
this.summaryPath = newValue.query.dir;
this.trainingJobId = newValue.query.id;
this.relativePath = newValue.query.path;
......
......@@ -77,6 +77,7 @@ export default {
// Current Select card info
curCardNum: '',
query: {},
initOver: false,
},
};
},
......@@ -137,7 +138,9 @@ export default {
this.curDashboardInfo.curCardNum = '';
}
})
.catch(() => {});
.catch(() => {
this.curDashboardInfo.initOver = true;
});
},
/**
* Get profile helper data
......
......@@ -246,7 +246,8 @@ export default {
val.initOver = false;
});
this.init();
} else {
}
if (newValue.initOver) {
this.svg.initOver = true;
this.tabsArr.forEach((val) => {
val.initOver = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册