Sfoglia il codice sorgente

'全局搜索跳转'

zhangyu 4 anni fa
parent
commit
085a385a4a
1 ha cambiato i file con 17 aggiunte e 2 eliminazioni
  1. 17 2
      src/components/public/remoteSearch.vue

+ 17 - 2
src/components/public/remoteSearch.vue

@@ -62,9 +62,24 @@ export default {
     },
     handleSelect(item) {
       if (item.objectType == 'brand') {
-
+        this.$router.push({
+          path: 'brand/brandDetail',
+          query: {
+            BrandCname: item.BrandCname,
+            BrandID:item.BrandID,
+            BrandName: item.BrandID
+          }
+        })
       } else {
-
+        this.$router.push({
+          path: 'product/productDetail',
+          query: {
+            major: item.Name,
+            system: item.DefMajor[0].Name,
+            class: item.DefMajor[0].DefClass[0].Name,
+            code: item.DefMajor[0].DefClass[0].Code
+          }
+        })
       }
     }
   }