diff --git a/pom.xml b/pom.xml index 6c21fd7..46b0160 100644 --- a/pom.xml +++ b/pom.xml @@ -45,7 +45,7 @@ - + com.jfinal diff --git a/root/api/db.js b/root/api/db.js index 445153a..b4f97db 100644 --- a/root/api/db.js +++ b/root/api/db.js @@ -1,12 +1,12 @@ const db = { - catalogList({dbAccount, dbPlatId}) { // database列表 + catalogList({dbAccount, dbid}) { // database列表 console.log(JSON.stringify(dbAccount)) - return red.postX('/_db/catalog_list', {dbAccount: escape(JSON.stringify(dbAccount)), dbPlatId}) + return red.postX('/_db/catalog_list', {dbAccount: escape(JSON.stringify(dbAccount)), dbid}) }, - tableList({dbPlatId, catalog}) { // 数据库表列表 - return red.postX('/_db/table_list', {dbPlatId, catalog}) + tableList({dbid, catalog}) { // 数据库表列表 + return red.postX('/_db/table_list', {dbid, catalog}) }, - tableInfo({dbPlatId, catalog, tableName}) { - return red.postX('/_db/table_info', {dbPlatId, catalog, tableName}) + tableInfo({dbid, catalog, tableName}) { + return red.postX('/_db/table_info', {dbid, catalog, tableName}) } } \ No newline at end of file diff --git a/root/api/meta.js b/root/api/meta.js index e4d4750..6daa560 100644 --- a/root/api/meta.js +++ b/root/api/meta.js @@ -19,9 +19,9 @@ const meta = { getServiceInfo({name}, callback) { red.getJSON("/meta/service_info",{name}, res => { - let {name, comment, table, edits, imports, shows, exports, filters, details, dels} = red.replacePoint(res) + let {name, comment, tablealias, edits, imports, shows, exports, filters, details, dels} = red.replacePoint(res) - callback({name, comment, table, edits, imports, shows, exports, filters, details, dels}); + callback({name, comment, tablealias, edits, imports, shows, exports, filters, details, dels}); }); }, getServiceDetail({name}, callback) { @@ -97,7 +97,7 @@ const meta = { //client exportData({fbean, cate}) { if (cate == 'excel') { - location.href = "/data/export?fBean=" + JSON.stringify(fbean) + "&platToken=" + red.getPlatToken() + "&cate=excel"; + location.href = "/data/export?fBean=" + JSON.stringify(fbean) + "&plattoken=" + red.getPlatToken() + "&cate=excel"; } else if (cate == 'cvs') { } else if (cate == 'json') { diff --git a/root/api/plat.js b/root/api/plat.js index 73d0508..c352220 100644 --- a/root/api/plat.js +++ b/root/api/plat.js @@ -2,7 +2,7 @@ const plat = { platList(params = {}) { // 平台列表 - params['platToken'] = 'xx' + params['plattoken'] = 'xx' return red.getX('/plat/list', params) }, platSave({plat}) { diff --git a/root/api/table.js b/root/api/table.js index 31d2244..b2b7c4e 100644 --- a/root/api/table.js +++ b/root/api/table.js @@ -1,19 +1,19 @@ const table = { - _sheets({cate, filePath, dbAccount, dbPlatId, catalog}) { - return red.postX('/_table/sheets',{cate, filePath, dbAccount, dbPlatId, catalog}) + _sheets({cate, filePath, dbAccount, dbid, catalog}) { + return red.postX('/_table/sheets',{cate, filePath, dbAccount, dbid, catalog}) }, sheetsExcel({filePath}) { return table._sheets({cate: "excel", filePath}) }, - sheetMySql({dbPlatId, catalog}) { - return table._sheets({cate: "mysql", dbPlatId, catalog}) + sheetMySql({dbid, catalog}) { + return table._sheets({cate: "mysql", dbid, catalog}) }, sheetInfo({filePath, sheetName}) { return red.postX('/_table/sheet_info', {cate: 'excel', filePath, sheetName}) }, - saveTable({dbPlatId, catalog, tableArr}) { // - return red.postX('/_table/table_save', {cate: 'mysql', dbPlatId, catalog, tableArr: JSON.stringify(tableArr)}) + saveTable({dbid, catalog, tableArr}) { // + return red.postX('/_table/table_save', {cate: 'mysql', dbid, catalog, tableArr: JSON.stringify(tableArr)}) }, saveSheet({filePath, sheetNames}) { return red.postX('/_table/table_save', {cate: 'excel', filePath, sheetNames: JSON.stringify(sheetNames)}) diff --git a/root/api/user.js b/root/api/user.js index 2aa54a2..09fadbd 100644 --- a/root/api/user.js +++ b/root/api/user.js @@ -1,7 +1,7 @@ //import red from '../res/js/red' const login = ({username, pwd}) => { - return red.postX("/user/login", {username, pwd, platToken: 'xx'}) + return red.postX("/user/login", {username, pwd, plattoken: 'xx'}) } const logout = () => { diff --git a/root/content/list.html b/root/content/list.html index 8cba8a3..e3912c3 100644 --- a/root/content/list.html +++ b/root/content/list.html @@ -88,7 +88,7 @@
- diff --git a/root/index.html b/root/index.html index 22ecc81..c34a344 100644 --- a/root/index.html +++ b/root/index.html @@ -16,7 +16,7 @@
diff --git a/root/metadata/metaLink.html b/root/metadata/metaLink.html index dfd857d..4e7ebea 100644 --- a/root/metadata/metaLink.html +++ b/root/metadata/metaLink.html @@ -60,12 +60,12 @@ 操作 - + - + - +