소스 검색

'全局搜索跳转'

zhangyu 5 년 전
부모
커밋
085a385a4a
1개의 변경된 파일17개의 추가작업 그리고 2개의 파일을 삭제
  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
+          }
+        })
       }
     }
   }