|
|
|
@ -36,7 +36,6 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<!--表单组件--> |
|
|
|
|
<killForm ref="form4" :is-add="isAdd" /> |
|
|
|
|
<bargainForm ref="form5" :is-add="isAdd" /> |
|
|
|
|
<!--表格渲染--> |
|
|
|
|
<el-table v-loading="loading" :data="data" size="small" style="width: 100%;"> |
|
|
|
@ -85,13 +84,6 @@
|
|
|
|
|
<el-dropdown size="mini" split-button type="primary" trigger="click"> |
|
|
|
|
操作 |
|
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
|
<el-dropdown-item> |
|
|
|
|
<el-button |
|
|
|
|
size="mini" |
|
|
|
|
type="primary" |
|
|
|
|
@click="editD(scope.row)" |
|
|
|
|
>开启秒杀</el-button> |
|
|
|
|
</el-dropdown-item> |
|
|
|
|
<el-dropdown-item> |
|
|
|
|
<el-button |
|
|
|
|
size="mini" |
|
|
|
@ -292,40 +284,6 @@ export default {
|
|
|
|
|
} |
|
|
|
|
_this.dialog = true |
|
|
|
|
}, |
|
|
|
|
editD(data) { |
|
|
|
|
this.isAdd = false |
|
|
|
|
const _this = this.$refs.form4 |
|
|
|
|
_this.form = { |
|
|
|
|
productId: data.id, |
|
|
|
|
merId: data.merId, |
|
|
|
|
image: data.image, |
|
|
|
|
images: data.sliderImage, |
|
|
|
|
imageArr: data.image.split(','), |
|
|
|
|
sliderImageArr: data.sliderImage.split(','), |
|
|
|
|
title: data.storeName, |
|
|
|
|
info: data.storeInfo, |
|
|
|
|
postage: data.postage, |
|
|
|
|
unitName: data.unitName, |
|
|
|
|
sort: data.sort, |
|
|
|
|
sales: data.sales, |
|
|
|
|
stock: data.stock, |
|
|
|
|
isShow: data.isShow, |
|
|
|
|
status: 1, |
|
|
|
|
isHot: data.isHot, |
|
|
|
|
description: data.description, |
|
|
|
|
isPostage: data.isPostage, |
|
|
|
|
people: 0, |
|
|
|
|
price: 0.01, |
|
|
|
|
effectiveTime: 24, |
|
|
|
|
otPrice: data.otPrice, |
|
|
|
|
cost: data.cost, |
|
|
|
|
num: 1, |
|
|
|
|
giveIntegral: 0, |
|
|
|
|
isDel: 0, |
|
|
|
|
browse: 0 |
|
|
|
|
} |
|
|
|
|
_this.dialog = true |
|
|
|
|
}, |
|
|
|
|
editE(data) { |
|
|
|
|
this.isAdd = false |
|
|
|
|
const _this = this.$refs.form5 |
|
|
|
|