master
fanfan 5 months ago
parent d495a7b083
commit 582a58de77
  1. 7
      src/components/Modal/GoodsModal/GoodsModal.vue

@ -130,7 +130,8 @@ export default {
// //
searchForm: this.$form.createForm(this), searchForm: this.$form.createForm(this),
// //
queryParam: { queryParam: {},
queryNew:{
is_sale: 1, is_sale: 1,
is_pool: 1, is_pool: 1,
}, },
@ -139,8 +140,8 @@ export default {
// 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
}) })
}, },

Loading…
Cancel
Save