1
0
Prechádzať zdrojové kódy

新增任务管理数据

zhontai 2 rokov pred
rodič
commit
48e553d181

+ 7 - 0
src/hosts/ZhonTai.Host/InitData/Admin/ad_api.json

@@ -1182,6 +1182,7 @@
     "label": "员工管理",
     "path": "staff",
     "description": "",
+    "enabled": true,
     "childs": [
       {
         "id": 174219034734666,
@@ -1190,6 +1191,7 @@
         "path": "/api/admin/staff/get",
         "httpMethods": "get",
         "description": "",
+        "enabled": true,
         "childs": []
       },
       {
@@ -1199,6 +1201,7 @@
         "path": "/api/admin/staff/get-page",
         "httpMethods": "post",
         "description": "",
+        "enabled": true,
         "childs": []
       },
       {
@@ -1208,6 +1211,7 @@
         "path": "/api/admin/staff/add",
         "httpMethods": "post",
         "description": "",
+        "enabled": true,
         "childs": []
       },
       {
@@ -1217,6 +1221,7 @@
         "path": "/api/admin/staff/update",
         "httpMethods": "put",
         "description": "",
+        "enabled": true,
         "childs": []
       },
       {
@@ -1226,6 +1231,7 @@
         "path": "/api/admin/staff/soft-delete",
         "httpMethods": "delete",
         "description": "",
+        "enabled": true,
         "childs": []
       },
       {
@@ -1235,6 +1241,7 @@
         "path": "/api/admin/staff/batch-soft-delete",
         "httpMethods": "put",
         "description": "",
+        "enabled": true,
         "childs": []
       }
     ]

+ 16 - 1
src/hosts/ZhonTai.Host/InitData/Admin/ad_permission.json

@@ -875,7 +875,7 @@
       {
         "id": 161227168763974,
         "parentId": 161227168497733,
-        "label": "系统配置",
+        "label": "系统管理",
         "type": 1,
         "path": "",
         "icon": "el-icon-s-platform",
@@ -956,6 +956,21 @@
                 "childs": []
               }
             ]
+          },
+          {
+            "id": 342340463398981,
+            "parentId": 161227168763974,
+            "label": "任务管理",
+            "type": 2,
+            "viewId": 336556164300869,
+            "path": "/admin/task",
+            "icon": "",
+            "enabled": true,
+            "closable": true,
+            "newWindow": false,
+            "external": false,
+            "sort": 0,
+            "description": ""
           }
         ]
       },

+ 1 - 1
src/platform/ZhonTai.Admin/Tools/TaskScheduler/TaskSchedulerServiceExtensions.cs

@@ -34,7 +34,7 @@ public static class TaskSchedulerServiceExtensions
             a.Property(b => b.Body).StringLength(-1);
             a.Property(b => b.Interval).MapType(typeof(string));
             a.Property(b => b.IntervalArgument).StringLength(1024);
-            a.Property(b => b.Status).MapType(typeof(string));
+            a.Property(b => b.Status).MapType(typeof(int));
             a.Property(b => b.CreateTime).ServerTime(DateTimeKind.Local);
             a.Property(b => b.LastRunTime).ServerTime(DateTimeKind.Local);
         })