From eff92aec207a73c94bddafe4c8eaf3fa96f17dc2 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期五, 18 九月 2020 15:11:53 +0800
Subject: [PATCH] 直接访问桌面未登陆默认跳转登录页, 底库上传图片提示语

---
 src/pages/search/index/Searching.vue |   29 +++++++++++++----------------
 1 files changed, 13 insertions(+), 16 deletions(-)

diff --git a/src/pages/search/index/Searching.vue b/src/pages/search/index/Searching.vue
index 115d529..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
@@ -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) {
@@ -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