From 2041eca7232b494e5b8ce766b26a2399b22f9512 Mon Sep 17 00:00:00 2001 From: paulGao Date: Thu, 25 Aug 2022 14:05:01 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=A7=84=E6=A0=BC=E9=A1=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/views/goods/goods-seller/goodsOperationSec.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/seller/src/views/goods/goods-seller/goodsOperationSec.vue b/seller/src/views/goods/goods-seller/goodsOperationSec.vue index aca96fe5..0c7a004a 100644 --- a/seller/src/views/goods/goods-seller/goodsOperationSec.vue +++ b/seller/src/views/goods/goods-seller/goodsOperationSec.vue @@ -1329,9 +1329,7 @@ export default { /** 移除当前规格项 进行数据变化*/ handleCloseSkuItem($index, item) { this.skuInfo.splice($index, 1); - this.skuTableData.forEach((e, index) => { - delete e[item.name]; - }); + this.skuTableData.splice($index, 1); /** * 渲染规格详细表格 */ From f58500c4e3c320699ee129b0f31386987919d0a7 Mon Sep 17 00:00:00 2001 From: paulGao Date: Fri, 26 Aug 2022 19:56:25 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E8=A7=84=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../goods/goods-seller/goodsOperationSec.vue | 95 ++++++++++++++----- 1 file changed, 73 insertions(+), 22 deletions(-) diff --git a/seller/src/views/goods/goods-seller/goodsOperationSec.vue b/seller/src/views/goods/goods-seller/goodsOperationSec.vue index 0c7a004a..9a7e4345 100644 --- a/seller/src/views/goods/goods-seller/goodsOperationSec.vue +++ b/seller/src/views/goods/goods-seller/goodsOperationSec.vue @@ -274,7 +274,10 @@ placeholder="请输入规格名称" :filter-method="filterMethod" :data="skuData" - @on-change="editSkuItem" + @on-focus="changeSkuItem(item.name)" + @on-change=" + editSkuItem(item.name, $index, item) + " > @@ -297,10 +300,8 @@ placeholder="请输入规格项" :filter-method="filterMethod" :data="skuVal" - @on-focus="changeSkuVals(item.name)" - @on-change=" - skuValueChange(val.value, index, item) - " + @on-focus="changeSkuVals(val, item.name)" + @on-change="skuValueChange(val, index, item)" >