1、支持列表自定义表头
2、业务完事,代码优化
This commit is contained in:
@@ -18,16 +18,6 @@ const meta = {
|
||||
},
|
||||
getServiceInfo({name}, callback) {
|
||||
red.getJSON("/meta/service_info",{name}, res => {
|
||||
/*let row = red.replacePoint(res)
|
||||
console.log(row)
|
||||
|
||||
//let [name, comment, table, edits, imports, shows, exports, filters] = red.replacePoint(res);
|
||||
|
||||
|
||||
row.shows = row.shows || [];
|
||||
row.exports = row.exports || [];
|
||||
row.imports = row.imports || [];
|
||||
row.filters = row.filters || [];*/
|
||||
|
||||
let {name, comment, table, edits, imports, shows, exports, filters} = red.replacePoint(res)
|
||||
|
||||
@@ -67,6 +57,12 @@ const meta = {
|
||||
return red.postX('/meta/tableinfo', {name, alias})
|
||||
},
|
||||
|
||||
//meta-service
|
||||
showSave({name, shows}) {
|
||||
shows = red.replace$(shows);
|
||||
return red.postX('/meta/showsort', {name, shows: JSON.stringify(shows)})
|
||||
},
|
||||
|
||||
// Meta-Table
|
||||
itemSort({alias, items}) {
|
||||
return red.postX('/meta/itemsort', {alias, items: JSON.stringify(items)})
|
||||
|
||||
Reference in New Issue
Block a user