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

@ -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
}) })
}, },

Loading…
Cancel
Save