Browse Source

打开 热度统计 、 场景管理。增加 开屏海报 模块

shaogen1995 1 year ago
parent
commit
437ee55f85

+ 5 - 0
houtai/src/pages/B7Poster/index.module.scss

@@ -0,0 +1,5 @@
+.B7Poster{
+  :global{
+    
+  }
+}

+ 14 - 0
houtai/src/pages/B7Poster/index.tsx

@@ -0,0 +1,14 @@
+import React from "react";
+import styles from "./index.module.scss";
+ function B7Poster() {
+  
+  return (
+    <div className={styles.B7Poster}>
+      <h1>B7Poster</h1>
+    </div>
+  )
+}
+
+const MemoB7Poster = React.memo(B7Poster);
+
+export default MemoB7Poster;

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

@@ -24,23 +24,24 @@ 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 },
         { id: 260, name: "题库管理", authority: true },
         // { id: 270, name: "智能导览管理", authority: true },
+        { id: 280, name: "开屏海报", authority: true },
       ],
     },
   ]);

+ 29 - 23
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,35 +57,34 @@ 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: "/",
+            path: "/goods",
             done: false,
             Com: React.lazy(() => import("../B2Goods")),
           },
@@ -117,6 +116,13 @@ function Layout() {
           //   done: false,
           //   Com: React.lazy(() => import("../B6Smart")),
           // },
+                    {
+            id: 280,
+            name: "开屏海报",
+            path: "/poster",
+            done: false,
+            Com: React.lazy(() => import("../B7Poster")),
+          },
         ],
       },
     ];