Commit b8688296 by 放生的三文鱼

完成导入导出

parent 5aa8f5e1
...@@ -16,6 +16,7 @@ import { appId } from "../../../../App"; ...@@ -16,6 +16,7 @@ import { appId } from "../../../../App";
import AssetDetailDrawer from "../../AssetManage/Component/AssetDetailDrawer"; import AssetDetailDrawer from "../../AssetManage/Component/AssetDetailDrawer";
import ImportModal from "./ImportModal"; import ImportModal from "./ImportModal";
import LocalStorage from "local-storage"; import LocalStorage from "local-storage";
import qs from "qs";
import "./index.less"; import "./index.less";
// 主组件 // 主组件
...@@ -95,10 +96,14 @@ const AssetManagementTable = () => { ...@@ -95,10 +96,14 @@ const AssetManagementTable = () => {
}; };
const handleExportDraft = () => { const handleExportDraft = () => {
const payload = {
draftIds: selectedRowKeys,
};
window.open( window.open(
`/api/dataassetmanager/draftApi/exportByDraftIds?dataAssetIds=${selectedRowKeys.join( `/api/dataassetmanager/draftApi/exportByDraftIds?${qs.stringify(payload, {
"," arrayFormat: "repeat",
)}&templateType=${currentTemplate}` })}&templateType=${currentTemplate}`
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment