Browse Source

申请列表初步完成

李志伟 3 years ago
parent
commit
3d396e2923

+ 65
- 14
src/pages/applicationList/detail.jsx View File

@@ -1,9 +1,10 @@
1 1
 import React, { useState, useEffect } from 'react';
2
-import { Card, Form, Button } from 'antd';
2
+import { Card, Form, Button, Input, Image } from 'antd';
3 3
 import { PageHeaderWrapper } from '@ant-design/pro-layout';
4
-import { getWithdrawalDetail } from '@/services/withdrawal'
4
+import { getApplicationDetail } from '@/services/application'
5 5
 import { history } from 'umi';
6 6
 
7
+const { TextArea } = Input;
7 8
 const FormItem = Form.Item;
8 9
 const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 14 } };
9 10
 const goBack = () => {
@@ -12,11 +13,11 @@ const goBack = () => {
12 13
 export default (props) => {
13 14
   const { location } = props;
14 15
   const { id } = location.query;
15
-  const [withdrawal, setWithdrawal] = useState();
16
+  const [application, setApplication] = useState({});
16 17
 
17 18
   useEffect(() => {
18
-    getWithdrawalDetail(id).then((res) => {
19
-      setWithdrawal(res)
19
+    getApplicationDetail(id).then((res) => {
20
+      setApplication(res)
20 21
     }).catch((err) => {
21 22
       console.log(err.message)
22 23
     });
@@ -25,27 +26,77 @@ export default (props) => {
25 26
     <PageHeaderWrapper    >
26 27
       <Card>
27 28
         <Form {...formItemLayout}>
28
-          <FormItem label="申请人">
29
-            {withdrawal?.userName}
30
-          </FormItem>
31 29
           <FormItem label="犬主">
32
-            {withdrawal?.phone}
30
+            {application?.personName}
31
+          </FormItem>
32
+          <FormItem label="电话">
33
+            {application?.phone}
33 34
           </FormItem>
34 35
           <FormItem label="犬名">
35
-            {withdrawal?.orgName}
36
+            {application?.petName}
37
+          </FormItem>
38
+          <FormItem label="性别">
39
+            {
40
+              application?.petSex == 1 ? '雄' :
41
+                application?.petSex == 2 ? '雌' : '未说明性别'
42
+            }
36 43
           </FormItem>
37 44
           <FormItem label="犬种">
38
-            {withdrawal?.amountLeft / 100}
45
+            {application?.petType}
39 46
           </FormItem>
40 47
           <FormItem label="毛色">
41
-            {withdrawal?.bankCard.ownerBank}
48
+            {application?.petColor}
42 49
           </FormItem>
43 50
           <FormItem label="照片">
44
-            {withdrawal?.bankCard.cardNo}
51
+            <Image src={application?.img1} width={100} />
45 52
           </FormItem>
46 53
           <FormItem label="养狗地址">
47
-            {withdrawal?.money / 100}
54
+            {application?.address}
55
+          </FormItem>
56
+          <FormItem label="免疫证号">
57
+            {application?.immunizationCode}
58
+          </FormItem>
59
+          <FormItem label="免疫证明">
60
+            <Image src={application?.immunizationImg} />
61
+          </FormItem>
62
+          <FormItem label="最近免疫日期">
63
+            {application?.immunizationDate}
64
+          </FormItem>
65
+          <FormItem label="申请类型">
66
+            {
67
+              application?.applyType == 'first' ? '办证' :
68
+                application?.applyType == 'reissue' ? '补办' :
69
+                  application?.applyType == 'renewal' ? '续期' : ''
70
+            }
71
+          </FormItem>
72
+          <FormItem label="付款状态">
73
+            {
74
+              application.payStatus === 0
75
+                ? '待支付'
76
+                : application.payStatus === 1
77
+                  ? '支付中'
78
+                  : application.payStatus === 2
79
+                    ? '已支付' : ''
80
+            }
81
+          </FormItem>
82
+          {/* <FormItem label="狗证有效期">
83
+           2021-1-5~2022-1-5
84
+          </FormItem>
85
+          <FormItem label="申领方式">
86
+            {
87
+              application?.applyMethod == '1' ? '上门自取' :
88
+                application?.applyMethod == '2' ? '快递到家' : ''
89
+            }
90
+          </FormItem>
91
+          <FormItem label="快递公司">
92
+            <Input type="text" value='极兔快递' style={{ width: '350px' }} />
93
+          </FormItem>
94
+          <FormItem label="快递单号">
95
+            <Input type="text" value='99999' style={{ width: '350px' }} />
48 96
           </FormItem>
97
+          <FormItem label="驳回原因">
98
+            <TextArea placeholder='请输入驳回原因' rows='3' style={{ width: '350px' }} />
99
+          </FormItem> */}
49 100
           <FormItem label=" " colon={false}>
50 101
             <Button type="default" onClick={() => goBack()}>
51 102
               返回

+ 57
- 4
src/pages/applicationList/index.jsx View File

@@ -4,6 +4,8 @@ import { DatePicker, Button } from 'antd';
4 4
 import { PageHeaderWrapper } from '@ant-design/pro-layout';
5 5
 import PageTable from '@/components/PageTable'
6 6
 import { getApplicationList } from '@/services/application'
7
+import { history } from 'umi';
8
+
7 9
 
8 10
 const { RangePicker } = DatePicker;
9 11
 
@@ -13,9 +15,12 @@ const formatterTime = (val) => {
13 15
 
14 16
 export default (props) => {
15 17
   const actionRef = useRef();
18
+  const goDetail=(id)=>{
19
+    history.push(`applicationList/detail.jsx?id=${id}`);
20
+  }
16 21
   const columns = [
17 22
     {
18
-      title: '申请人',
23
+      title: '犬主',
19 24
       dataIndex: 'personName',
20 25
       key: 'personName',
21 26
       search: true,
@@ -27,24 +32,72 @@ export default (props) => {
27 32
       render: (t) => formatterTime(t),
28 33
       renderFormItem: (_, record) => <RangePicker format='YYYY-MM-DD' />
29 34
     },
35
+    {
36
+      title: '申请类型',
37
+      dataIndex: 'applyType',
38
+      key: 'applyType',
39
+      search: true,
40
+      render: (_, record) => {
41
+        return record.applyType === 'first'
42
+          ? '办证'
43
+          : record.applyType === 'reissue'
44
+            ? '补办'
45
+            : record.applyType === 'renewal'
46
+              ? '续期' : ''
47
+      },
48
+      valueType: 'select',
49
+      valueEnum: {
50
+        'first': { text: '办证' },
51
+        'reissue': { text: '补办' },
52
+        'renewal': { text: '续期' },
53
+      },
54
+    },
30 55
     {
31 56
       title: '订单状态',
32
-      dataIndex: 'status',
33
-      key: 'status',
57
+      dataIndex: 'payStatus',
58
+      key: 'payStatus',
34 59
       search: true,//已支付 待支付
60
+      render: (_, record) => {
61
+        return record.payStatus === 0
62
+          ? '待支付'
63
+          : record.payStatus === 1
64
+            ? '支付中'
65
+            : record.payStatus === 2
66
+              ? '已支付' : ''
67
+      },
68
+      valueType: 'select',
69
+      valueEnum: {
70
+        0: { text: '待支付' },
71
+        1: { text: '支付中' },
72
+        2: { text: '已支付' },
73
+      },
35 74
     },
36 75
     {
37 76
       title: '审核状态',
38 77
       dataIndex: 'verifyStatus',
39 78
       key: 'verifyStatus',
40 79
       search: true,
80
+      render: (_, record) => {
81
+        return record.verifyStatus === 0
82
+          ? '待审核'
83
+          : record.verifyStatus === 1
84
+            ? '审核通过'
85
+            : record.verifyStatus === 2
86
+              ? '审核驳回' : ''
87
+      },
88
+      valueType: 'select',
89
+      valueEnum: {
90
+        0: { text: '待审核' },
91
+        1: { text: '审核通过' },
92
+        2: { text: '审核驳回' },
93
+      },
41 94
     },
42 95
     {
43 96
       title: '操作',
44 97
       valueType: 'option',
45 98
       width: 160,
46 99
       render: (_, record) => [
47
-        <Button key={1} style={{ padding: 0 }} type="link">
100
+        <Button key={1} style={{ padding: 0 }} type="link" onClick={()=>goDetail(record.applyId)}>
48 101
           详情
49 102
         </Button>
50 103
       ],

+ 0
- 111
src/pages/dashboard/components/AdminDashboard/components/BannerStatis.jsx View File

@@ -1,111 +0,0 @@
1
-import { useEffect, useState } from 'react';
2
-import { history } from 'umi';
3
-import { Card, Row, Col } from 'antd'
4
-import { AppstoreOutlined, MacCommandOutlined, TeamOutlined, UsergroupDeleteOutlined, UsergroupAddOutlined } from '@ant-design/icons'
5
-import { getcomm } from '@/services/statis';
6
-import StatisCard from './StatisCard';
7
-import StatisGroup from './StatisGroup';
8
-
9
-const colorList = [
10
-  { backColor: '#126BAE', frontColor: '#fff' },
11
-  { backColor: '#66A9C9', frontColor: '#fff' },
12
-  { backColor: '#08507b', frontColor: '#fff' },
13
-]
14
-
15
-export default (props) => {
16
-  const [cardData, setCardData] = useState({})
17
-  
18
-  const toAbnormal = () => {
19
-    history.push('../resume-work/abnormal');
20
-  }
21
-
22
-  useEffect(() => {
23
-    getcomm().then((res) => {
24
-      setCardData(res || {});
25
-    })
26
-  }, [])
27
-
28
-  const abnormalNum = (cardData.todayReportNum || 0) - (cardData.todayNormalNum || 0)
29
-
30
-  return (
31
-    <Row justify='space-around' gutter={24} >
32
-      <Col span={8}>
33
-        <StatisGroup
34
-          title="企业"
35
-          data1={{ title: '企业总数', value: cardData.orgTotalNum || 0 }}
36
-          data2={{ title: '无数据企业', value: cardData.noDataOrgNum || 0 }}
37
-          {...colorList[0]}
38
-          icon={<AppstoreOutlined />}
39
-        />
40
-      </Col>
41
-      <Col span={8}>
42
-        <StatisGroup
43
-          title="上报人次"
44
-          data1={{ title: '今日提交', value: cardData.todayReportNum || 0 }}
45
-          data2={{ title: '昨日提交', value: cardData.yestodayReportNum || 0 }}
46
-          {...colorList[1]}
47
-          icon={<TeamOutlined />}
48
-        />
49
-      </Col>
50
-      <Col span={8}>
51
-        <StatisGroup
52
-          title="今日概况"
53
-          data1={{ title: '正常人次', value: cardData.todayNormalNum || 0 }}
54
-          data2={{ title: '异常人次', value: abnormalNum }}
55
-          {...colorList[2]}
56
-          icon={<UsergroupDeleteOutlined />}
57
-          onClick2={toAbnormal}
58
-        />
59
-      </Col>
60
-      {/* <Col span={4}>
61
-        <StatisCard
62
-          title="企业总数"
63
-          value={cardData?.orgTotalNum || 0}
64
-          icon={<AppstoreOutlined />}
65
-          {...colorList[0]}
66
-        />
67
-      </Col>
68
-      <Col span={4}>
69
-        <StatisCard
70
-          title="无数据企业"
71
-          value={`${cardData?.noDataOrgNum || 0} / ${cardData?.orgTotalNum || 0}`}
72
-          icon={<MacCommandOutlined />}
73
-          {...colorList[1]}
74
-        />
75
-      </Col>
76
-      <Col span={4}>
77
-        <StatisCard
78
-          title="今日提交总人数"
79
-          value={cardData?.todayReportNum || 0}
80
-          icon={<TeamOutlined />}
81
-          {...colorList[2]}
82
-        />
83
-      </Col>
84
-      <Col span={4}>
85
-        <StatisCard
86
-          title="昨日提交总人数"
87
-          value={cardData?.yestodayReportNum || 0}
88
-          icon={<TeamOutlined />}
89
-          {...colorList[3]}
90
-        />
91
-      </Col>
92
-      <Col span={4}>
93
-        <StatisCard
94
-          title="今日正常人数"
95
-          value={cardData?.todayNormalNum || 0}
96
-          icon={<UsergroupDeleteOutlined />}
97
-          {...colorList[4]}
98
-        />
99
-      </Col>
100
-      <Col span={4}>
101
-        <StatisCard
102
-          title="今日异常人数"
103
-          value={(cardData?.todayReportNum || 0) - (cardData?.todayNormalNum || 0)}
104
-          icon={<UsergroupAddOutlined />}
105
-          {...colorList[5]}
106
-          onClick={toAbnormal}
107
-        />
108
-      </Col> */}
109
-    </Row>
110
-  )
111
-}

+ 0
- 103
src/pages/dashboard/components/AdminDashboard/components/OrgSummary.jsx View File

@@ -1,103 +0,0 @@
1
-import { useEffect, useState, useCallback } from 'react';
2
-import Echart from '@/components/echart/echart'
3
-import { Card } from 'antd'
4
-import { getAllOrgPersonNum } from '@/services/statis'
5
-
6
-const barOption = {
7
-  color: ['#08507b'],
8
-  tooltip: {
9
-    trigger: 'axis',
10
-    axisPointer: {
11
-      type: 'shadow'
12
-    },
13
-    formatter: (params) => `人次: ${params[0].data.totalReportNum || 0}`
14
-  },
15
-  grid: {
16
-    containLabel: true,
17
-    left: 0,
18
-    top: 0,
19
-    right: 60,
20
-    bottom: 0,
21
-  }, 
22
-  yAxis: {
23
-    type: 'category',
24
-    axisLabel: {
25
-      // rotate: 45,
26
-      formatter: (value) => value.length > 10 ? value.substring(0, 10) + '...' : value,
27
-      color: (value, index) => 'black'
28
-    },
29
-  },
30
-  xAxis: {
31
-    type: 'value',
32
-  },
33
-  dataZoom: [
34
-    {
35
-      type: 'slider',
36
-      yAxisIndex: [0],
37
-      start: 100,
38
-      end: 80,
39
-      // width: 10,
40
-      // fillerColor: '#08507b',
41
-      selectedDataBackground: {
42
-        areaStyle: { color: '#08507b', },
43
-        lineStyle: { color: '#08507b', width: 1 },
44
-      }
45
-    },
46
-    {
47
-      type: 'inside',
48
-      yAxisIndex: [0],
49
-      start: 100,
50
-      end: 80
51
-    }
52
-  ],
53
-  dataset: {
54
-    dimensions: ['orgName', 'totalReportNum'],
55
-    source: [],
56
-  },
57
-  series: [
58
-    {
59
-      type: 'bar',
60
-    },
61
-  ]
62
-}
63
-
64
-export default (props) => {
65
-  const [loading, setLoading] = useState(false)
66
-  const [list, setList] = useState([])
67
-
68
-  const option = {
69
-    ...barOption,
70
-    dataset: {
71
-      ...barOption.dataset,
72
-      source: list
73
-    },
74
-    yAxis: {
75
-      ...barOption.yAxis,
76
-      axisLabel: {
77
-        ...barOption.yAxis.axisLabel,
78
-        color: value => list.filter(x => x.orgName === value)[0].totalReportNum ? 'black' : 'red'
79
-      }
80
-    }
81
-  }
82
-  
83
-  const queryList = useCallback(() => {
84
-    setLoading(true)
85
-
86
-    getAllOrgPersonNum().then((res) => {
87
-      setLoading(false)
88
-      setList((res || []).reverse())
89
-    }).catch(err => {
90
-      setLoading(false)
91
-    })
92
-  }, [])
93
-  
94
-  useEffect(() => {
95
-    queryList()
96
-  }, [])
97
-
98
-  return (
99
-    <Card title='企业数据总览' loading={loading} bodyStyle={{height: 600}}>
100
-      <Echart option={option} />
101
-    </Card>
102
-  )
103
-}

+ 0
- 41
src/pages/dashboard/components/AdminDashboard/components/StatisCard.jsx View File

@@ -1,41 +0,0 @@
1
-import React from 'react'
2
-import { Statistic, Card } from 'antd';
3
-
4
-const iconDivStyle = {
5
-  position: 'absolute',
6
-  top: 20,
7
-  right: 20,
8
-}
9
-
10
-const iconStyle = {
11
-  fontSize: '5em',
12
-  color: '#fff',
13
-  opacity: 0.3,
14
-}
15
-
16
-export default (props) => {
17
-  const { title, value, icon, backColor = '#fff', frontColor='#000', onClick } = props
18
-
19
-  const bodyStyle = {
20
-    background: backColor,
21
-    overflow: 'hidden',
22
-    position: 'relative',
23
-  }
24
-
25
-  return (
26
-    <Card bodyStyle={bodyStyle} onClick={onClick}>
27
-      <Statistic
28
-        title={title}
29
-        value={value}
30
-        valueStyle={{ color: frontColor }}
31
-      />
32
-      {
33
-        icon && (
34
-          <div style={iconDivStyle}>
35
-            {React.cloneElement(icon, { style: iconStyle })}
36
-          </div>
37
-        )
38
-      }
39
-    </Card>
40
-  )
41
-}

+ 0
- 20
src/pages/dashboard/components/AdminDashboard/index.jsx View File

@@ -1,20 +0,0 @@
1
-import React from 'react';
2
-import { Space, Row, Col } from 'antd'
3
-import ReportList from './components/ReportList';
4
-import OrgSummary from './components/OrgSummary';
5
-import BannerStatis from './components/BannerStatis';
6
-
7
-export default (props) => {  
8
-  return (
9
-    <Space direction="vertical" size="large" style={{ width: '100%' }}>
10
-      <BannerStatis />
11
-
12
-      <Row gutter={24}>
13
-        <Col span={12}><OrgSummary /></Col>
14
-        <Col span={12}>
15
-          <ReportList />
16
-        </Col>
17
-      </Row>
18
-    </Space>
19
-  )
20
-}

+ 61
- 0
src/pages/dashboard/components/BannerStatis.jsx View File

@@ -0,0 +1,61 @@
1
+import { useEffect, useState } from 'react';
2
+import { history } from 'umi';
3
+import { Row, Col } from 'antd'
4
+import { AppstoreOutlined, AuditOutlined, FieldTimeOutlined } from '@ant-design/icons'
5
+// import { getcomm } from '@/services/statis';
6
+import StatisGroup from './StatisGroup';
7
+
8
+const colorList = [
9
+  { backColor: '#126BAE', frontColor: '#fff' },
10
+  { backColor: '#66A9C9', frontColor: '#fff' },
11
+  { backColor: '#08507b', frontColor: '#fff' },
12
+]
13
+
14
+export default (props) => {
15
+  const [cardData, setCardData] = useState({})
16
+
17
+  const toAbnormal = () => {
18
+    history.push('../resume-work/abnormal');
19
+  }
20
+
21
+  useEffect(() => {
22
+    // getcomm().then((res) => {
23
+    //   setCardData(res || {});
24
+    // })
25
+  }, [])
26
+
27
+  const abnormalNum = (cardData.todayReportNum || 0) - (cardData.todayNormalNum || 0)
28
+
29
+  return (
30
+    <Row justify='space-around' gutter={24} >
31
+      <Col span={8}>
32
+        <StatisGroup
33
+          title="总数"
34
+          data1={{ title: '总注册数', value: cardData.orgTotalNum || 857 }}
35
+          data2={{ title: '证牌发放数', value: cardData.noDataOrgNum || 364 }}
36
+          {...colorList[0]}
37
+          icon={<AppstoreOutlined />}
38
+        />
39
+      </Col>
40
+      <Col span={8}>
41
+        <StatisGroup
42
+          title="审核"
43
+          data1={{ title: '待审核数', value: cardData.todayReportNum || 20 }}
44
+          data2={{ title: '审核驳回数', value: cardData.yestodayReportNum || 1 }}
45
+          {...colorList[1]}
46
+          icon={<AuditOutlined />}
47
+        />
48
+      </Col>
49
+      <Col span={8}>
50
+        <StatisGroup
51
+          title="提交"
52
+          data1={{ title: '今日提交数', value: cardData.todayNormalNum || 25 }}
53
+          data2={{ title: '本月提交数', value: abnormalNum || 20 }}
54
+          {...colorList[2]}
55
+          icon={<FieldTimeOutlined />}
56
+          onClick2={toAbnormal}
57
+        />
58
+      </Col>
59
+    </Row>
60
+  )
61
+}

+ 127
- 0
src/pages/dashboard/components/OrgSummary.jsx View File

@@ -0,0 +1,127 @@
1
+import { useEffect, useState, useCallback } from 'react';
2
+import Echart from '@/components/echart/echart'
3
+import { Card } from 'antd'
4
+
5
+const lineOption = {
6
+  tooltip: {
7
+    trigger: 'axis',
8
+    axisPointer: {
9
+      type: 'shadow'
10
+    },
11
+    // formatter: (params) => `人次: ${params[0].data.value || 0}`
12
+  },
13
+
14
+  grid: {
15
+    containLabel: true,
16
+    left: 0,
17
+    top: 8,
18
+    right: 60,
19
+    bottom: 0,
20
+  },
21
+  yAxis: {
22
+    type: 'value',
23
+  },
24
+
25
+  xAxis: {
26
+    type: 'category',
27
+
28
+  },
29
+
30
+  dataset: [
31
+    {
32
+      dimensions: ['date', 'value'],
33
+      source: [],
34
+    },
35
+  ],
36
+  series: [
37
+    {
38
+      type: 'line',
39
+      datasetIndex: 0,
40
+      itemStyle: {
41
+        normal: {
42
+          color: "#08507b",
43
+          lineStyle: {
44
+            color: "#08507b"
45
+          }
46
+        }
47
+      }
48
+    },    
49
+  ]
50
+}
51
+export default (props) => {
52
+  const [loading, setLoading] = useState(false)
53
+  const [list, setList] = useState([
54
+    {
55
+      date:'2022-9-9',
56
+      value:20
57
+    },
58
+    {
59
+      date:'2022-9-10',
60
+      value:205
61
+    },
62
+    {
63
+      date:'2022-9-11',
64
+      value:200
65
+    },
66
+    {
67
+      date:'2022-9-12',
68
+      value:210
69
+    },
70
+    {
71
+      date:'2022-9-13',
72
+      value:10
73
+    },
74
+    {
75
+      date:'2022-9-14',
76
+      value:50
77
+    },
78
+    {
79
+      date:'2022-9-15',
80
+      value:80
81
+    },
82
+    {
83
+      date:'2022-9-16',
84
+      value:27
85
+    },
86
+    {
87
+      date:'2022-9-19',
88
+      value:99
89
+    },
90
+    {
91
+      date:'2022-9-20',
92
+      value:5
93
+    },
94
+  ])
95
+
96
+  const option = {
97
+    ...lineOption,
98
+    dataset: {
99
+      ...lineOption.dataset,
100
+      source: list
101
+    }
102
+  }
103
+  
104
+  const queryList = useCallback(() => {
105
+    // setLoading(true)
106
+
107
+    // getAllOrgLine({
108
+    //   days: 7,
109
+    //   startDate: moment().subtract(7, 'day').format('YYYY-MM-DD'),
110
+    // }).then((res) => {
111
+    //   setLoading(false)
112
+    //   setList(res)
113
+    // }).catch(err => {
114
+    //   setLoading(false)
115
+    // })
116
+  }, [])
117
+  
118
+  useEffect(() => {
119
+    queryList()
120
+  }, [])
121
+
122
+  return (
123
+    <Card title='近期提交趋势统计' loading={loading} bodyStyle={{height: 600}}>
124
+      <Echart option={option} />
125
+    </Card>
126
+  )
127
+}

src/pages/dashboard/components/AdminDashboard/components/ReportList.jsx → src/pages/dashboard/components/ReportList.jsx View File

@@ -1,7 +1,7 @@
1 1
 import moment from 'moment'
2 2
 import { Card, List, Badge, Space, Carousel } from 'antd'
3 3
 import { useCallback, useEffect, useMemo, useState } from 'react'
4
-import { getList } from '@/services/work'
4
+// import { getList } from '@/services/work'
5 5
 import { random } from '@/utils/number'
6 6
 
7 7
 const colorList = [
@@ -62,19 +62,19 @@ export default (props) => {
62 62
   const [disabled, setDisabled] = useState(false)
63 63
 
64 64
   const queryList = useCallback(() => {
65
-    setLoading(true)
66
-    getList(
67
-      {
68
-        pageSize: 50, // 过多会很卡
69
-        start: moment().format('YYYY-MM-DD'),
70
-        end: moment().format('YYYY-MM-DD'),
71
-        isAll: true
72
-      }).then(res => {
73
-        setLoading(false)
74
-        setList((res.records || []).reverse())
75
-      }).catch(er => {
76
-        setLoading(false)
77
-      })
65
+    // setLoading(true)
66
+    // getList(
67
+    //   {
68
+    //     pageSize: 50, // 过多会很卡
69
+    //     start: moment().format('YYYY-MM-DD'),
70
+    //     end: moment().format('YYYY-MM-DD'),
71
+    //     isAll: true
72
+    //   }).then(res => {
73
+    //     setLoading(false)
74
+    //     setList((res.records || []).reverse())
75
+    //   }).catch(er => {
76
+    //     setLoading(false)
77
+    //   })
78 78
   }, [])
79 79
 
80 80
   useEffect(() => {
@@ -86,7 +86,7 @@ export default (props) => {
86 86
   }, [list])
87 87
 
88 88
   return (
89
-    <Card title="今日提交记录" loading={loading} bodyStyle={{ height: '600px' }}>
89
+    <Card title="近期提交记录" loading={loading} bodyStyle={{ height: '600px' }}>
90 90
       <List style={{ height: '100%', overflow: 'hidden' }} itemLayout="horizontal">
91 91
         <Carousel
92 92
           autoplay={!disabled}

src/pages/dashboard/components/AdminDashboard/components/StatisGroup.jsx → src/pages/dashboard/components/StatisGroup.jsx View File


+ 16
- 10
src/pages/dashboard/index.jsx View File

@@ -1,14 +1,20 @@
1
-// import AdminDashboard from "./components/adminDashboard";
2
-// import OrgDashboard from "./components/orgDashboard";
3
-
4
-import { useState } from "react";
5
-import RichEditor from "@/components/rich-editor";
6
-
7
-export default (props) => { 
8
-  
9
-  const [value, setValue] = useState()
1
+import React from 'react';
2
+import { Space, Row, Col } from 'antd'
3
+import ReportList from './components/ReportList';
4
+import OrgSummary from './components/OrgSummary';
5
+import BannerStatis from './components/BannerStatis';
10 6
 
7
+export default (props) => {  
11 8
   return (
12
-    <RichEditor value={value} onChange={setValue} />
9
+    <Space direction="vertical" size="large" style={{ width: '100%' }}>
10
+      <BannerStatis />
11
+
12
+      <Row gutter={24}>
13
+        <Col span={12}><OrgSummary /></Col>
14
+        <Col span={12}>
15
+          <ReportList />
16
+        </Col>
17
+      </Row>
18
+    </Space>
13 19
   )
14 20
 }