Yansen 2 年前
父节点
当前提交
a5b04607d7

+ 1
- 0
index.html 查看文件

4
     <meta charset="UTF-8" />
4
     <meta charset="UTF-8" />
5
     <link rel="icon" type="image/x-icon" href="/favicon.ico" />
5
     <link rel="icon" type="image/x-icon" href="/favicon.ico" />
6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <script src="/config.js"></script>
7
     <title>海安军供保障信息管理系统</title>
8
     <title>海安军供保障信息管理系统</title>
8
   </head>
9
   </head>
9
   <body>
10
   <body>

+ 6
- 0
public/config.js 查看文件

1
+
2
+// 大华监控
3
+DH_MONITOR = 'http://192.168.3.2';
4
+
5
+// 海康监控
6
+HK_MONITOR = 'http://192.168.3.2';

+ 2
- 2
src/components/evaluateItem/index.jsx 查看文件

5
     // value,
5
     // value,
6
     // onChange = (e) => {},
6
     // onChange = (e) => {},
7
     options = [
7
     options = [
8
-      { value: 2, label: "" },
9
-      { value: 1, label: "" },
8
+      { value: 2, label: "满意" },
9
+      { value: 1, label: "一般" },
10
       { value: 0, label: "差" },
10
       { value: 0, label: "差" },
11
     ],
11
     ],
12
     ...leftProps
12
     ...leftProps

+ 17
- 1
src/index.less 查看文件

45
 
45
 
46
   .ant-menu {
46
   .ant-menu {
47
     font-size: 16px;
47
     font-size: 16px;
48
-    background: var(--theme-color);
48
+    background: #0D267C;
49
+  }
50
+
51
+  .ant-menu-item {
52
+    overflow: hidden;
53
+    border-top-right-radius: 20px;
54
+    border-bottom-right-radius: 20px;
55
+  }
56
+
57
+  .ant-menu-title-content {
58
+    padding-left: 2em;
59
+  }
60
+
61
+  &.ant-layout-sider-collapsed {
62
+    .ant-menu-title-content {
63
+      padding-left: 0;
64
+    }
49
   }
65
   }
50
 }
66
 }
51
 
67
 

+ 1
- 1
src/layouts/AuthLayout/components/Footer.jsx 查看文件

11
   const copyRight = `${app.company} @ ${year}`
11
   const copyRight = `${app.company} @ ${year}`
12
 
12
 
13
   return (
13
   return (
14
-    <Footer style={{ textAlign: 'center' }}>{copyRight}</Footer>
14
+    <Footer style={{ textAlign: 'center', color: 'rgba(0,0,0, 0.3)' }}>{copyRight}</Footer>
15
   )
15
   )
16
 }
16
 }

+ 1
- 1
src/layouts/AuthLayout/components/SiderBar.jsx 查看文件

13
   }, []);
13
   }, []);
14
 
14
 
15
   return (
15
   return (
16
-    <Sider className='layout-sidebar' theme={theme} collapsible width={width}>
16
+    <Sider className='layout-sidebar' theme={theme} width={width}>
17
       <Menus theme={theme} items={menus} location={location} />
17
       <Menus theme={theme} items={menus} location={location} />
18
     </Sider>
18
     </Sider>
19
   );
19
   );

+ 1
- 1
src/layouts/Container.jsx 查看文件

15
 
15
 
16
   return (
16
   return (
17
     <div style={style}>
17
     <div style={style}>
18
-      {/* { meta.title && !meta.noLayout && <Title level={4} style={{ paddingBottom: '12px' }}>{ meta.title }</Title> } */}
18
+      { meta.title && !meta.noLayout && <Title level={4} style={{ paddingBottom: '12px' }}>{ meta.title }</Title> }
19
       <Outlet />
19
       <Outlet />
20
     </div>
20
     </div>
21
   )
21
   )

+ 9
- 7
src/pages/evaluate/evaluateList/index.jsx 查看文件

18
   const formRef = useRef();
18
   const formRef = useRef();
19
 
19
 
20
   const  valueEnum= {
20
   const  valueEnum= {
21
-    2: { text: "", status: "Success" },
22
-    1: { text: "", status: "Processing" },
23
-    0: { text: "差", status: "Default" },
21
+    2: { text: "满意", status: "Success" },
22
+    1: { text: "一般", status: "Processing" },
23
+    0: { text: "差", status: "Error" },
24
   }
24
   }
