json文件导入以及页面跳转功能处理

This commit is contained in:
李志强 2024-01-03 14:44:35 +08:00
parent 17eee73f37
commit 9b2abb7847

View File

@ -1422,6 +1422,7 @@ const Index = React.memo(
};
const handleExportDataBase = (e, dataSource) => {
e.stopPropagation()
e.preventDefault()
const { entities, domains } = dataSource
const workBook = window.XLSX.utils.book_new();
for (let index = 0; index < entities.length; index++) {
@ -1590,11 +1591,11 @@ const Index = React.memo(
break;
case 'standardDataExport':
handleExportDataBase(e, dataSource);
break;
case 'standardDataImport':
handleImportDataBase(e, dataSource);
break;
default:
break;
}
};