|
|
|
@ -52,6 +52,11 @@ |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
<!-- 商品状态 --> |
|
|
|
|
<span slot="spec_type" slot-scope="text"> |
|
|
|
|
<p class="twoline-hide" style="width: 40px"> |
|
|
|
|
{{ text == 10 ? '单规格' : '多规格' }} |
|
|
|
|
</p> |
|
|
|
|
</span> |
|
|
|
|
<span slot="status" slot-scope="text"> |
|
|
|
|
<a-tag :color="text == 10 ? 'green' : 'red'">{{ text == 10 ? '上架' : '下架' }}</a-tag> |
|
|
|
|
</span> |
|
|
|
@ -77,6 +82,11 @@ const columns = [ |
|
|
|
|
width: '335px', |
|
|
|
|
scopedSlots: { customRender: 'item' }, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '规格类型', |
|
|
|
|
dataIndex: 'spec_type', |
|
|
|
|
scopedSlots: { customRender: 'spec_type' }, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '商品价格', |
|
|
|
|
dataIndex: 'goods_price_min', |
|
|
|
@ -120,8 +130,8 @@ export default { |
|
|
|
|
searchForm: this.$form.createForm(this), |
|
|
|
|
// 查询参数 |
|
|
|
|
queryParam: {}, |
|
|
|
|
queryNew:{ |
|
|
|
|
channel: 'zy', |
|
|
|
|
queryNew: { |
|
|
|
|
channel: 'zy', |
|
|
|
|
status: 10, |
|
|
|
|
}, |
|
|
|
|
// table表头 |
|
|
|
@ -129,7 +139,7 @@ export default { |
|
|
|
|
// 加载数据方法 必须为 Promise 对象 |
|
|
|
|
loadData: (param) => { |
|
|
|
|
this.queryNew = this.source == 1 ? this.queryNew : {} |
|
|
|
|
return GoodsApi.list({ ...param, ...this.queryParam,...this.queryNew }).then((response) => { |
|
|
|
|
return GoodsApi.list({ ...param, ...this.queryParam, ...this.queryNew }).then((response) => { |
|
|
|
|
return response.data.list |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|