修改虚拟清单的导出及新增的传参

This commit is contained in:
qq787203167
2022-04-22 17:29:04 +08:00
parent 78b385dbe6
commit 901aceeb39
2 changed files with 6 additions and 2 deletions
@@ -208,7 +208,10 @@
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.confirmLoading = true
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
postAction(this.url.addModel, { ids: selectedRowKeys.join(',') }).then((res) => {
postAction(this.url.addModel, {
ids: selectedRowKeys.join(','),
dummyInventoryBaseId: this.$route.query.id
}).then((res) => {
if (res.success) {
this.confirmLoading = false
this.$message.success(this.$t('OperationSuccessful'))
@@ -571,7 +571,8 @@
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
let query = {
...this.queryParam,
ids: selectedRowKeys.join(',')
ids: selectedRowKeys.join(','),
dummyInventoryBaseId: this.$route.query.id
}
downloadFile(this.url.exportData, this.$route.query.name + '虚拟清单.zip', query, this.Deselect)
},