From 8d5a54fe6fa5a93e3c209975e4ee0f1fefe0a658 Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Fri, 26 Jul 2024 14:12:41 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=95=86=E5=93=81=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E5=A2=9E=E5=8A=A0=E5=95=86=E5=93=81=E5=A4=87=E6=B3=A8?=
=?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=89=B9=E9=87=8F=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E8=8C=83=E5=9B=B4=E9=99=90=E5=88=B6=EF=BC=8C=E4=BF=AE=E5=A4=8D?=
=?UTF-8?q?=E6=89=B9=E9=87=8F=E4=BF=AE=E6=94=B9=E6=97=B6=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?=E5=8F=98=E5=8C=96=E8=A7=86=E5=9B=BE=E6=9C=AA=E6=9B=B4=E6=96=B0?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/product/add_shop.vue | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/views/product/add_shop.vue b/src/views/product/add_shop.vue
index 978f4d1..ce2d562 100644
--- a/src/views/product/add_shop.vue
+++ b/src/views/product/add_shop.vue
@@ -16,6 +16,9 @@
+
+
+
@@ -323,7 +326,7 @@
-
@@ -402,6 +405,7 @@ export default {
id: "",
typeEnum: "normal",
name: "",
+ shortTitle:"",//商品介绍
unitId: "",
unitName: "",
categoryId: "", // 商品分类id
@@ -563,8 +567,14 @@ export default {
},
// 确认批量修改规格
batchNumberFormConfirm() {
- this.form.skuList.map(item => {
- item[this.batchNumberKey] = this.batchNumberForm.batchNumber;
+ console.log(this.form.skuList)
+ this.form.skuList.map((item,index) => {
+ //解决vue2列表数据更新视图未变化问题
+ let newitem = {...item}
+ newitem[this.batchNumberKey] = this.batchNumberForm.batchNumber;
+
+ this.$set( this.form.skuList, index, {...newitem})
+ // item[this.batchNumberKey] = this.batchNumberForm.batchNumber;
});
this.showBatchModal = false;
this.batchNumberForm.batchNumber = 0;