【更新】调整导出功能的参数格式

pull/94/head
小诺 2023-03-14 01:45:43 +08:00 committed by 俞宝山
parent bba662ed6c
commit f8d7ced955
2 changed files with 10 additions and 8 deletions

View File

@ -322,9 +322,11 @@
message.warning('请输入查询条件或勾选要导出的信息')
}
if (selectedRowKeys.value.length > 0) {
const params = selectedRowKeys.value.map((m) => {
const params = {
userIds: selectedRowKeys.value.map((m) => {
return m
})
}).join()
}
exportBatchUser(params)
return
}

View File

@ -316,9 +316,11 @@
message.warning('请输入查询条件或勾选要导出的信息')
}
if (selectedRowKeys.value.length > 0) {
const params = selectedRowKeys.value.map((m) => {
const params = {
userIds: selectedRowKeys.value.map((m) => {
return m
})
}).join()
}
exportBatchUser(params)
return
}
@ -328,12 +330,10 @@
userStatus: searchFormState.userStatus
}
exportBatchUser(params)
return
}
}
//
const exportBatchUser = (params) => {
console.log(JSON.stringify(params))
userApi.userExport(params).then((res) => {
downloadUtil.resultDownload(res)
table.value.clearSelected()