From c0c79d9b58705a3c8c13ea9f23b1dd0f724a04af Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期一, 19 十月 2020 19:14:52 +0800 Subject: [PATCH] 搜索集群节点样式更新 --- src/pages/search/index/Searching.vue | 30 ++++++++++++++---------------- 1 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/pages/search/index/Searching.vue b/src/pages/search/index/Searching.vue index 5e0457a..7cd82d6 100644 --- a/src/pages/search/index/Searching.vue +++ b/src/pages/search/index/Searching.vue @@ -32,6 +32,7 @@ size="mini" style="width:calc(100% - 40px);min-width: 120px;" placeholder="璇烽�夋嫨" + @change="tagChange" > <el-option v-for="item in VideoPhotoData.tabs" @@ -274,9 +275,6 @@ this.TreeDataPool.fetchTreeData(); }, mounted() { - debugger - //this.isShowUpload(); - console.log('search mounted') this.$nextTick(() => { let scrollContain = this.$refs.scrollContain this.VideoPhotoData.scrollContainDom = scrollContain @@ -408,6 +406,7 @@ console.log("椤甸潰妯″紡锛�", value) if (value) { this.typeDisable = true; + this.disabled = true; } else { this.typeDisable = false; this.VideoPhotoData.querySearchList(); @@ -419,20 +418,7 @@ "VideoPhotoData.selectWhites": function (value) { this.blackAngWhite() }, - tagValues: function (newValue, oldValue) { - if (newValue.length > 0) { - this.showType = "compare"; - } else { - this.showType = "search"; - } - if (newValue.length !== oldValue.length) { - console.log("tagValue涓殑鍒锋柊鏂规硶"); - // this.VideoPhotoData.querySearchList(); - this.setLoadSearch(this.VideoPhotoData.querySearchList()); - } - }, "VideoPhotoData.uploadDiaplay": function (value) { - debugger this.getHeight(); console.log("upload鐨勫�兼槸锛�", value) if (value) { @@ -737,6 +723,18 @@ }, getUrlKey(name) { return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null + }, + tagChange(obj) { + console.log(obj) + if (obj.length > 0) { + this.showType = "compare"; + } else { + this.showType = "search"; + } + + this.VideoPhotoData.queryTabs = obj; + + this.setLoadSearch(this.VideoPhotoData.querySearchList()); } } }; -- Gitblit v1.8.0