提交 87064c14 编写于 作者: F fengxuefeng

No data display optimization

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