优化后台商品列表和详情
This commit is contained in:
parent
54345c0b18
commit
367f334c4d
|
|
@ -195,7 +195,9 @@
|
|||
</td>
|
||||
<td><input type="text" class="form-control" v-model="sku.model" :name="'skus[' + skuIndex + '][model]'"
|
||||
placeholder="型号"></td>
|
||||
<td><input type="text" class="form-control" v-model="sku.sku" :name="'skus[' + skuIndex + '][sku]'" placeholder="sku">
|
||||
<td>
|
||||
<input type="text" class="form-control" v-model="sku.sku" :name="'skus[' + skuIndex + '][sku]'" placeholder="sku" :style="sku.is_default ? 'margin-top: 19px;' : ''">
|
||||
<span v-if="sku.is_default" class="text-success">默认主商品</span>
|
||||
</td>
|
||||
<td><input type="text" class="form-control" v-model="sku.price" :name="'skus[' + skuIndex + '][price]'"
|
||||
placeholder="价格"></td>
|
||||
|
|
|
|||
|
|
@ -211,6 +211,7 @@
|
|||
type: 'warning'
|
||||
}).then(() => {
|
||||
$http.delete('products/delete', {ids: this.selected}).then((res) => {
|
||||
layer.msg(res.message)
|
||||
location.reload();
|
||||
})
|
||||
});
|
||||
|
|
@ -221,6 +222,7 @@
|
|||
type: 'warning'
|
||||
}).then(() => {
|
||||
$http.post('products/status', {ids: this.selected, status: type}).then((res) => {
|
||||
layer.msg(res.message)
|
||||
location.reload();
|
||||
})
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue