diff --git a/src/components/Modal/GoodsModal/GoodsModal.vue b/src/components/Modal/GoodsModal/GoodsModal.vue index 8b7aef3..fde71bf 100644 --- a/src/components/Modal/GoodsModal/GoodsModal.vue +++ b/src/components/Modal/GoodsModal/GoodsModal.vue @@ -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 }) },