Authored by 李奇

审核状态的商品编辑限制

... ... @@ -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>`;
}
... ...
... ... @@ -195,10 +195,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="error" size="small" @click="setOffSale(${row.productSkn})" disabled>下架</i-button>
<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>`;
}
... ...
... ... @@ -67,8 +67,6 @@
}
}
},
created() {
},
methods: {
exportFile() {
const params = {
... ... @@ -99,8 +97,8 @@
.field-label {
line-height: 32px;
}
.row-space {
margin-bottom: 20px;
}
</style>
... ...