Prechádzať zdrojové kódy

'全局搜索跳转'

zhangyu 4 rokov pred
rodič
commit
085a385a4a
1 zmenil súbory, kde vykonal 17 pridanie a 2 odobranie
  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
+          }
+        })
       }
     }
   }