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