Browse Source

No data display optimization

tags/0.7.0-beta
fengxuefeng 5 years ago
parent
commit
87064c14ef
8 changed files with 16 additions and 12 deletions
  1. +1
    -3
      mindinsight/ui/src/locales/en-us.json
  2. +1
    -1
      mindinsight/ui/src/locales/zh-cn.json
  3. +2
    -2
      mindinsight/ui/src/main.js
  4. +2
    -1
      mindinsight/ui/src/views/train-manage/data-process.vue
  5. +2
    -1
      mindinsight/ui/src/views/train-manage/operator.vue
  6. +2
    -2
      mindinsight/ui/src/views/train-manage/profiling-dashboard.vue
  7. +4
    -1
      mindinsight/ui/src/views/train-manage/profiling.vue
  8. +2
    -1
      mindinsight/ui/src/views/train-manage/step-trace.vue

+ 1
- 3
mindinsight/ui/src/locales/en-us.json View File

@@ -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",


+ 1
- 1
mindinsight/ui/src/locales/zh-cn.json View File

@@ -1,6 +1,6 @@
{
"public": {
"netWorkError": "网络或后错误,请检查。",
"netWorkError": "网络或后端服务错误,请检查。",
"browserWarning": "您当前的浏览器可能导致部分功能失效或不可使用,建议使用Chrome 65版本以上的浏览器。",
"timeout": "超时,请重新请求。",
"noData": "暂无数据",


+ 2
- 2
mindinsight/ui/src/main.js View File

@@ -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') &&


+ 2
- 1
mindinsight/ui/src/views/train-manage/data-process.vue View File

@@ -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;


+ 2
- 1
mindinsight/ui/src/views/train-manage/operator.vue View File

@@ -337,7 +337,8 @@ export default {
this.currentCard = newValue.curCardNum;
this.initOver = false;
this.cardChange();
} else {
}
if (newValue.initOver) {
this.initOver = true;
}
},


+ 2
- 2
mindinsight/ui/src/views/train-manage/profiling-dashboard.vue View File

@@ -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;


+ 4
- 1
mindinsight/ui/src/views/train-manage/profiling.vue View File

@@ -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


+ 2
- 1
mindinsight/ui/src/views/train-manage/step-trace.vue View File

@@ -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;


Loading…
Cancel
Save