From 582a58de77cb62ccc83a48485f73ad7e26c491fd Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 18 Jun 2024 21:08:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Modal/GoodsModal/GoodsModal.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 }) },