|
|
@ -949,10 +949,14 @@ const TableModule = forwardRef((props, ref) => { |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
if (res.status === 20000) { |
|
|
|
if (pageName === "charge") { //特殊情况,充电记录导出 |
|
|
|
message.success(res.message) |
|
|
|
} else { |
|
|
|
const link = document.createElement("a"); |
|
|
|
link.href = res.data.url || res.data.export_url; |
|
|
|
link.target = "_blank"; // 打开新页面 |
|
|
|
link.click(); |
|
|
|
} |
|
|
|
setTipModal({ |
|
|
|
...tipModal, visible: false, |
|
|
|
filename: |
|
|
|