metaService中支持详情页配置
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user