发布商品小修改
parent
bb51771898
commit
0a11a25ccd
|
@ -193,7 +193,7 @@
|
||||||
<AutoComplete style="width: 150px" v-model="item.name" :maxlength="30"
|
<AutoComplete style="width: 150px" v-model="item.name" :maxlength="30"
|
||||||
placeholder="请输入规格项名称"
|
placeholder="请输入规格项名称"
|
||||||
:filter-method="filterMethod" :data="skuData"
|
:filter-method="filterMethod" :data="skuData"
|
||||||
@on-change="throttle(editSkuItem($index, item.name), 1000)">
|
@on-change="throttle(editSkuItem(), 1000)">
|
||||||
</AutoComplete>
|
</AutoComplete>
|
||||||
<Button type="error" style="margin-left: 10px" @click="handleCloseSkuItem($index)">删除
|
<Button type="error" style="margin-left: 10px" @click="handleCloseSkuItem($index)">删除
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -1182,9 +1182,7 @@ export default {
|
||||||
this.renderTableData();
|
this.renderTableData();
|
||||||
},
|
},
|
||||||
// 编辑规格名
|
// 编辑规格名
|
||||||
editSkuItem(index,name) {
|
editSkuItem() {
|
||||||
// this.skuTableColumn[index].title = name
|
|
||||||
// this.skuTableColumn[index].key = 'sku' + index
|
|
||||||
this.renderTableData();
|
this.renderTableData();
|
||||||
},
|
},
|
||||||
// 编辑规格值
|
// 编辑规格值
|
||||||
|
@ -1275,7 +1273,7 @@ export default {
|
||||||
this.skuTableData = [];
|
this.skuTableData = [];
|
||||||
let pushData = [];
|
let pushData = [];
|
||||||
//渲染头部
|
//渲染头部
|
||||||
this.skuInfo.forEach((sku,index) => {
|
this.skuInfo.forEach((sku) => {
|
||||||
//列名称
|
//列名称
|
||||||
let columnName = sku.name;
|
let columnName = sku.name;
|
||||||
pushData.push({
|
pushData.push({
|
||||||
|
@ -1314,6 +1312,7 @@ export default {
|
||||||
);
|
);
|
||||||
|
|
||||||
this.skuTableColumn = pushData;
|
this.skuTableColumn = pushData;
|
||||||
|
console.log(this.skuTableColumn);
|
||||||
//克隆所有渲染的数据
|
//克隆所有渲染的数据
|
||||||
let cloneTemp = cloneObj(this.skuInfo);
|
let cloneTemp = cloneObj(this.skuInfo);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue