Browse Source

UI encode image tag and fixes the issue that the histogram layer is

disordered
tags/v1.1.0
xiayifan 5 years ago
parent
commit
c6703c12a8
4 changed files with 12 additions and 3 deletions
  1. +1
    -0
      mindinsight/ui/src/components/histogramUnit.vue
  2. +1
    -0
      mindinsight/ui/src/views/train-manage/histogram.vue
  3. +6
    -2
      mindinsight/ui/src/views/train-manage/image.vue
  4. +4
    -1
      mindinsight/ui/src/views/train-manage/training-dashboard.vue

+ 1
- 0
mindinsight/ui/src/components/histogramUnit.vue View File

@@ -257,6 +257,7 @@ export default {

return {
type: 'polyline',
z2: params.dataIndex,
silent: true,
shape: {
points,


+ 1
- 0
mindinsight/ui/src/views/train-manage/histogram.vue View File

@@ -1133,6 +1133,7 @@ export default {

return {
type: 'polyline',
z2: params.dataIndex,
silent: true,
shape: {
points,


+ 6
- 2
mindinsight/ui/src/views/train-manage/image.vue View File

@@ -388,7 +388,9 @@ export default {
sampleItem.showErrMsg = false;
sampleItem.curImgUrl =
`${basePath}${this.imageBasePath}train_id=${sampleItem.summaryId}` +
`&tag=${sampleItem.tagName}&step=${params.step}&wt=${params.wt}`;
`&tag=${encodeURIComponent(sampleItem.tagName)}&step=${
params.step
}&wt=${params.wt}`;
},
(e) => {
if (e.response && e.response.data && e.response.data.error_code) {
@@ -399,7 +401,9 @@ export default {
sampleItem.showErrMsg = false;
sampleItem.curImgUrl =
`${basePath}${this.imageBasePath}train_id=${sampleItem.summaryId}` +
`&tag=${sampleItem.tagName}&step=${params.step}&wt=${params.wt}`;
`&tag=${encodeURIComponent(sampleItem.tagName)}&step=${
params.step
}&wt=${params.wt}`;
}
},
);


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

@@ -1308,6 +1308,7 @@ export default {

return {
type: 'polyline',
z2: params.dataIndex,
silent: true,
shape: {
points,
@@ -1514,7 +1515,9 @@ export default {
sampleItem.sampleData[sampleIndex].wall_time;
sampleItem.curImgUrl =
`${basePath}${this.imageBasePath}` +
`train_id=${sampleItem.runId}&tag=${sampleItem.tagName}` +
`train_id=${sampleItem.runId}&tag=${encodeURIComponent(
sampleItem.tagName,
)}` +
`&step=-1&wt=${sampleWallTime}`;
} else {
this.curImageShowSample = {};


Loading…
Cancel
Save