[baozhangchao] преди 3 години
родител
ревизия
706075c1bf

+ 2
- 2
src/components/ScreenBox/TitleBox/index.jsx Целия файл

@@ -6,8 +6,8 @@ export default (props) => {
6 6
   const { value } = props
7 7
   return (
8 8
     <div className='TitleBox'>
9
-      <div className='TitleBox-ListBox' />
10
-      <span>{value}</span>
9
+      <span className='TitleBox-ListBox' />
10
+      <span className='TitleBox-ListBox-value'>{value}</span>
11 11
     </div>
12 12
   )
13 13
 }

+ 5
- 4
src/components/ScreenBox/TitleBox/style.less Целия файл

@@ -1,18 +1,19 @@
1 1
 .TitleBox {
2
-  display: flex;
2
+  // width: 163px;
3
+  display: inline-block;
3 4
   align-items: center;
4
-  width: 163px;
5
-  padding: 11px 9px 9px 11px;
5
+  padding: 11px 11px 9px 11px;
6 6
   border-radius: 4px;
7 7
   box-shadow: 0px 0px 10px 0px #3d81f0 inset;
8 8
 
9 9
   .TitleBox-ListBox {
10
+    display: inline-block;
10 11
     width: 13px;
11 12
     height: 13px;
12 13
     margin-right: 10px;
13 14
     background: linear-gradient(0deg, #0c49c6, #3bd6e8);
14 15
   }
15
-  > span {
16
+  .TitleBox-ListBox-value {
16 17
     color: transparent;
17 18
     font-weight: 800;
18 19
     font-size: 17px;

+ 55
- 0
src/pages/MonitoringScreen/DateCommponets.jsx Целия файл

@@ -0,0 +1,55 @@
1
+
2
+
3
+
4
+import SquareBox from '@/components/ScreenBox/SquareBox'
5
+import TitleBox from '@/components/ScreenBox/TitleBox'
6
+import { Bar } from '@ant-design/plots';
7
+// import ba from './a.png'
8
+
9
+export default (props) => {
10
+
11
+
12
+  const style = {
13
+    bgd: {
14
+      color: 'rgba(0,0,0,.25)',
15
+      height: '100vh',
16
+      // backgroundImage: `url(${ba})`,
17
+      backgroundSize: '100%,100%',
18
+      padding: '5em 10em'
19
+    }
20
+  }
21
+  const data = [
22
+    {
23
+      year: '收割机',
24
+      value: 200,
25
+    },
26
+    {
27
+      year: '播种机',
28
+      value: 150,
29
+    },
30
+    {
31
+      year: '农药机',
32
+      value: 50,
33
+    },
34
+  ];
35
+  const config = {
36
+    data,
37
+    xField: 'value',
38
+    yField: 'year',
39
+    seriesField: 'year',
40
+
41
+    legend: {
42
+      position: 'top-left',
43
+    },
44
+    color: [' #FB9900', '#23E8AE', '#E63404'],
45
+  };
46
+
47
+  return (
48
+    <div style={style.bgd} >
49
+      <TitleBox value='农机类型统计' />
50
+      <SquareBox>
51
+        <Bar  {...config} />
52
+      </SquareBox>
53
+    </div>
54
+  )
55
+}

+ 7
- 1
src/pages/MonitoringScreen/index.jsx Целия файл

@@ -6,6 +6,7 @@ import { PageHeaderWrapper } from '@ant-design/pro-layout';
6 6
 import { FullscreenOutlined } from '@ant-design/icons';
7 7
 import { Button } from 'antd';
8 8
 import { useFullScreen } from './hook';
9
+import DateCommponets from './DateCommponets';
9 10
 import Styles from './style.less';
10 11
 
11 12
 export default (props) => {
@@ -19,6 +20,8 @@ export default (props) => {
19 20
         </Button>
20 21
       }
21 22
     >
23
+
24
+
22 25
       <div
23 26
         className={classNames(Styles['screen-page'], { [Styles['full-screen']]: isFullScreen })}
24 27
         style={style}
@@ -27,7 +30,10 @@ export default (props) => {
27 30
           <div className={Styles['grail-header']}></div>
28 31
           <div className={Styles['grail-container']}>
29 32
             <div className={Styles['grail-left']}></div>
30
-            <div className={Styles['grail-content']}></div>
33
+            <div className={Styles['grail-content']}>
34
+
35
+              <DateCommponets />
36
+            </div>
31 37
             <div className={Styles['grail-right']}></div>
32 38
           </div>
33 39
           <div className={Styles['grail-footer']}></div>

+ 2
- 49
src/pages/SystemManagement/UserRights/index.jsx Целия файл

@@ -1,54 +1,7 @@
1 1
 
2
-
3
-
4
-import SquareBox from '@/components/ScreenBox/SquareBox'
5
-import TitleBox from '@/components/ScreenBox/TitleBox'
6
-import { Bar } from '@ant-design/plots';
7
-// import ba from './a.png'
8
-
9 2
 export default (props) => {
10 3
 
11
-
12
-  const style = {
13
-    bgd: {
14
-      color: 'rgba(0,0,0,.25)',
15
-      height: '100vh',
16
-      // backgroundImage: `url(${ba})`,
17
-      backgroundSize: '100%,100%',
18
-      padding: '5em 10em'
19
-    }
20
-  }
21
-  const data = [
22
-    {
23
-      year: '收割机',
24
-      value: 200,
25
-    },
26
-    {
27
-      year: '播种机',
28
-      value: 150,
29
-    },
30
-    {
31
-      year: '农药机',
32
-      value: 50,
33
-    },
34
-  ];
35
-  const config = {
36
-    data,
37
-    xField: 'value',
38
-    yField: 'year',
39
-    seriesField: 'year',
40
-    legend: {
41
-      position: 'top-left',
42
-    },
43
-    color: [' #FB9900', '#23E8AE', '#E63404'],
44
-  };
45
-
46 4
   return (
47
-    <div style={style.bgd} >
48
-      <TitleBox value='农机类型统计' />
49
-      <SquareBox>
50
-        <Bar  {...config} />
51
-      </SquareBox>
52
-    </div>
5
+    <div>角色权限</div>
53 6
   )
54
-}
7
+}