From e5c74c2e0c827aad8083442a13f8c5f31f6dd69b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Mon, 11 Nov 2024 18:05:56 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E7=BB=8F=E8=90=A5=E8=80=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../brand/config/popup/change-password.vue | 2 +-
src/views/modules/product/index.vue | 29 ++++++++++++++++---
2 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/src/views/modules/brand/config/popup/change-password.vue b/src/views/modules/brand/config/popup/change-password.vue
index 8e71c81..85fb772 100644
--- a/src/views/modules/brand/config/popup/change-password.vue
+++ b/src/views/modules/brand/config/popup/change-password.vue
@@ -125,7 +125,7 @@ export default {
},
},
{
- label: this.isAdd ? "确认添加" : "确认",
+ label: this.isAdd ? "保存" : "确认",
type: "primary",
loading: this.isLoading,
submit: true,
diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/index.vue
index 3e4ff20..34490b7 100644
--- a/src/views/modules/product/index.vue
+++ b/src/views/modules/product/index.vue
@@ -26,7 +26,7 @@
@@ -34,6 +34,7 @@
查询
+ 重置
@@ -88,9 +89,10 @@ export default {
activeName: "在售",
dataList: [],
formInline: {
- user: "",
- region: "",
+ name: "",
+ marketId: "",
},
+ marketList: [],
tableProp: {
"auto-resize": true,
border: true,
@@ -104,7 +106,18 @@ export default {
};
},
created() {
- this.shopId = JSON.parse(sessionStorage.getItem("userInfo")).shopId;
+ if (JSON.parse(sessionStorage.getItem("userInfo")).markets.length > 0) {
+ this.shopId = true;
+ this.formInline.marketId = JSON.parse(
+ sessionStorage.getItem("userInfo")
+ ).markets[0].marketId;
+ this.marketList = JSON.parse(sessionStorage.getItem("userInfo")).markets;
+ console.log(this.marketList);
+ } else if (JSON.parse(sessionStorage.getItem("userInfo")).shopId) {
+ this.shopId = true;
+ } else {
+ this.shopId = false;
+ }
},
methods: {
addProduct() {
@@ -140,6 +153,7 @@ export default {
pageNumber: pageNo,
pageSize: pageSize,
},
+ ...this.formInline,
productFilterType: this.productFilterType,
merchantId: JSON.parse(sessionStorage.getItem("userInfo")).merchantId,
shopId: JSON.parse(sessionStorage.getItem("userInfo")).shopId,
@@ -156,6 +170,13 @@ export default {
this.$refs.oTable.complete(false);
});
},
+ Reset() {
+ this.formInline = {
+ name: "",
+ // region: "",
+ };
+ this.$refs.oTable.reload();
+ },
handleClick() {
switch (this.activeName) {
case "在售":