Authored by 李奇

未上架商品列表页尺码编辑添加

... ... @@ -111,7 +111,7 @@
<Page :total="pageData.total" :current="pageData.current"
@on-change="pageChange" :page-size="20" show-total></Page>
</div>
<size-edit></size-edit>
<size-edit ref="showSizeEdit" :show="showSizeEdit"></size-edit>
</div>
</template>
... ... @@ -137,7 +137,8 @@
filters: filterFields,
initialFilters: '',
batchOnSale: [],
useFilterSign: false
useFilterSign: false,
showSizeEdit: false
}
},
created() {
... ... @@ -145,6 +146,9 @@
this.initialFilters = JSON.stringify(filterFields);
},
methods: {
editSize(skn) {
this.$refs.showSizeEdit.show(skn);
},
filterParams() {
const fts = this.filters;
const data = {
... ...
... ... @@ -213,7 +213,7 @@ let tableCols = [
align: 'center',
render: function(row, column, index) {
return `<div class="action-btn-row">
<i-button type="primary" size="small">尺码维护</i-button>
<i-button type="primary" size="small" @click="editSize(row.productSkn)">尺码维护</i-button>
<i-button type="primary" size="small" @click="editProduct(${row.productSkn})">内容编辑</i-button>
</div>
<div class="btn-row-space"><i-button type="success" size="small" @click="setOnSale(${row.productSkn})">上架</i-button></div>`;
... ...