发布商品小修改

master
mabo 2021-06-25 11:37:54 +08:00
parent bb51771898
commit 0a11a25ccd
1 changed files with 4 additions and 5 deletions

View File

@ -193,7 +193,7 @@
<AutoComplete style="width: 150px" v-model="item.name" :maxlength="30"
placeholder="请输入规格项名称"
:filter-method="filterMethod" :data="skuData"
@on-change="throttle(editSkuItem($index, item.name), 1000)">
@on-change="throttle(editSkuItem(), 1000)">
</AutoComplete>
<Button type="error" style="margin-left: 10px" @click="handleCloseSkuItem($index)">
</Button>
@ -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);