|
|
|
@ -130,17 +130,18 @@ export default { |
|
|
|
|
// 当前表单元素 |
|
|
|
|
searchForm: this.$form.createForm(this), |
|
|
|
|
// 查询参数 |
|
|
|
|
queryParam: { |
|
|
|
|
is_sale: 1, |
|
|
|
|
is_pool: 1, |
|
|
|
|
queryParam: {}, |
|
|
|
|
queryNew:{ |
|
|
|
|
is_sale: 1, |
|
|
|
|
is_pool: 1, |
|
|
|
|
}, |
|
|
|
|
// table表头 |
|
|
|
|
columns, |
|
|
|
|
// 加载数据方法 必须为 Promise 对象 |
|
|
|
|
loadData: (param) => { |
|
|
|
|
this.queryParam.channel = this.channel |
|
|
|
|
this.queryParam = this.source == 1 ? this.queryParam : {} |
|
|
|
|
return GoodsApi.list({ ...param, ...this.queryParam }).then((response) => { |
|
|
|
|
this.queryNew = this.source == 1 ? this.queryNew : {} |
|
|
|
|
return GoodsApi.list({ ...param, ...this.queryParam,...this.queryNew }).then((response) => { |
|
|
|
|
return response.data.list |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|