Browse Source

up-暂时隐藏 热度统计 和场景管理

shaogen1995 1 year ago
parent
commit
bc49d98c9f
2 changed files with 30 additions and 29 deletions
  1. 7 7
      houtai/src/pages/C2Role/RoleAdd/index.tsx
  2. 23 22
      houtai/src/pages/Layout/index.tsx

+ 7 - 7
houtai/src/pages/C2Role/RoleAdd/index.tsx

@@ -24,18 +24,18 @@ function RoleAdd({ id, closePage, upTableList, addTableList }: Props) {
 
   // 页面权限的选择
   const [list, setList] = useState<PermissionsAPIType[]>([
-    {
-      id: 100,
-      name: "数据统计",
-      authority: true,
-      children: [{ id: 110, name: "热度统计", authority: true }],
-    },
+    // {
+    //   id: 100,
+    //   name: "数据统计",
+    //   authority: true,
+    //   children: [{ id: 110, name: "热度统计", authority: true }],
+    // },
     {
       id: 200,
       name: "内容管理",
       authority: true,
       children: [
-        { id: 220, name: "场景管理", authority: true },
+        // { id: 220, name: "场景管理", authority: true },
         { id: 230, name: "馆藏管理", authority: true },
         { id: 240, name: "万物墙管理", authority: true },
         { id: 250, name: "弹幕管理", authority: true },

+ 23 - 22
houtai/src/pages/Layout/index.tsx

@@ -18,7 +18,7 @@ import encodeStr from "@/utils/pass";
 import { getDictListAPI, passWordEditAPI } from "@/store/action/login";
 import { getTokenInfo, removeTokenInfo } from "@/utils/storage";
 import { useDispatch, useSelector } from "react-redux";
-import inco1Ac from "@/assets/img/inco1Ac.png";
+// import inco1Ac from "@/assets/img/inco1Ac.png";
 import inco2Ac from "@/assets/img/inco2Ac.png";
 import inco3Ac from "@/assets/img/inco3Ac.png";
 import { MessageFu } from "@/utils/message";
@@ -57,34 +57,35 @@ function Layout() {
 
   const listTemp = useMemo(() => {
     const arr: ListTempType = [
-      {
-        title: "数据统计",
-        incoAc: inco1Ac,
-        son: [
-          {
-            id: 110,
-            name: "热度统计",
-            path: "/",
-            done: false,
-            Com: React.lazy(() => import("../A1Hot")),
-          },
-        ],
-      },
+      // {
+      //   title: "数据统计",
+      //   incoAc: inco1Ac,
+      //   son: [
+      //     {
+      //       id: 110,
+      //       name: "热度统计",
+      //       path: "/",
+      //       done: false,
+      //       Com: React.lazy(() => import("../A1Hot")),
+      //     },
+      //   ],
+      // },
       {
         title: "内容管理",
         incoAc: inco2Ac,
         son: [
-          {
-            id: 220,
-            name: "场景管理",
-            path: "/scene",
-            done: false,
-            Com: React.lazy(() => import("../B1Scene")),
-          },
+          // {
+          //   id: 220,
+          //   name: "场景管理",
+          //   path: "/scene",
+          //   done: false,
+          //   Com: React.lazy(() => import("../B1Scene")),
+          // },
           {
             id: 230,
             name: "馆藏管理",
-            path: "/goods",
+            // path: "/goods",
+            path: "/",
             done: false,
             Com: React.lazy(() => import("../B2Goods")),
           },