diff --git a/root/api/table.js b/root/api/table.js index bf7e7f6..31d2244 100644 --- a/root/api/table.js +++ b/root/api/table.js @@ -8,8 +8,14 @@ const table = { sheetMySql({dbPlatId, catalog}) { return table._sheets({cate: "mysql", dbPlatId, catalog}) }, + sheetInfo({filePath, sheetName}) { + return red.postX('/_table/sheet_info', {cate: 'excel', filePath, sheetName}) + }, - saveTable({dbPlatId, catalog, tableArr}) { - return red.postX('/_table/table_save', {dbPlatId, catalog, tableArr: JSON.stringify(tableArr)}) + saveTable({dbPlatId, catalog, tableArr}) { // + return red.postX('/_table/table_save', {cate: 'mysql', dbPlatId, catalog, tableArr: JSON.stringify(tableArr)}) + }, + saveSheet({filePath, sheetNames}) { + return red.postX('/_table/table_save', {cate: 'excel', filePath, sheetNames: JSON.stringify(sheetNames)}) } } \ No newline at end of file diff --git a/root/metadata/metatable/import.html b/root/metadata/metatable/import.html index ec72c86..aac4c09 100644 --- a/root/metadata/metatable/import.html +++ b/root/metadata/metatable/import.html @@ -56,13 +56,13 @@
其他一些定制的特殊格式的 实体数据形式