From 261e25074b7f35010efccb86bf82f6fe36e4b10d Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期三, 14 十月 2020 10:27:19 +0800 Subject: [PATCH] 添加硬件信息显示 --- src/pages/search/index/Searching.vue | 35 ++++++++++++++++------------------- 1 files changed, 16 insertions(+), 19 deletions(-) diff --git a/src/pages/search/index/Searching.vue b/src/pages/search/index/Searching.vue index cfbaa35..7cd82d6 100644 --- a/src/pages/search/index/Searching.vue +++ b/src/pages/search/index/Searching.vue @@ -27,12 +27,12 @@ <el-select v-model="tagValues" multiple - @change="searchingBtn" :disabled="isDisabled" collapse-tags size="mini" style="width:calc(100% - 40px);min-width: 120px;" placeholder="璇烽�夋嫨" + @change="tagChange" > <el-option v-for="item in VideoPhotoData.tabs" @@ -275,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 @@ -409,6 +406,7 @@ console.log("椤甸潰妯″紡锛�", value) if (value) { this.typeDisable = true; + this.disabled = true; } else { this.typeDisable = false; this.VideoPhotoData.querySearchList(); @@ -420,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) { @@ -456,8 +441,8 @@ } }, methods: { - isShowUpload(){ - console.log('isShowUpload',this.VideoPhotoData.uploadDiaplay) + isShowUpload() { + console.log('isShowUpload', this.VideoPhotoData.uploadDiaplay) this.getHeight(); console.log("upload鐨勫�兼槸锛�", this.VideoPhotoData.uploadDiaplay) if (this.VideoPhotoData.uploadDiaplay) { @@ -738,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