From 0a11a25ccd7c00020c7dcadb102118bc1b153c9e Mon Sep 17 00:00:00 2001 From: mabo Date: Fri, 25 Jun 2021 11:37:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=95=86=E5=93=81=E5=B0=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/views/goods/goods-seller/goodsOperation.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/seller/src/views/goods/goods-seller/goodsOperation.vue b/seller/src/views/goods/goods-seller/goodsOperation.vue index 05009be9..a442aef8 100644 --- a/seller/src/views/goods/goods-seller/goodsOperation.vue +++ b/seller/src/views/goods/goods-seller/goodsOperation.vue @@ -193,7 +193,7 @@ + @on-change="throttle(editSkuItem(), 1000)"> @@ -1182,9 +1182,7 @@ export default { this.renderTableData(); }, // 编辑规格名 - editSkuItem(index,name) { - // this.skuTableColumn[index].title = name - // this.skuTableColumn[index].key = 'sku' + index + editSkuItem() { this.renderTableData(); }, // 编辑规格值 @@ -1275,7 +1273,7 @@ export default { this.skuTableData = []; let pushData = []; //渲染头部 - this.skuInfo.forEach((sku,index) => { + this.skuInfo.forEach((sku) => { //列名称 let columnName = sku.name; pushData.push({ @@ -1314,6 +1312,7 @@ export default { ); this.skuTableColumn = pushData; + console.log(this.skuTableColumn); //克隆所有渲染的数据 let cloneTemp = cloneObj(this.skuInfo);