From dbc8a7af9631962f63c93c10ba04f6c8a6828a2d Mon Sep 17 00:00:00 2001 From: qin_jun_yan Date: Tue, 18 Aug 2020 13:55:21 +0800 Subject: [PATCH] Modify the hyperlink address in English language to the English document address, modify the width of the input box --- .../ui/src/components/multiselectGroup.vue | 2 +- mindinsight/ui/src/locales/en-us.json | 2 +- .../ui/src/views/train-manage/image.vue | 23 +++++++++++-------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/mindinsight/ui/src/components/multiselectGroup.vue b/mindinsight/ui/src/components/multiselectGroup.vue index b6c32f9..94a7a3a7 100644 --- a/mindinsight/ui/src/components/multiselectGroup.vue +++ b/mindinsight/ui/src/components/multiselectGroup.vue @@ -500,7 +500,7 @@ export default { user-select: none; } .search-input-item { - width: 261px; + width: 290px; } } .tooltip-show-content { diff --git a/mindinsight/ui/src/locales/en-us.json b/mindinsight/ui/src/locales/en-us.json index e912222..80c175d 100644 --- a/mindinsight/ui/src/locales/en-us.json +++ b/mindinsight/ui/src/locales/en-us.json @@ -253,7 +253,7 @@ "desc": "How Do I Use Profiler for Profiling?", "anchor": ["desc"], "url": [ - "https://www.mindspore.cn/tutorial/zh-CN/master/advanced_use/performance_profiling.html" + "https://www.mindspore.cn/tutorial/en/master/advanced_use/performance_profiling.html" ] }, "step_trace-proposer_type_label": { diff --git a/mindinsight/ui/src/views/train-manage/image.vue b/mindinsight/ui/src/views/train-manage/image.vue index e463b86..a84bc57 100644 --- a/mindinsight/ui/src/views/train-manage/image.vue +++ b/mindinsight/ui/src/views/train-manage/image.vue @@ -29,8 +29,8 @@ limitations under the License.
+ :checkListArr="tagOperateList" + @selectedChange="tagSelectedChanged">
@@ -229,7 +229,10 @@ export default { document.title = this.$t('images.titleText') + '-MindInsight'; return; } - document.title = decodeURIComponent(this.$route.query.train_id) +'-' + this.$t('images.titleText') + + document.title = + decodeURIComponent(this.$route.query.train_id) + + '-' + + this.$t('images.titleText') + '-MindInsight'; this.getTagList(); // Automatic refresh @@ -367,9 +370,9 @@ export default { sampleItem.curImgUrl = `${basePath}${this.imageBasePath}train_id=${sampleItem.summaryId}` + `&tag=${sampleItem.tagName}&step=${curSampleData.step}&wt=${curSampleData.wall_time}`; - sampleItem.curTime = this.dealrelativeTime(new Date( - curSampleData.wall_time * 1000, - ).toString()); + sampleItem.curTime = this.dealrelativeTime( + new Date(curSampleData.wall_time * 1000).toString(), + ); sampleItem.curImageSize = [ curSampleData.width, curSampleData.height, @@ -407,9 +410,9 @@ export default { sampleItem.curImgUrl = `${basePath}${this.imageBasePath}train_id=${sampleItem.summaryId}` + `&tag=${sampleItem.tagName}&step=${curStepData.step}&wt=${curStepData.wall_time}`; - sampleItem.curTime = this.dealrelativeTime(new Date( - curStepData.wall_time * 1000, - ).toString()); + sampleItem.curTime = this.dealrelativeTime( + new Date(curStepData.wall_time * 1000).toString(), + ); sampleItem.curImageSize = [curStepData.width, curStepData.height]; }, /** @@ -862,7 +865,7 @@ export default { } } .search-input-item { - width: 261px; + width: 290px; } .cl-close-btn { width: 20px; -- GitLab