1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
| import React, { useState, useEffect, useRef, Fragment } from "react";
| import { Row, Col, Space } from 'antd';
| import TableView from '@/components/TableView';
| import * as $$ from '../../utils/utility';
| import { useNavigate } from 'react-router-dom';
| export default function KeyVisits({ labelInfo, data, fakeData, search, handleChangePage }) {
| const colorList = ['#C64FBE', '#D8A247', '#B82F6E', '#199C8F', '#3ECB7A', '#117AC1', '#6865D7', '#2661CE']
| const navigate = useNavigate();
| const tagList = labelInfo?.map((i, index) => ({ label: i, color: colorList[index] })) || []
| const visitMap = {
| visitTotal: 12,
| channelList: [
| {
| name: '综治中心',
| number: 3
| },
| {
| name: '信访',
| number: 4
| },
| {
| name: '网格',
| number: 2
| },
| {
| name: '12345热线',
| number: 3
| },
| ],
| identityList: [
| {
| name: '申请方当事人',
| number: 3
| },
| {
| name: '被申请方代理人',
| number: 1
| },
| {
| name: '被申请方代理人',
| number: 2
| },
| {
| name: '被申请方代理人',
| number: 1
| },
| ]
| }
|
| // 列配置
| const fakeColumns = [
| {
| title: '时间',
| width: 150,
| dataIndex: 'createTime', defaultSortOrder: 'ascend',
| sorter: { compare: (a, b) => { } }, render: (text) => <div style={{ width: '150px' }}>{$$.minuteFormat(text)}</div>
| },
| {
| title: '数据来源',
| width: 100,
| dataIndex: 'canalName',
| key: 'canalName',
| },
| {
| title: '事项状态',
| width: 100,
| dataIndex: 'statusName',
| key: 'statusName',
| },
| {
| title: '化解结果',
| width: 100,
| dataIndex: 'mediResultName',
| key: 'mediResultName',
| },
| {
| title: '事件类型',
| width: 100,
| dataIndex: 'caseTypeName',
| key: 'caseTypeName',
| },
| {
| title: '问题属地',
| width: 100,
| dataIndex: 'areaName',
| key: 'areaName',
| },
| {
| title: '事项来源',
| width: 100,
| dataIndex: 'canalName',
| key: 'canalName',
| },
| {
| title: '事项等级',
| width: 100,
| dataIndex: 'caseLevel',
| key: 'caseLevel',
| },
| {
| title: '申请方',
| width: 100,
| dataIndex: 'plaintiffs',
| key: 'plaintiffs',
| },
| {
| title: '被申请方',
| width: 100,
| dataIndex: 'defendants',
| key: 'defendants',
| },
| {
| title: '操作',
| dataIndex: 'perClassName',
| key: 'perClassName',
| width: 100,
| fixed: 'right',
| render: (_, record) => (
| <div style={{ display: 'flex', color: '#1A6FB8', gap: '16px' }}>
| <div onClick={() => window.open(`${$$.windowUrl}/windowDetail?caseTaskId=${record.caseTaskId}&caseId=${record.id}`)} className="public-a">详情</div>
| </div>
| )
| },
| ];
|
| return (
| <div>
| {
| tagList?.length > 0 &&
| <>
| <Col span={24} style={{ display: 'flex', alignItems: 'center', marginBottom: '8px' }}>
| <Space size='small'>
| <div className='MediationInfo-subTitle' ></div><span style={{ fontWeight: '600' }}>重点人员标签</span>
| </Space>
| </Col>
| <Space style={{ marginBottom: '20px' }}>
| {tagList?.map((item, index) => (
| <div key={index} className="dialogTag" style={{ backgroundColor: item.color }}>{item.label}</div>
| ))}
| </Space>
| </>
| }
| <Col span={24} style={{ display: 'flex', alignItems: 'center', marginBottom: '8px' }}>
| <Space size='small'>
| <div className='MediationInfo-subTitle' ></div><span style={{ fontWeight: '600' }}>反映诉求记录</span>
| </Space>
| </Col>
| <div style={{ marginBottom: '12px' }}>
| <div><span>来访总数: </span><span style={{ color: '#1a6fb8' }}>{data?.totalNum || 0}</span> 次</div>
| <div><span>来访渠道: </span>
| <span>综治中心<span style={{ color: '#1a6fb8' }}>{data?.zzzxNum || 0}</span>次</span>、
| <span>信访<span style={{ color: '#1a6fb8' }}>{data?.xfNum || 0}</span>次</span>、
| <span>网格<span style={{ color: '#1a6fb8' }}>{data?.wlNum || 0}</span>次</span>、
| <span>12345热线<span style={{ color: '#1a6fb8' }}>{data?.ottfNum || 0}</span>次</span></div>
| <div><span>来访身份:</span>
| <span >申请方当事人:<span style={{ color: '#1a6fb8' }}>{data?.plaintiffNum || 0}</span>次</span>、
| <span >申请方代理人:<span style={{ color: '#1a6fb8' }}>{data?.pagentsNum || 0}</span>次</span>、
| <span >被申请方当事人:<span style={{ color: '#1a6fb8' }}>{data?.defendantNum || 0}</span>次</span>、
| <span >被申请方代理人:<span style={{ color: '#1a6fb8' }}>{data?.dagentsNum || 0}</span>次</span>
| </div>
| </div>
| <TableView
| columns={fakeColumns}
| dataSource={fakeData.tableData}
| size="small"
| rowKey="id"
| bordered={true}
| style={{ marginBottom: '60px' }}
| className='visitTableClass'
| scroll={{ x: 1300 }}
| onChange={(pagination, filters, sorter) => {
| handleChangePage(pagination.current, pagination.pageSize, sorter.field, sorter.order)
| }}
| pagination={{
| current: search.page,
| pageSize: search.size,
| total: fakeData.total,
| }}
| />
| </div>
| )
| }
|
|