main
fanfan 8 months ago
parent c764984e20
commit 406e73895f
  1. 9
      src/views/dataCenter/goods/Index.vue

@ -191,7 +191,7 @@
<a-button style="background-color: #6370e4; color: #fff; border: none" @click="priceVisible = true" <a-button style="background-color: #6370e4; color: #fff; border: none" @click="priceVisible = true"
>分类加价</a-button >分类加价</a-button
> >
<a-button <a-button v-if="selectedRowKeys.length"
style="background-color: #501212; color: #fff; border: none" style="background-color: #501212; color: #fff; border: none"
@click="handleExport(selectedRowKeys)" @click="handleExport(selectedRowKeys)"
>导出</a-button >导出</a-button
@ -799,7 +799,7 @@ export default {
}) })
}, },
// //
handleExport() { handleExport(goodsIds) {
const formData = this.searchForm.getFieldsValue() const formData = this.searchForm.getFieldsValue()
this.isLoading = true this.isLoading = true
var index = window.serverConfig.BASE_API.indexOf('?') var index = window.serverConfig.BASE_API.indexOf('?')
@ -828,7 +828,10 @@ export default {
'&is_sale=' + '&is_sale=' +
this.queryParam.is_sale + this.queryParam.is_sale +
'&is_self=' + '&is_self=' +
this.queryParam.is_self this.queryParam.is_self+
'&goodsIds='+goodsIds
console.log(params)
return
window.open(resolve + '?s=/admin/goods/export' + params) window.open(resolve + '?s=/admin/goods/export' + params)
}, },
// //

Loading…
Cancel
Save