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

Loading…
Cancel
Save