mirror of https://gitee.com/xiaonuobase/snowy
【更新】调整导出功能的参数格式
parent
bba662ed6c
commit
f8d7ced955
|
@ -322,9 +322,11 @@
|
||||||
message.warning('请输入查询条件或勾选要导出的信息')
|
message.warning('请输入查询条件或勾选要导出的信息')
|
||||||
}
|
}
|
||||||
if (selectedRowKeys.value.length > 0) {
|
if (selectedRowKeys.value.length > 0) {
|
||||||
const params = selectedRowKeys.value.map((m) => {
|
const params = {
|
||||||
return m
|
userIds: selectedRowKeys.value.map((m) => {
|
||||||
})
|
return m
|
||||||
|
}).join()
|
||||||
|
}
|
||||||
exportBatchUser(params)
|
exportBatchUser(params)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -316,9 +316,11 @@
|
||||||
message.warning('请输入查询条件或勾选要导出的信息')
|
message.warning('请输入查询条件或勾选要导出的信息')
|
||||||
}
|
}
|
||||||
if (selectedRowKeys.value.length > 0) {
|
if (selectedRowKeys.value.length > 0) {
|
||||||
const params = selectedRowKeys.value.map((m) => {
|
const params = {
|
||||||
return m
|
userIds: selectedRowKeys.value.map((m) => {
|
||||||
})
|
return m
|
||||||
|
}).join()
|
||||||
|
}
|
||||||
exportBatchUser(params)
|
exportBatchUser(params)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -328,12 +330,10 @@
|
||||||
userStatus: searchFormState.userStatus
|
userStatus: searchFormState.userStatus
|
||||||
}
|
}
|
||||||
exportBatchUser(params)
|
exportBatchUser(params)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 批量导出
|
// 批量导出
|
||||||
const exportBatchUser = (params) => {
|
const exportBatchUser = (params) => {
|
||||||
console.log(JSON.stringify(params))
|
|
||||||
userApi.userExport(params).then((res) => {
|
userApi.userExport(params).then((res) => {
|
||||||
downloadUtil.resultDownload(res)
|
downloadUtil.resultDownload(res)
|
||||||
table.value.clearSelected()
|
table.value.clearSelected()
|
||||||
|
|
Loading…
Reference in New Issue