权限模块开发

This commit is contained in:
hoteas
2022-01-12 17:33:20 +08:00
parent 48fd753a96
commit 7e2abb43e3
4 changed files with 18 additions and 3288 deletions
+7 -1
View File
@@ -14,7 +14,13 @@ var Config = Map{
//{"label": "测试表格", "table": "table", "icon": "el-icon-suitcase"},
//{"label": "系统管理", "name": "setting", "icon": "el-icon-setting",
// "menus": []Map{
// {"label": "用户管理", "table": "user"},
// {"label": "用户管理", "table": "user",
// "default": {
// "path": "info",
// "id": "1"
// },
// "auth": ["show","edit","info","add","delete"],
// },
// {"label": "组织管理", "table": "organization"},
// {"label": "地区管理", "table": "area"},
// {"label": "角色管理", "table": "role"},
+1 -1
View File
@@ -141,7 +141,7 @@ func (that *MakeCode) Db2JSON(name string, path string, db *db.HoTimeDB, makeCod
that.TableConfig[v.GetString("name")] = Map{
"label": v.GetString("label"),
"table": v.GetString("name"),
"auth": []string{"add", "delete", "edit", "info"},
"auth": []string{"show", "add", "delete", "edit", "info"},
"columns": []Map{},
"search": []Map{