From e4b192185eae1d8311743bb30c163295a3a9b393 Mon Sep 17 00:00:00 2001
From: zzq <a13193816592@163.com>
Date: 星期三, 27 九月 2023 20:59:36 +0800
Subject: [PATCH] "searchCommonView冲突解决"
---
src/views/productManage/product/index.vue | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/views/productManage/product/index.vue b/src/views/productManage/product/index.vue
index 92938f3..f364068 100644
--- a/src/views/productManage/product/index.vue
+++ b/src/views/productManage/product/index.vue
@@ -106,11 +106,17 @@
isIconIndex: "1", // 1 鍥炬爣 2 鍒楄〃
url: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
pageSizes: [15, 30],
- keyWord: ""
+ keyWord: "",
+ categoryId:null,
}
},
created() {
this.setTable()
+ let query = this.$route.query;
+ if (query) {
+ this.categoryId = query.id ? Number(query.id) : null;
+ this.pagerOptions.currPage=1
+ }
this.getData()
},
methods: {
@@ -187,7 +193,7 @@
},
{
label: "浜у搧绫诲瀷",
- prop: "productType",
+ prop: "model",
isShowColumn: showcol.includes("浜у搧绫诲瀷"),
default: false
},
@@ -221,6 +227,7 @@
async getData() {
await getProductList({
keyWord: this.keyWord,
+ categoryId:this.categoryId?this.categoryId:null,
page: this.pagerOptions.currPage,
pageSize: this.pagerOptions.pageSize
}).then((res) => {
--
Gitblit v1.8.0