|
@ -10,13 +10,13 @@ export default [ |
|
|
createButton("query", "title=查询&isTop=true"), |
|
|
createButton("query", "title=查询&isTop=true"), |
|
|
createButton("create", "title=新建&isTop=true"), |
|
|
createButton("create", "title=新建&isTop=true"), |
|
|
createButton("update", "title=编辑"), |
|
|
createButton("update", "title=编辑"), |
|
|
createButton("delete", "title=删除", (o) => o.userName !== "admin"), |
|
|
createButton("delete", "title=删除&disabled=o=>o.userName==='admin'"), |
|
|
createButton("reset-password", "title=重置密码&method=PUT"), |
|
|
createButton("reset-password", "title=重置密码&method=PUT"), |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
...createPage("role", "title=角色管理"), |
|
|
...createPage("role", "title=角色管理"), |
|
|
children: [createButton("query", "title=查询&isTop=true"), createButton("create", "title=新建&isTop=true"), createButton("delete", "title=删除", (o) => o.isStatic)], |
|
|
children: [createButton("query", "title=查询&isTop=true"), createButton("create", "title=新建&isTop=true"), createButton("delete", "title=删除&disabled=o => o.isStatic")], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
...createPage("material", "title=物料主数据"), |
|
|
...createPage("material", "title=物料主数据"), |
|
|