From 08c73d53086d37af29070035f6211cce07199bfe Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 25 九月 2023 17:53:10 +0800
Subject: [PATCH] 产品类别 弹框里的产品根据产品类别的id跳转 产品

---
 src/views/productManage/productCategory/AddProductCategoryDialog.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/views/productManage/productCategory/AddProductCategoryDialog.vue b/src/views/productManage/productCategory/AddProductCategoryDialog.vue
index a0bab7a..ef39125 100644
--- a/src/views/productManage/productCategory/AddProductCategoryDialog.vue
+++ b/src/views/productManage/productCategory/AddProductCategoryDialog.vue
@@ -326,10 +326,15 @@
     delClick() {},
     // 浜у搧
     productClick() {
-      this.$router.push({
-        path: "/productManage/productList",
-        query: { name: "浜у搧" },
-      });
+      this.$refs.form.validate((valid) => {
+        if (valid) {
+          this.$router.push({
+            path: "/productManage/product",
+            query: { categoryName:this.editConfig.infomation.name, id: this.editConfig.title === "鏂板缓"?'':this.editConfig.infomation.id},
+          });
+        }
+      })
+      
     },
   },
 };

--
Gitblit v1.8.0