...
|
...
|
@@ -216,10 +216,13 @@ let tableCols = [ |
|
|
render: function(row, column, index) {
|
|
|
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>
|
|
|
<i-button v-if="row._disabled" type="primary" size="small"
|
|
|
@click="editProduct(${row.productSkn})" disabled>内容编辑</i-button>
|
|
|
<i-button v-else type="primary" size="small" @click="editProduct(${row.productSkn})">内容编辑</i-button>
|
|
|
</div>
|
|
|
<div class="btn-row-space">
|
|
|
<i-button v-if="row._disabled" type="success" size="small" @click="setOnSale(${row.productSkn})" disabled>上架</i-button>
|
|
|
<i-button v-if="row._disabled" type="success" size="small"
|
|
|
@click="setOnSale(${row.productSkn})" disabled>上架</i-button>
|
|
|
<i-button v-else type="success" size="small" @click="setOnSale(${row.productSkn})">上架</i-button>
|
|
|
</div>`;
|
|
|
}
|
...
|
...
|
|