wenhongquan hace 7 meses
padre
commit
53b7681d45
Se han modificado 2 ficheros con 57 adiciones y 13 borrados
  1. 52 11
      uperp/fixtrues/workspace.json
  2. 5 2
      uperp/hooks.py

+ 52 - 11
uperp/fixtrues/workspace.json

@@ -1,26 +1,67 @@
 [
     {
         "doctype": "Workspace",
-        "name": "uperp",
-        "title": "uperp",
-        "icon": "icon-name",
+        "name": "UPERP管理",
+        "title": "UPERP管理",
+        "icon": "settings",
         "indicator_color": "blue",
         "is_standard": 1,
-        "module": "uperp",
+        "module": "UPERP",
+        "parent_page": "",
+        "public": 1,
         "charts": [],
-        "shortcuts": [],
+        "shortcuts": [
+            {
+                "label": "快速入口",
+                "url": "/test",
+                "doc_view": "",
+                "color": "Blue",
+                "icon": "dashboard",
+                "format": "",
+                "stats_filter": "",
+                "type": "URL"
+            }
+        ],
         "cards": [
             {
-                "card_name": "Your Custom Card",
-                "label": "test",
+                "card_name": "UPERP功能",
+                "label": "UPERP功能模块",
                 "hidden": 0,
                 "links": [
                     {
-                        "label": "test",
+                        "label": "UPERP控制面板",
+                        "type": "Page",
+                        "name": "uperp-dashboard",
+                        "icon": "dashboard",
+                        "description": "UPERP系统控制面板"
+                    },
+                    {
+                        "label": "自定义报表",
+                        "type": "Page",
+                        "name": "uperp-reports",
+                        "icon": "file-text",
+                        "description": "UPERP自定义报表"
+                    },
+                    {
+                        "label": "数据管理",
                         "type": "Page",
-                        "name": "your-custom-page",
-                        "icon": "icon-name",
-                        "description": "页面描述"
+                        "name": "uperp-data-manager",
+                        "icon": "database",
+                        "description": "UPERP数据管理工具"
+                    }
+                ]
+            },
+            {
+                "card_name": "UPERP配置",
+                "label": "系统配置",
+                "hidden": 0,
+                "links": [
+                    {
+                        "label": "UPERP设置",
+                        "type": "DocType",
+                        "name": "UPERP Settings",
+                        "icon": "settings",
+                        "description": "UPERP系统设置"
                     }
                 ]
             }

+ 5 - 2
uperp/hooks.py

@@ -242,7 +242,10 @@ after_install = "uperp.install.after_install"
 # 	"Logging DocType Name": 30  # days to retain logs
 # }
 
-
 fixtures = [
-    "Workspace"
+    {"dt": "Workspace", "filters": [["name", "in", ["UPERP管理"]]]}
+]
+
+website_route_rules = [
+    {"from_route": "/test", "to_route": "uperp-dashboard"},
 ]