From 67506bb53d40b0d9570770ce3ad2d9e47f08a780 Mon Sep 17 00:00:00 2001 From: ph Date: Tue, 28 Apr 2020 14:27:44 +0800 Subject: [PATCH] fix issue --- mindinsight/ui/public/index.html | 2 +- mindinsight/ui/public/static/img/favicon.ico | Bin 13297 -> 0 bytes mindinsight/ui/public/static/img/favicon.png | Bin 0 -> 6922 bytes mindinsight/ui/src/common/common-property.js | 10 +++++ .../ui/src/components/multiselectGroup.vue | 6 +++ .../ui/src/views/train-manage/data-map.vue | 42 +++++++++++++++++- .../ui/src/views/train-manage/histogram.vue | 4 +- 7 files changed, 59 insertions(+), 5 deletions(-) delete mode 100644 mindinsight/ui/public/static/img/favicon.ico create mode 100644 mindinsight/ui/public/static/img/favicon.png diff --git a/mindinsight/ui/public/index.html b/mindinsight/ui/public/index.html index d1bd5713..0a7a7895 100644 --- a/mindinsight/ui/public/index.html +++ b/mindinsight/ui/public/index.html @@ -21,7 +21,7 @@ limitations under the License. - + MindInsight ', + dataMapDownloadStyle: '', }; diff --git a/mindinsight/ui/src/components/multiselectGroup.vue b/mindinsight/ui/src/components/multiselectGroup.vue index acf7ee50..14de9da2 100644 --- a/mindinsight/ui/src/components/multiselectGroup.vue +++ b/mindinsight/ui/src/components/multiselectGroup.vue @@ -99,6 +99,7 @@ export default { multiSelectedItemNames: {}, // Dictionary for storing the name of the selected tags. operateSelectAll: true, // Indicates whether to select all tags. perSelectItemMarginBottom: 1, // Outer margin of the bottom of each selection box. + searching: false, }; }, computed: {}, @@ -156,11 +157,13 @@ export default { * Tag Filter */ listFilter() { + this.searching = true; if (this.searchInputTimer) { clearTimeout(this.searchInputTimer); this.searchInputTimer = null; } this.searchInputTimer = setTimeout(() => { + this.searching = false; let reg; try { reg = new RegExp(this.searchInput); @@ -234,6 +237,9 @@ export default { * @return {Object} Dictionary containing selected tags */ updateSelectedDic() { + if (this.searching) { + return this.multiSelectedItemNames; + } let reg; try { reg = new RegExp(this.searchInput); diff --git a/mindinsight/ui/src/views/train-manage/data-map.vue b/mindinsight/ui/src/views/train-manage/data-map.vue index d3b1ad58..c8c09382 100644 --- a/mindinsight/ui/src/views/train-manage/data-map.vue +++ b/mindinsight/ui/src/views/train-manage/data-map.vue @@ -49,6 +49,9 @@ limitations under the License.
+