metaService中支持详情页配置

This commit is contained in:
2019-06-01 20:34:51 +08:00
parent 94c8a01b98
commit 5f9fef90ef
5 changed files with 200 additions and 106 deletions

View File

@@ -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} = red.replacePoint(res)
let {name, comment, table, edits, imports, shows, exports, filters, details} = red.replacePoint(res)
callback({name, comment, table, edits, imports, shows, exports, filters});
callback({name, comment, table, edits, imports, shows, exports, filters, details});
});
},
getServiceDetail({name}, callback) {
@@ -70,6 +70,10 @@ const meta = {
exports = red.replace$(exports);
return red.postX('/meta/exportsave', {name, exports: JSON.stringify(exports)})
},
detailSave({name, details}) {
details = red.replace$(details);
return red.postX('/meta/detailsave', {name, details: JSON.stringify(details)})
},
// Meta-Table
tableList() {