25
 
25
 
26
   const columns = [
26
   const columns = [
27
-    // {
28
-    //   title: "任务ID",
29
-    //   dataIndex: "taskId",
30
-    // },
27
+    {
28
+      title: "日期",
29
+      dataIndex: "createDate",
30
+      valueType: 'date',
31
+    },
31
 
32
 
32
     {
33
     {
33
       title: "服务质量",
34
       title: "服务质量",
75
         search={false}
76
         search={false}
76
         params={{ taskId: id }}
77
         params={{ taskId: id }}
77
         rowKey="id"
78
         rowKey="id"
79
+        headerTitle={<Link to={-1}>返回</Link>}
78
         toolBarRender={() => [
80
         toolBarRender={() => [
79
           <AddeValuate
81
           <AddeValuate
80
             taskId={id}
82
             taskId={id}

+ 4
- 1
src/routes/menus.jsx 查看文件

30
     // 坑爹 react-router v6 不支持 hash 路由的 target 跳转
30
     // 坑爹 react-router v6 不支持 hash 路由的 target 跳转
31
     const label = target === '_blank' ?
31
     const label = target === '_blank' ?
32
       <a href={`${window.location.pathname}#${path}`} target={target}>{title}</a>
32
       <a href={`${window.location.pathname}#${path}`} target={target}>{title}</a>
33
-      : <Link to={path} target={target}>{title}</Link>;
33
+      : (
34
+        path.indexOf('http') === 0  ? <a href={path} target="_blank">{title}</a>
35
+        : <Link to={path} target={target}>{title}</Link>
36
+      );
34
 
37
 
35
     return Object.assign(
38
     return Object.assign(
36
       {
39
       {

+ 25
- 3
src/routes/routes.jsx 查看文件

78
         path: "guaranteeTask",
78
         path: "guaranteeTask",
79
         element: <GuaranteeTaskList />,
79
         element: <GuaranteeTaskList />,
80
         meta: {
80
         meta: {
81
-          title: "任务通报",
81
+          title: "军供通报",
82
         },
82
         },
83
       },
83
       },
84
       {
84
       {
186
         path: "rotationChart/list",
186
         path: "rotationChart/list",
187
         element: <RotationChartList />,
187
         element: <RotationChartList />,
188
         meta: {
188
         meta: {
189
-          title: "公告内容",
189
+          title: "公告管理",
190
         },
190
         },
191
       },
191
       },
192
       {
192
       {
194
         element: <RotationChartEdit />,
194
         element: <RotationChartEdit />,
195
         meta: {
195
         meta: {
196
           title: "公告维护",
196
           title: "公告维护",
197
+          hideInMenu: true,
197
         },
198
         },
198
       },
199
       },
199
       {
200
       {
337
         index: true,
338
         index: true,
338
         element: <Navigate to="stockClassification/list" replace />,
339
         element: <Navigate to="stockClassification/list" replace />,
339
       },
340
       },
341
+      {
342
+        path: DH_MONITOR,
343
+        element: null,
344
+        meta: {
345
+          title: "大华监控",
346
+        },
347
+      },
348
+      {
349
+        path: DH_MONITOR,
350
+        element: null,
351
+        meta: {
352
+          title: "海康监控",
353
+        },
354
+      },
340
       {
355
       {
341
         path: "stockClassification/list",
356
         path: "stockClassification/list",
342
         element: <StockClassificationList />,
357
         element: <StockClassificationList />,
356
         path: "log",
371
         path: "log",
357
         element: <StockLog />,
372
         element: <StockLog />,
358
         meta: {
373
         meta: {
359
-          title: "操作日志",
374
+          title: "库存日志",
360
         },
375
         },
361
       },
376
       },
362
       {
377
       {
396
           hideInMenu: true,
411
           hideInMenu: true,
397
         },
412
         },
398
       },
413
       },
414
+      {
415
+        path: "foo",
416
+        element: null,
417
+        meta: {
418
+          title: "操作手册",
419
+        },
420
+      }
399
     ],
421
     ],
400
   },
422
   },
401
 ];
423
 ];