Authored by 李奇

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

@@ -111,7 +111,7 @@ @@ -111,7 +111,7 @@
111 <Page :total="pageData.total" :current="pageData.current" 111 <Page :total="pageData.total" :current="pageData.current"
112 @on-change="pageChange" :page-size="20" show-total></Page> 112 @on-change="pageChange" :page-size="20" show-total></Page>
113 </div> 113 </div>
114 - <size-edit></size-edit> 114 + <size-edit ref="showSizeEdit" :show="showSizeEdit"></size-edit>
115 </div> 115 </div>
116 </template> 116 </template>
117 117
@@ -137,7 +137,8 @@ @@ -137,7 +137,8 @@
137 filters: filterFields, 137 filters: filterFields,
138 initialFilters: '', 138 initialFilters: '',
139 batchOnSale: [], 139 batchOnSale: [],
140 - useFilterSign: false 140 + useFilterSign: false,
  141 + showSizeEdit: false
141 } 142 }
142 }, 143 },
143 created() { 144 created() {
@@ -145,6 +146,9 @@ @@ -145,6 +146,9 @@
145 this.initialFilters = JSON.stringify(filterFields); 146 this.initialFilters = JSON.stringify(filterFields);
146 }, 147 },
147 methods: { 148 methods: {
  149 + editSize(skn) {
  150 + this.$refs.showSizeEdit.show(skn);
  151 + },
148 filterParams() { 152 filterParams() {
149 const fts = this.filters; 153 const fts = this.filters;
150 const data = { 154 const data = {
@@ -213,7 +213,7 @@ let tableCols = [ @@ -213,7 +213,7 @@ let tableCols = [
213 align: 'center', 213 align: 'center',
214 render: function(row, column, index) { 214 render: function(row, column, index) {
215 return `<div class="action-btn-row"> 215 return `<div class="action-btn-row">
216 - <i-button type="primary" size="small">尺码维护</i-button> 216 + <i-button type="primary" size="small" @click="editSize(row.productSkn)">尺码维护</i-button>
217 <i-button type="primary" size="small" @click="editProduct(${row.productSkn})">内容编辑</i-button> 217 <i-button type="primary" size="small" @click="editProduct(${row.productSkn})">内容编辑</i-button>
218 </div> 218 </div>
219 <div class="btn-row-space"><i-button type="success" size="small" @click="setOnSale(${row.productSkn})">上架</i-button></div>`; 219 <div class="btn-row-space"><i-button type="success" size="small" @click="setOnSale(${row.productSkn})">上架</i-button></div>`;