...
|
...
|
@@ -91,16 +91,22 @@ export default () => { |
|
|
width: 180,
|
|
|
align: 'center',
|
|
|
render: function(row) {
|
|
|
return `<div class="action-btn-row">
|
|
|
<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 v-if="row._disabled" type="error" size="small"
|
|
|
@click="setOffSale(${row.productSkn})" disabled>下架</i-button>
|
|
|
<i-button v-else type="error" size="small" @click="setOffSale(${row.productSkn})" >下架</i-button>
|
|
|
</div>`;
|
|
|
}
|
|
|
return `<div class="cell-action-row">
|
|
|
<i-button type="primary" size="small"
|
|
|
@click="editSize(row.productSkn)">尺码维护</i-button>
|
|
|
</div>
|
|
|
<div class="cell-action-row">
|
|
|
<i-button type="primary" size="small"
|
|
|
@click="editProduct(${row.productSkn})">内容编辑</i-button>
|
|
|
</div>
|
|
|
<div class="cell-action-row">
|
|
|
<i-button v-if="row._disabled" type="error" size="small"
|
|
|
@click="setOffSale(${row.productSkn})" disabled>商品下架</i-button>
|
|
|
<i-button v-else type="error" size="small"
|
|
|
@click="setOffSale(${row.productSkn})" >商品下架</i-button>
|
|
|
</div>`;
|
|
|
},
|
|
|
cellClassName: 'cell-action'
|
|
|
}
|
|
|
],
|
|
|
tableData: [],
|
...
|
...
|
|