.
This commit is contained in:
@@ -3,8 +3,8 @@ const db = {
|
||||
console.log(dbAccount)
|
||||
return red.postX('/_db/catalog_list', {dbAccount: JSON.stringify(dbAccount), dbPlatId})
|
||||
},
|
||||
tableList({dbPlatId, catalogs}) { // 数据库表列表
|
||||
return red.postX('/_db/table_list', {dbPlatId, catalogs: JSON.stringify(catalogs)})
|
||||
tableList({dbPlatId, catalog}) { // 数据库表列表
|
||||
return red.postX('/_db/table_list', {dbPlatId, catalog})
|
||||
},
|
||||
tableInfo({dbPlatId, catalog, tableName}) {
|
||||
return red.postX('/_db/table_info', {dbPlatId, catalog, tableName})
|
||||
|
||||
@@ -47,5 +47,11 @@ const meta = {
|
||||
red.getJSON("/data/list",{fBean: JSON.stringify(fbean)}, (json = {rows:[], total:0}) => {
|
||||
callback(json)
|
||||
})
|
||||
},
|
||||
linkList() {
|
||||
return red.postX('/meta/link_list')
|
||||
},
|
||||
linkSave({link}) {
|
||||
return red.postX('/meta/link_save', {link: JSON.stringify(link)})
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
const table = {
|
||||
_sheets({cate, filePath, dbAccount, dbPlatId, catalogs}) {
|
||||
return red.postX('/_table/sheets',{cate, filePath, dbAccount, dbPlatId, catalogs})
|
||||
_sheets({cate, filePath, dbAccount, dbPlatId, catalog}) {
|
||||
return red.postX('/_table/sheets',{cate, filePath, dbAccount, dbPlatId, catalog})
|
||||
},
|
||||
sheetsExcel({filePath}) {
|
||||
return table._sheets({cate: "excel", filePath})
|
||||
},
|
||||
sheetMySql({dbPlatId, catalogs}) {
|
||||
return table._sheets({cate: "mysql", dbPlatId, catalogs: JSON.stringify(catalogs)})
|
||||
sheetMySql({dbPlatId, catalog}) {
|
||||
return table._sheets({cate: "mysql", dbPlatId, catalog})
|
||||
},
|
||||
|
||||
saveTable({dbPlatId, catalog, tableArr}) {
|
||||
|
||||
Reference in New Issue
Block a user